Home
last modified time | relevance | path

Searched refs:bn (Results 1 – 18 of 18) sorted by relevance

/test/
A Dbntests.pl17 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 Dbn_internal_test.c31 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 Dbntest.c342 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 Devp_libctx_test.c129 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 Dsrptest.c120 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 Devp_extra_test2.c284 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 Dparams_api_test.c82 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 Dffc_internal_test.c396 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 Dssl_old_test.c2959 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 Dtestutil.h360 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 Dacvp_test.c73 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 Dsmcont.bin15 ���zE��TXaJ)bn!�����^�m޺F��tn��
A Devp_pkey_provided_test.c381 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 Dbuild.info1041 INCLUDE[bn_internal_test]=.. ../include ../crypto/bn ../apps/include
/test/testutil/
A Dformat_output.c185 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 Dtu_local.h40 const char *op, const BIGNUM *bn);
/test/recipes/30-test_evp_data/
A Devpmac_common.txt336 Title = GMAC Tests (from http://www.ieee802.org/1/files/public/docs2011/bn-randall-test-vectors-051…
A Devppkey_kas.txt6873 RUMAXFx7vVp4msTGKD3rDQ03xIUrqlfWvCsKxjN/6wlwTETRs4W3DMOU+iNdg+bn

Completed in 110 milliseconds