Home
last modified time | relevance | path

Searched refs:bnctx (Results 1 – 13 of 13) sorted by relevance

/openssl/providers/fips/
H A Dself_test_kats.c210 BN_CTX *bnctx = NULL; in self_test_kdf() local
229 if (bnctx == NULL) in self_test_kdf()
251 BN_CTX_free(bnctx); in self_test_kdf()
381 BN_CTX *bnctx = NULL; in self_test_ka() local
386 if (bnctx == NULL) in self_test_ka()
434 BN_CTX_free(bnctx); in self_test_ka()
456 BN_CTX *bnctx = NULL; in self_test_sign() local
471 if (bnctx == NULL) in self_test_sign()
520 BN_CTX_free(bnctx); in self_test_sign()
552 if (bnctx == NULL) in self_test_asym_cipher()
[all …]
/openssl/providers/implementations/kem/
H A Drsa_kem.c214 BN_CTX *bnctx; in rsasve_gen_rand_bytes() local
217 bnctx = BN_CTX_secure_new_ex(ossl_rsa_get0_libctx(rsa_pub)); in rsasve_gen_rand_bytes()
218 if (bnctx == NULL) in rsasve_gen_rand_bytes()
227 BN_CTX_start(bnctx); in rsasve_gen_rand_bytes()
228 nminus3 = BN_CTX_get(bnctx); in rsasve_gen_rand_bytes()
229 z = BN_CTX_get(bnctx); in rsasve_gen_rand_bytes()
233 && BN_priv_rand_range_ex(z, nminus3, 0, bnctx) in rsasve_gen_rand_bytes()
236 BN_CTX_end(bnctx); in rsasve_gen_rand_bytes()
237 BN_CTX_free(bnctx); in rsasve_gen_rand_bytes()
H A Dec_kem.c69 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/implementations/keymgmt/
H A Dec_kmgmt.c121 BN_CTX *bnctx = NULL; in key_to_params() local
137 if (bnctx == NULL) in key_to_params()
234 BN_CTX_free(bnctx); in key_to_params()
456 BN_CTX *bnctx = NULL; in ec_export() local
518 BN_CTX_end(bnctx); in ec_export()
519 BN_CTX_free(bnctx); in ec_export()
645 BN_CTX *bnctx = NULL; in common_get_params() local
657 if (bnctx == NULL) in common_get_params()
659 BN_CTX_start(bnctx); in common_get_params()
761 BN_CTX_end(bnctx); in common_get_params()
[all …]
/openssl/crypto/ec/
H A Dec_lib.c1554 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 Dec_ameth.c486 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 Dec_backend.c158 OSSL_PARAM params[], BN_CTX *bnctx, in ec_group_explicit_todata() argument
189 BIGNUM *p = BN_CTX_get(bnctx); in ec_group_explicit_todata()
190 BIGNUM *a = BN_CTX_get(bnctx); in ec_group_explicit_todata()
191 BIGNUM *b = BN_CTX_get(bnctx); in ec_group_explicit_todata()
198 if (!EC_GROUP_get_curve(group, p, a, b, bnctx)) { in ec_group_explicit_todata()
245 genbuf_len = EC_POINT_point2buf(group, genpt, genform, genbuf, bnctx); in ec_group_explicit_todata()
292 BN_CTX *bnctx, unsigned char **genbuf) in ossl_ec_group_todata() argument
335 if (!ec_group_explicit_todata(group, tmpl, params, bnctx, genbuf)) in ossl_ec_group_todata()
/openssl/test/
H A Dendecode_test.c61 static BN_CTX *bnctx = NULL; variable
1103 return TEST_ptr(a = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params()
1104 && TEST_ptr(b = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params()
1105 && TEST_ptr(prime = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params()
1106 && TEST_ptr(order = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params()
1192 return TEST_ptr(a = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params()
1193 && TEST_ptr(b = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params()
1194 && TEST_ptr(poly = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params()
1195 && TEST_ptr(order = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params()
1361 if (!TEST_ptr(bnctx = BN_CTX_new_ex(testctx)) in setup_tests()
[all …]
H A Dectest.c2412 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/crypto/evp/
H A Dctrl_params_translate.c1636 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); in get_payload_public_key() local
1640 if (bnctx == NULL) in get_payload_public_key()
1644 &buf, bnctx); in get_payload_public_key()
1646 BN_CTX_free(bnctx); in get_payload_public_key()
1668 BN_CTX *bnctx; in get_payload_public_key_ec() local
1682 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); in get_payload_public_key_ec()
1683 if (bnctx == NULL) in get_payload_public_key_ec()
1693 x = BN_CTX_get(bnctx); in get_payload_public_key_ec()
1694 y = BN_CTX_get(bnctx); in get_payload_public_key_ec()
1698 if (!EC_POINT_get_affine_coordinates(ecg, point, x, y, bnctx)) in get_payload_public_key_ec()
[all …]
/openssl/include/crypto/
H A Dec.h74 BN_CTX *bnctx, unsigned char **genbuf);
/openssl/doc/man3/
H A DEC_GROUP_new.pod35 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 Dec.h477 const char *propq, BN_CTX *bnctx);

Completed in 70 milliseconds