/test/ |
A D | bntests.pl | 17 sub bn subroutine 34 my $a = bn($s{'A'}); 35 my $b = bn($s{'B'}); 40 my $a = bn($s{'A'}); 45 my $a = bn($s{'A'}); 46 my $n = bn($s{'N'}); 51 my $a = bn($s{'A'}); 52 my $n = bn($s{'N'}); 57 my $a = bn($s{'A'}); 81 $a = bn($s{'A'}); [all …]
|
A D | bn_internal_test.c | 31 BIGNUM *bn = NULL; in test_is_prime_enhanced() local 33 ret = TEST_ptr(bn = BN_new()) in test_is_prime_enhanced() 35 && TEST_true(BN_set_word(bn, 11)) in test_is_prime_enhanced() 37 && TEST_true(ossl_bn_miller_rabin_is_prime(bn, 10, ctx, NULL, 1, in test_is_prime_enhanced() 40 BN_free(bn); in test_is_prime_enhanced() 52 BIGNUM *bn = NULL; in test_is_composite_enhanced() local 54 ret = TEST_ptr(bn = BN_new()) in test_is_composite_enhanced() 56 && TEST_true(BN_set_word(bn, composites[id])) in test_is_composite_enhanced() 57 && TEST_true(ossl_bn_miller_rabin_is_prime(bn, 10, ctx, NULL, 1, in test_is_composite_enhanced() 61 BN_free(bn); in test_is_composite_enhanced()
|
A D | bntest.c | 342 return bn; in set_signed_bn() 2010 bn = NULL; in test_dec2bn() 2020 bn = NULL; in test_dec2bn() 2030 bn = NULL; in test_dec2bn() 2041 bn = NULL; in test_dec2bn() 2050 bn = NULL; in test_dec2bn() 2077 bn = NULL; in test_hex2bn() 2087 bn = NULL; in test_hex2bn() 2097 bn = NULL; in test_hex2bn() 2107 bn = NULL; in test_hex2bn() [all …]
|
A D | evp_libctx_test.c | 129 static const BIGNUM *bn[] = { in test_dsa_param_keygen() local 149 || !TEST_ptr(p = BN_dup(bn[pind])) in test_dsa_param_keygen() 150 || !TEST_ptr(q = BN_dup(bn[qind])) in test_dsa_param_keygen() 151 || !TEST_ptr(g = BN_dup(bn[gind])) in test_dsa_param_keygen() 186 static int do_dh_param_keygen(int tstid, const BIGNUM **bn) in do_dh_param_keygen() argument 212 || !TEST_ptr(p = BN_dup(bn[pind])) in do_dh_param_keygen() 213 || !TEST_ptr(q = BN_dup(bn[qind])) in do_dh_param_keygen() 214 || !TEST_ptr(g = BN_dup(bn[gind])) in do_dh_param_keygen() 254 static const BIGNUM *bn[] = { in test_dh_safeprime_param_keygen() local 258 return do_dh_param_keygen(tstid, bn); in test_dh_safeprime_param_keygen()
|
A D | srptest.c | 120 static int check_bn(const char *name, const BIGNUM *bn, const char *hexbn) in check_bn() argument 128 if (BN_cmp(bn, tmp) != 0) in check_bn() 130 r = TEST_BN_eq(bn, tmp); in check_bn()
|
A D | evp_extra_test2.c | 284 BIGNUM *bn = NULL; in pkey_has_private() local 286 ret = EVP_PKEY_get_bn_param(key, privtag, &bn); in pkey_has_private() 287 BN_free(bn); in pkey_has_private() 1056 BIGNUM *bn = NULL; in do_check_bn() local 1061 && TEST_true(OSSL_PARAM_get_BN(p, &bn)) in do_check_bn() 1062 && TEST_int_gt(len = BN_bn2binpad(bn, buffer, (int)expected_len), 0) in do_check_bn() 1064 BN_free(bn); in do_check_bn()
|
A D | params_api_test.c | 82 BIGNUM *bn; in test_param_type_null() local 99 rc = OSSL_PARAM_get_BN(param, &bn); in test_param_type_null() 616 BIGNUM *bn = NULL, *bn2 = NULL; in test_param_construct() local 780 || !TEST_ptr(bn = BN_lebin2bn(bn_val, (int)sizeof(bn_val), NULL)) in test_param_construct() 781 || !TEST_true(OSSL_PARAM_set_BN(cp, bn)) in test_param_construct() 787 || !TEST_BN_eq(bn, bn2)) in test_param_construct() 796 BN_free(bn); in test_param_construct()
|
A D | ffc_internal_test.c | 396 BIGNUM *bn = NULL; in ffc_params_fips186_2_gen_validate_test() local 399 if (!TEST_ptr(bn = BN_new())) in ffc_params_fips186_2_gen_validate_test() 434 BN_free(bn); in ffc_params_fips186_2_gen_validate_test()
|
A D | ssl_old_test.c | 2959 BIGNUM *bn = NULL; in psk_key2bn() local 2961 ret = BN_hex2bn(&bn, pskkey); in psk_key2bn() 2965 BN_free(bn); in psk_key2bn() 2968 if (BN_num_bytes(bn) > (int)max_psk_len) { in psk_key2bn() 2971 max_psk_len, BN_num_bytes(bn)); in psk_key2bn() 2972 BN_free(bn); in psk_key2bn() 2975 ret = BN_bn2bin(bn, psk); in psk_key2bn() 2976 BN_free(bn); in psk_key2bn()
|
A D | testutil.h | 360 const char *a, size_t an, const char *b, size_t bn); 362 const char *a, size_t an, const char *b, size_t bn); 573 void test_output_bignum(const char *name, const BIGNUM *bn);
|
A D | acvp_test.c | 73 BIGNUM *bn = NULL; in pkey_get_bn_bytes() local 76 if (!EVP_PKEY_get_bn_param(pkey, name, &bn)) in pkey_get_bn_bytes() 78 sz = BN_num_bytes(bn); in pkey_get_bn_bytes() 82 if (BN_bn2binpad(bn, buf, sz) <= 0) in pkey_get_bn_bytes() 87 BN_free(bn); in pkey_get_bn_bytes() 91 BN_free(bn); in pkey_get_bn_bytes()
|
A D | smcont.bin | 15 ���zE��TXaJ)bn!�����^�mF��tn��
|
A D | evp_pkey_provided_test.c | 381 BIGNUM *bn = BN_new(); in test_fromdata_rsa() local 437 &bn)) in test_fromdata_rsa() 438 || !TEST_BN_eq(bn, bn_from)) in test_fromdata_rsa() 442 BN_free(bn); in test_fromdata_rsa()
|
A D | build.info | 1041 INCLUDE[bn_internal_test]=.. ../include ../crypto/bn ../apps/include
|
/test/testutil/ |
A D | format_output.c | 185 if (bn != NULL) in test_bignum_zero_null() 186 return BN_is_negative(bn) ? "-0" : "0"; in test_bignum_zero_null() 196 const char *v = test_bignum_zero_null(bn); in test_bignum_zero_print() 213 if (bn != NULL && !BN_is_zero(bn)) { in convert_bn_memory() 234 if (BN_is_negative(bn)) { in convert_bn_memory() 253 if (bn == NULL) in convert_bn_memory() 256 r = BN_is_negative(bn) ? "-0" : "0"; in convert_bn_memory() 381 test_fail_bignum_common(prefix, file, line, type, left, right, op, bn, bn); in test_fail_bignum_mono_message() 387 if (bn == NULL || BN_is_zero(bn)) { in test_output_bignum() 394 int n = BN_bn2bin(bn, buf); in test_output_bignum() [all …]
|
A D | tu_local.h | 40 const char *op, const BIGNUM *bn);
|
/test/recipes/30-test_evp_data/ |
A D | evpmac_common.txt | 336 Title = GMAC Tests (from http://www.ieee802.org/1/files/public/docs2011/bn-randall-test-vectors-051…
|
A D | evppkey_kas.txt | 6873 RUMAXFx7vVp4msTGKD3rDQ03xIUrqlfWvCsKxjN/6wlwTETRs4W3DMOU+iNdg+bn
|