/openssl/providers/implementations/kem/ |
H A D | rsa_kem.c | 246 BN_CTX *bnctx; in rsasve_gen_rand_bytes() local 249 bnctx = BN_CTX_secure_new_ex(ossl_rsa_get0_libctx(rsa_pub)); in rsasve_gen_rand_bytes() 250 if (bnctx == NULL) in rsasve_gen_rand_bytes() 259 BN_CTX_start(bnctx); in rsasve_gen_rand_bytes() 260 nminus3 = BN_CTX_get(bnctx); in rsasve_gen_rand_bytes() 261 z = BN_CTX_get(bnctx); in rsasve_gen_rand_bytes() 265 && BN_priv_rand_range_ex(z, nminus3, 0, bnctx) in rsasve_gen_rand_bytes() 268 BN_CTX_end(bnctx); in rsasve_gen_rand_bytes() 269 BN_CTX_free(bnctx); in rsasve_gen_rand_bytes()
|
H A D | ec_kem.c | 69 BN_CTX *bnctx = NULL; in eckey_check() local 86 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(ec)); in eckey_check() 89 if (order != NULL && rem != NULL && bnctx != NULL) { in eckey_check() 90 rv = BN_mod(rem, priv, order, bnctx) in eckey_check() 95 BN_CTX_free(bnctx); in eckey_check() 501 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(pub)); in check_publickey() local 503 if (bnctx == NULL) in check_publickey() 505 ret = ossl_ec_key_public_check(pub, bnctx); in check_publickey() 506 BN_CTX_free(bnctx); in check_publickey()
|
/openssl/providers/fips/ |
H A D | self_test_kats.c | 209 BN_CTX *bnctx = NULL; in self_test_kdf() local 227 bnctx = BN_CTX_new_ex(libctx); in self_test_kdf() 228 if (bnctx == NULL) in self_test_kdf() 250 BN_CTX_free(bnctx); in self_test_kdf() 380 BN_CTX *bnctx = NULL; in self_test_ka() local 387 bnctx = BN_CTX_new_ex(libctx); in self_test_ka() 388 if (bnctx == NULL) in self_test_ka() 436 BN_CTX_free(bnctx); in self_test_ka() 460 BN_CTX *bnctx = NULL; in self_test_digest_sign() local 480 if (bnctx == NULL) in self_test_digest_sign() [all …]
|
/openssl/providers/implementations/keymgmt/ |
H A D | ec_kmgmt.c | 124 BN_CTX *bnctx = NULL; in key_to_params() local 140 if (bnctx == NULL) in key_to_params() 237 BN_CTX_free(bnctx); in key_to_params() 459 BN_CTX *bnctx = NULL; in ec_export() local 521 BN_CTX_end(bnctx); in ec_export() 522 BN_CTX_free(bnctx); in ec_export() 648 BN_CTX *bnctx = NULL; in common_get_params() local 660 if (bnctx == NULL) in common_get_params() 662 BN_CTX_start(bnctx); in common_get_params() 764 BN_CTX_end(bnctx); in common_get_params() [all …]
|
/openssl/crypto/ec/ |
H A D | ec_lib.c | 1554 BN_CTX *bnctx = NULL; in EC_GROUP_new_from_params() local 1587 if (bnctx == NULL) { in EC_GROUP_new_from_params() 1591 BN_CTX_start(bnctx); in EC_GROUP_new_from_params() 1593 p = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1594 a = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1758 BN_CTX_end(bnctx); in EC_GROUP_new_from_params() 1759 BN_CTX_free(bnctx); in EC_GROUP_new_from_params() 1780 if (bnctx == NULL) in EC_GROUP_to_params() 1782 if (bnctx == NULL) in EC_GROUP_to_params() 1784 BN_CTX_start(bnctx); in EC_GROUP_to_params() [all …]
|
H A D | ec_ameth.c | 486 BN_CTX *bnctx = NULL; in ec_pkey_export_to() local 501 bnctx = BN_CTX_new_ex(libctx); in ec_pkey_export_to() 502 if (bnctx == NULL) in ec_pkey_export_to() 504 BN_CTX_start(bnctx); in ec_pkey_export_to() 507 if (!ossl_ec_group_todata(ecg, tmpl, NULL, libctx, propq, bnctx, &gen_buf)) in ec_pkey_export_to() 520 &pub_key_buf, bnctx)) == 0 in ec_pkey_export_to() 604 BN_CTX_end(bnctx); in ec_pkey_export_to() 605 BN_CTX_free(bnctx); in ec_pkey_export_to()
|
H A D | ec_backend.c | 158 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 334 if (!ec_group_explicit_todata(group, tmpl, params, bnctx, genbuf)) in ossl_ec_group_todata()
|
/openssl/test/ |
H A D | endecode_test.c | 61 static BN_CTX *bnctx = NULL; variable 1107 return TEST_ptr(a = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1108 && TEST_ptr(b = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1109 && TEST_ptr(prime = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1110 && TEST_ptr(order = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1196 return TEST_ptr(a = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1197 && TEST_ptr(b = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1198 && TEST_ptr(poly = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1199 && TEST_ptr(order = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1363 if (!TEST_ptr(bnctx = BN_CTX_new_ex(testctx)) in setup_tests() [all …]
|
H A D | ectest.c | 2412 BN_CTX *bnctx) in ec_point_hex2point_test_helper() argument 2428 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, bnctx))) in ec_point_hex2point_test_helper() 2460 BN_CTX *bnctx = NULL; in ec_point_hex2point_test() local 2464 if (!TEST_ptr(bnctx = BN_CTX_new()) in ec_point_hex2point_test() 2472 bnctx)) in ec_point_hex2point_test() 2475 bnctx)) in ec_point_hex2point_test() 2478 bnctx)) in ec_point_hex2point_test() 2481 bnctx)) in ec_point_hex2point_test() 2484 bnctx)) in ec_point_hex2point_test() 2487 bnctx))) in ec_point_hex2point_test() [all …]
|
/openssl/include/crypto/ |
H A D | ec.h | 74 BN_CTX *bnctx, unsigned char **genbuf);
|
/openssl/crypto/evp/ |
H A D | ctrl_params_translate.c | 1640 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); in get_payload_public_key() local 1644 if (bnctx == NULL) in get_payload_public_key() 1648 &buf, bnctx); in get_payload_public_key() 1650 BN_CTX_free(bnctx); in get_payload_public_key() 1672 BN_CTX *bnctx; in get_payload_public_key_ec() local 1686 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); in get_payload_public_key_ec() 1687 if (bnctx == NULL) in get_payload_public_key_ec() 1697 x = BN_CTX_get(bnctx); in get_payload_public_key_ec() 1698 y = BN_CTX_get(bnctx); in get_payload_public_key_ec() 1702 if (!EC_POINT_get_affine_coordinates(ecg, point, x, y, bnctx)) in get_payload_public_key_ec() [all …]
|
/openssl/doc/man3/ |
H A D | EC_GROUP_new.pod | 35 const char *propq, BN_CTX *bnctx); 118 I<bnctx> is an optional preallocated BN_CTX (to save the overhead of allocating 120 The values for I<libctx>, I<propq> and I<bnctx> may be NULL.
|
/openssl/include/openssl/ |
H A D | ec.h | 477 const char *propq, BN_CTX *bnctx);
|