/openssl-master/providers/fips/ |
A D | self_test_kats.c | 202 BN_CTX *bnctx = NULL; in self_test_kdf() local 221 if (bnctx == NULL) in self_test_kdf() 243 BN_CTX_free(bnctx); in self_test_kdf() 373 BN_CTX *bnctx = NULL; in self_test_ka() local 378 if (bnctx == NULL) in self_test_ka() 426 BN_CTX_free(bnctx); in self_test_ka() 448 BN_CTX *bnctx = NULL; in self_test_sign() local 463 if (bnctx == NULL) in self_test_sign() 516 BN_CTX_free(bnctx); in self_test_sign() 548 if (bnctx == NULL) in self_test_asym_cipher() [all …]
|
/openssl-master/providers/implementations/kem/ |
A D | rsa_kem.c | 213 BN_CTX *bnctx; in rsasve_gen_rand_bytes() local 216 bnctx = BN_CTX_secure_new_ex(ossl_rsa_get0_libctx(rsa_pub)); in rsasve_gen_rand_bytes() 217 if (bnctx == NULL) in rsasve_gen_rand_bytes() 226 BN_CTX_start(bnctx); in rsasve_gen_rand_bytes() 227 nminus3 = BN_CTX_get(bnctx); in rsasve_gen_rand_bytes() 228 z = BN_CTX_get(bnctx); in rsasve_gen_rand_bytes() 232 && BN_priv_rand_range_ex(z, nminus3, 0, bnctx) in rsasve_gen_rand_bytes() 235 BN_CTX_end(bnctx); in rsasve_gen_rand_bytes() 236 BN_CTX_free(bnctx); in rsasve_gen_rand_bytes()
|
/openssl-master/providers/implementations/keymgmt/ |
A D | ec_kmgmt.c | 122 BN_CTX *bnctx = NULL; in key_to_params() local 138 if (bnctx == NULL) in key_to_params() 227 BN_CTX_free(bnctx); in key_to_params() 437 BN_CTX *bnctx = NULL; in ec_export() local 498 BN_CTX_end(bnctx); in ec_export() 499 BN_CTX_free(bnctx); in ec_export() 624 BN_CTX *bnctx = NULL; in common_get_params() local 634 if (bnctx == NULL) in common_get_params() 636 BN_CTX_start(bnctx); in common_get_params() 733 BN_CTX_end(bnctx); in common_get_params() [all …]
|
/openssl-master/crypto/ec/ |
A D | ec_ameth.c | 494 BN_CTX *bnctx = NULL; in ec_pkey_export_to() local 509 bnctx = BN_CTX_new_ex(libctx); in ec_pkey_export_to() 510 if (bnctx == NULL) in ec_pkey_export_to() 512 BN_CTX_start(bnctx); in ec_pkey_export_to() 515 if (!ossl_ec_group_todata(ecg, tmpl, NULL, libctx, propq, bnctx, &gen_buf)) in ec_pkey_export_to() 526 &pub_key_buf, bnctx)) == 0 in ec_pkey_export_to() 610 BN_CTX_end(bnctx); in ec_pkey_export_to() 611 BN_CTX_free(bnctx); in ec_pkey_export_to()
|
A D | ec_backend.c | 157 OSSL_PARAM params[], BN_CTX *bnctx, in ec_group_explicit_todata() argument 188 BIGNUM *p = BN_CTX_get(bnctx); in ec_group_explicit_todata() 189 BIGNUM *a = BN_CTX_get(bnctx); in ec_group_explicit_todata() 190 BIGNUM *b = BN_CTX_get(bnctx); in ec_group_explicit_todata() 197 if (!EC_GROUP_get_curve(group, p, a, b, bnctx)) { in ec_group_explicit_todata() 244 genbuf_len = EC_POINT_point2buf(group, genpt, genform, genbuf, bnctx); in ec_group_explicit_todata() 291 BN_CTX *bnctx, unsigned char **genbuf) in ossl_ec_group_todata() argument 329 if (!ec_group_explicit_todata(group, tmpl, params, bnctx, genbuf)) in ossl_ec_group_todata()
|
A D | ec_lib.c | 1546 BN_CTX *bnctx = NULL; in EC_GROUP_new_from_params() local 1563 bnctx = BN_CTX_new_ex(libctx); in EC_GROUP_new_from_params() 1564 if (bnctx == NULL) { in EC_GROUP_new_from_params() 1568 BN_CTX_start(bnctx); in EC_GROUP_new_from_params() 1570 p = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1571 a = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1572 b = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1573 order = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1687 cofactor = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1732 BN_CTX_end(bnctx); in EC_GROUP_new_from_params() [all …]
|
/openssl-master/test/ |
A D | endecode_test.c | 56 static BN_CTX *bnctx = NULL; variable 1072 return TEST_ptr(a = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1073 && TEST_ptr(b = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1074 && TEST_ptr(prime = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1075 && TEST_ptr(order = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1161 return TEST_ptr(a = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1162 && TEST_ptr(b = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1163 && TEST_ptr(poly = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1164 && TEST_ptr(order = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1315 if (!TEST_ptr(bnctx = BN_CTX_new_ex(testctx)) in setup_tests() [all …]
|
A D | ectest.c | 2300 BN_CTX *bnctx) in ec_point_hex2point_test_helper() argument 2316 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, bnctx))) in ec_point_hex2point_test_helper() 2348 BN_CTX * bnctx = NULL; in ec_point_hex2point_test() local 2352 if (!TEST_ptr(bnctx = BN_CTX_new()) in ec_point_hex2point_test() 2360 bnctx)) in ec_point_hex2point_test() 2363 bnctx)) in ec_point_hex2point_test() 2366 bnctx)) in ec_point_hex2point_test() 2369 bnctx)) in ec_point_hex2point_test() 2372 bnctx)) in ec_point_hex2point_test() 2375 bnctx))) in ec_point_hex2point_test() [all …]
|
/openssl-master/include/crypto/ |
A D | ec.h | 74 BN_CTX *bnctx, unsigned char **genbuf);
|
/openssl-master/crypto/evp/ |
A D | ctrl_params_translate.c | 1607 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); in get_payload_public_key() local 1611 if (bnctx == NULL) in get_payload_public_key() 1615 &buf, bnctx); in get_payload_public_key() 1617 BN_CTX_free(bnctx); in get_payload_public_key()
|