/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_openssl.c | 1373 BN_CTX *bnctx; in crypto_bignum_mod() local 1375 bnctx = BN_CTX_new(); in crypto_bignum_mod() 1376 if (bnctx == NULL) in crypto_bignum_mod() 1379 bnctx); in crypto_bignum_mod() 1380 BN_CTX_free(bnctx); in crypto_bignum_mod() 1392 BN_CTX *bnctx; in crypto_bignum_exptmod() local 1397 bnctx = BN_CTX_new(); in crypto_bignum_exptmod() 1398 if (bnctx == NULL) in crypto_bignum_exptmod() 1402 bnctx, NULL); in crypto_bignum_exptmod() 1403 BN_CTX_free(bnctx); in crypto_bignum_exptmod() [all …]
|
/third_party/openssl/providers/fips/ |
D | self_test_kats.c | 202 BN_CTX *bnctx = NULL; in self_test_kdf() local 220 bnctx = BN_CTX_new_ex(libctx); in self_test_kdf() 221 if (bnctx == NULL) in self_test_kdf() 223 if (!add_params(bld, t->params, bnctx)) in self_test_kdf() 243 BN_CTX_free(bnctx); in self_test_kdf() 373 BN_CTX *bnctx = NULL; in self_test_ka() local 377 bnctx = BN_CTX_new_ex(libctx); in self_test_ka() 378 if (bnctx == NULL) in self_test_ka() 385 if (!add_params(bld, t->key_group, bnctx) in self_test_ka() 386 || !add_params(bld, t->key_host_data, bnctx)) in self_test_ka() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_openssl.c | 1446 BN_CTX *bnctx; in crypto_bignum_mod() local 1448 bnctx = BN_CTX_new(); in crypto_bignum_mod() 1449 if (bnctx == NULL) in crypto_bignum_mod() 1452 bnctx); in crypto_bignum_mod() 1453 BN_CTX_free(bnctx); in crypto_bignum_mod() 1465 BN_CTX *bnctx; in crypto_bignum_exptmod() local 1470 bnctx = BN_CTX_new(); in crypto_bignum_exptmod() 1471 if (bnctx == NULL) in crypto_bignum_exptmod() 1475 bnctx, NULL); in crypto_bignum_exptmod() 1476 BN_CTX_free(bnctx); in crypto_bignum_exptmod() [all …]
|
/third_party/openssl/providers/implementations/kem/ |
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()
|
/third_party/openssl/providers/implementations/keymgmt/ |
D | ec_kmgmt.c | 121 BN_CTX *bnctx = NULL; in key_to_params() local 136 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); in key_to_params() 137 if (bnctx == NULL) in key_to_params() 152 pub_key, bnctx)) == 0 in key_to_params() 160 x = BN_CTX_get(bnctx); in key_to_params() 162 y = BN_CTX_get(bnctx); in key_to_params() 164 if (!EC_POINT_get_affine_coordinates(ecg, pub_point, x, y, bnctx)) in key_to_params() 226 BN_CTX_free(bnctx); in key_to_params() 448 BN_CTX *bnctx = NULL; in ec_export() local 478 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(ec)); in ec_export() [all …]
|
/third_party/openssl/crypto/ec/ |
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() 518 &pub_key_buf, bnctx)) == 0 in ec_pkey_export_to() 602 BN_CTX_end(bnctx); in ec_pkey_export_to() 603 BN_CTX_free(bnctx); in ec_pkey_export_to()
|
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 334 if (!ec_group_explicit_todata(group, tmpl, params, bnctx, genbuf)) in ossl_ec_group_todata()
|
D | ec_lib.c | 1551 BN_CTX *bnctx = NULL; in EC_GROUP_new_from_params() local 1583 bnctx = BN_CTX_new_ex(libctx); in EC_GROUP_new_from_params() 1584 if (bnctx == NULL) { in EC_GROUP_new_from_params() 1588 BN_CTX_start(bnctx); in EC_GROUP_new_from_params() 1590 p = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1591 a = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1592 b = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1593 order = BN_CTX_get(bnctx); in EC_GROUP_new_from_params() 1645 group = EC_GROUP_new_curve_GFp(p, a, b, bnctx); in EC_GROUP_new_from_params() 1691 if (!EC_POINT_oct2point(group, point, buf, ptmp->data_size, bnctx)) { in EC_GROUP_new_from_params() [all …]
|
/third_party/openssl/test/ |
D | endecode_test.c | 57 static BN_CTX *bnctx = NULL; variable 1087 return TEST_ptr(a = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1088 && TEST_ptr(b = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1089 && TEST_ptr(prime = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1090 && TEST_ptr(order = BN_CTX_get(bnctx)) in do_create_ec_explicit_prime_params() 1176 return TEST_ptr(a = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1177 && TEST_ptr(b = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1178 && TEST_ptr(poly = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1179 && TEST_ptr(order = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() 1180 && TEST_ptr(cofactor = BN_CTX_get(bnctx)) in do_create_ec_explicit_trinomial_params() [all …]
|
D | ectest.c | 2300 BN_CTX *bnctx) in ec_point_hex2point_test_helper() argument 2314 if (!TEST_ptr(hex = EC_POINT_point2hex(group, P, form, bnctx)) in ec_point_hex2point_test_helper() 2315 || !TEST_ptr(Q = EC_POINT_hex2point(group, hex, NULL, bnctx)) in ec_point_hex2point_test_helper() 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() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | dpp.c | 2700 BN_CTX *bnctx; in dpp_auth_derive_l_responder() local 2707 bnctx = BN_CTX_new(); in dpp_auth_derive_l_responder() 2711 if (!bnctx || !sum || !q || !lx) in dpp_auth_derive_l_responder() 2729 if (EC_GROUP_get_order(group, q, bnctx) != 1 || in dpp_auth_derive_l_responder() 2730 BN_mod_add(sum, bR_bn, pR_bn, q, bnctx) != 1) in dpp_auth_derive_l_responder() 2734 EC_POINT_mul(group, l, NULL, BI_point, sum, bnctx) != 1 || in dpp_auth_derive_l_responder() 2736 bnctx) != 1) { in dpp_auth_derive_l_responder() 2756 BN_CTX_free(bnctx); in dpp_auth_derive_l_responder() 2767 BN_CTX *bnctx; in dpp_auth_derive_l_initiator() local 2774 bnctx = BN_CTX_new(); in dpp_auth_derive_l_initiator() [all …]
|
/third_party/openssl/include/crypto/ |
D | ec.h | 74 BN_CTX *bnctx, unsigned char **genbuf);
|
/third_party/openssl/crypto/evp/ |
D | ctrl_params_translate.c | 1622 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); in get_payload_public_key() local 1626 if (bnctx == NULL) in get_payload_public_key() 1630 &buf, bnctx); in get_payload_public_key() 1632 BN_CTX_free(bnctx); in get_payload_public_key()
|