HomeSort by: relevance | last modified time | path
    Searched defs:bnctx (Results 1 - 22 of 22) sorted by relevancy

  /src/external/bsd/libfido2/dist/src/
es384.c 114 BN_CTX *bnctx = NULL; local
123 if ((bnctx = BN_CTX_new()) == NULL)
126 BN_CTX_start(bnctx);
128 if ((x = BN_CTX_get(bnctx)) == NULL ||
129 (y = BN_CTX_get(bnctx)) == NULL)
145 EC_POINT_set_affine_coordinates_GFp(g, q, x, y, bnctx) == 0 ||
161 if (bnctx != NULL) {
162 BN_CTX_end(bnctx);
163 BN_CTX_free(bnctx);
182 BN_CTX *bnctx = NULL local
    [all...]
es256.c 271 BN_CTX *bnctx = NULL; local
280 if ((bnctx = BN_CTX_new()) == NULL)
283 BN_CTX_start(bnctx);
285 if ((x = BN_CTX_get(bnctx)) == NULL ||
286 (y = BN_CTX_get(bnctx)) == NULL)
302 EC_POINT_set_affine_coordinates_GFp(g, q, x, y, bnctx) == 0 ||
318 if (bnctx != NULL) {
319 BN_CTX_end(bnctx);
320 BN_CTX_free(bnctx);
339 BN_CTX *bnctx = NULL local
411 BN_CTX *bnctx = NULL; local
    [all...]
  /src/crypto/external/apache2/openssl/dist/providers/implementations/kem/
rsa_kem.c 246 BN_CTX *bnctx; local
249 bnctx = BN_CTX_secure_new_ex(ossl_rsa_get0_libctx(rsa_pub));
250 if (bnctx == NULL)
259 BN_CTX_start(bnctx);
260 nminus3 = BN_CTX_get(bnctx);
261 z = BN_CTX_get(bnctx);
265 && BN_priv_rand_range_ex(z, nminus3, 0, bnctx)
268 BN_CTX_end(bnctx);
269 BN_CTX_free(bnctx);
ec_kem.c 69 BN_CTX *bnctx = NULL; local
86 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(ec));
89 if (order != NULL && rem != NULL && bnctx != NULL) {
90 rv = BN_mod(rem, priv, order, bnctx)
95 BN_CTX_free(bnctx);
502 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(pub)); local
504 if (bnctx == NULL)
506 ret = ossl_ec_key_public_check(pub, bnctx);
507 BN_CTX_free(bnctx);
  /src/crypto/external/bsd/openssl/dist/providers/implementations/kem/
rsa_kem.c 213 BN_CTX *bnctx; local
216 bnctx = BN_CTX_secure_new_ex(ossl_rsa_get0_libctx(rsa_pub));
217 if (bnctx == NULL)
226 BN_CTX_start(bnctx);
227 nminus3 = BN_CTX_get(bnctx);
228 z = BN_CTX_get(bnctx);
232 && BN_priv_rand_range_ex(z, nminus3, 0, bnctx)
235 BN_CTX_end(bnctx);
236 BN_CTX_free(bnctx);
  /src/crypto/external/bsd/heimdal/dist/lib/hx509/
crypto-ec.c 288 BN_CTX *bnctx = NULL; local
304 bnctx = BN_CTX_new();
309 if (EC_GROUP_get_order(group, order, bnctx) != 1)
318 if (bnctx)
319 BN_CTX_free(bnctx);
  /src/crypto/external/bsd/openssl/dist/providers/fips/
self_test_kats.c 202 BN_CTX *bnctx = NULL; local
220 bnctx = BN_CTX_new_ex(libctx);
221 if (bnctx == NULL)
223 if (!add_params(bld, t->params, bnctx))
243 BN_CTX_free(bnctx);
373 BN_CTX *bnctx = NULL; local
377 bnctx = BN_CTX_new_ex(libctx);
378 if (bnctx == NULL)
385 if (!add_params(bld, t->key_group, bnctx)
386 || !add_params(bld, t->key_host_data, bnctx))
448 BN_CTX *bnctx = NULL; local
541 BN_CTX *bnctx = NULL; local
    [all...]
  /src/crypto/external/apache2/openssl/dist/crypto/ec/
ec_ameth.c 485 BN_CTX *bnctx = NULL; local
500 bnctx = BN_CTX_new_ex(libctx);
501 if (bnctx == NULL)
503 BN_CTX_start(bnctx);
506 if (!ossl_ec_group_todata(ecg, tmpl, NULL, libctx, propq, bnctx, &gen_buf))
519 &pub_key_buf, bnctx))
603 BN_CTX_end(bnctx);
604 BN_CTX_free(bnctx);
ec_lib.c 1552 BN_CTX *bnctx = NULL; local
1584 bnctx = BN_CTX_new_ex(libctx);
1585 if (bnctx == NULL) {
1589 BN_CTX_start(bnctx);
1591 p = BN_CTX_get(bnctx);
1592 a = BN_CTX_get(bnctx);
1593 b = BN_CTX_get(bnctx);
1594 order = BN_CTX_get(bnctx);
1647 group = EC_GROUP_new_curve_GFp(p, a, b, bnctx);
1693 if (!EC_POINT_oct2point(group, point, buf, ptmp->data_size, bnctx)) {
    [all...]
  /src/crypto/external/apache2/openssl/dist/providers/fips/
self_test_kats.c 827 BN_CTX *bnctx = NULL; local
833 bnctx = BN_CTX_new_ex(libctx);
834 if (bnctx == NULL)
840 || !add_params(keybld, t->key, bnctx))
862 if (!add_params(initbld, t->postinit, bnctx))
890 BN_CTX_free(bnctx);
  /src/crypto/external/bsd/openssl/dist/crypto/ec/
ec_ameth.c 486 BN_CTX *bnctx = NULL; local
501 bnctx = BN_CTX_new_ex(libctx);
502 if (bnctx == NULL)
504 BN_CTX_start(bnctx);
507 if (!ossl_ec_group_todata(ecg, tmpl, NULL, libctx, propq, bnctx, &gen_buf))
520 &pub_key_buf, bnctx)) == 0
604 BN_CTX_end(bnctx);
605 BN_CTX_free(bnctx);
ec_lib.c 1552 BN_CTX *bnctx = NULL; local
1584 bnctx = BN_CTX_new_ex(libctx);
1585 if (bnctx == NULL) {
1589 BN_CTX_start(bnctx);
1591 p = BN_CTX_get(bnctx);
1592 a = BN_CTX_get(bnctx);
1593 b = BN_CTX_get(bnctx);
1594 order = BN_CTX_get(bnctx);
1646 group = EC_GROUP_new_curve_GFp(p, a, b, bnctx);
1692 if (!EC_POINT_oct2point(group, point, buf, ptmp->data_size, bnctx)) {
    [all...]
  /src/crypto/external/apache2/openssl/dist/crypto/evp/
ctrl_params_translate.c 1632 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); local
1636 if (bnctx == NULL)
1640 &buf, bnctx);
1642 BN_CTX_free(bnctx);
1664 BN_CTX *bnctx; local
1678 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey));
1679 if (bnctx == NULL)
1689 x = BN_CTX_get(bnctx);
1690 y = BN_CTX_get(bnctx);
1694 if (!EC_POINT_get_affine_coordinates(ecg, point, x, y, bnctx))
    [all...]
  /src/crypto/external/apache2/openssl/dist/providers/implementations/keymgmt/
ec_kmgmt.c 123 BN_CTX *bnctx = NULL; local
138 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey));
139 if (bnctx == NULL)
155 pub_key, bnctx))
164 x = BN_CTX_get(bnctx);
169 y = BN_CTX_get(bnctx);
174 if (!EC_POINT_get_affine_coordinates(ecg, pub_point, x, y, bnctx))
236 BN_CTX_free(bnctx);
447 BN_CTX *bnctx = NULL; local
477 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(ec))
628 BN_CTX *bnctx = NULL; local
1307 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(ec)); local
    [all...]
  /src/crypto/external/bsd/openssl/dist/crypto/evp/
ctrl_params_translate.c 1642 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); local
1646 if (bnctx == NULL)
1650 &buf, bnctx);
1652 BN_CTX_free(bnctx);
  /src/crypto/external/bsd/openssl/dist/providers/implementations/keymgmt/
ec_kmgmt.c 121 BN_CTX *bnctx = NULL; local
136 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey));
137 if (bnctx == NULL)
154 pub_key, bnctx)) == 0
162 x = BN_CTX_get(bnctx);
167 y = BN_CTX_get(bnctx);
172 if (!EC_POINT_get_affine_coordinates(ecg, pub_point, x, y, bnctx))
234 BN_CTX_free(bnctx);
456 BN_CTX *bnctx = NULL; local
486 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(ec))
645 BN_CTX *bnctx = NULL; local
    [all...]
  /src/crypto/external/bsd/openssl.old/dist/test/
ectest.c 2063 BN_CTX *bnctx)
2077 if (!TEST_ptr(hex = EC_POINT_point2hex(group, P, form, bnctx))
2078 || !TEST_ptr(Q = EC_POINT_hex2point(group, hex, NULL, bnctx))
2079 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, bnctx)))
2111 BN_CTX * bnctx = NULL; local
2115 if (!TEST_ptr(bnctx = BN_CTX_new())
2123 bnctx))
2126 bnctx))
2129 bnctx))
2132 bnctx))
    [all...]
  /src/crypto/external/apache2/openssl/dist/test/
ectest.c 2789 BN_CTX *bnctx)
2803 if (!TEST_ptr(hex = EC_POINT_point2hex(group, P, form, bnctx))
2804 || !TEST_ptr(Q = EC_POINT_hex2point(group, hex, NULL, bnctx))
2805 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, bnctx)))
2837 BN_CTX *bnctx = NULL; local
2841 if (!TEST_ptr(bnctx = BN_CTX_new())
2849 bnctx))
2852 bnctx))
2855 bnctx))
2858 bnctx))
    [all...]
endecode_test.c 62 static BN_CTX *bnctx = NULL; variable
1148 return TEST_ptr(a = BN_CTX_get(bnctx))
1149 && TEST_ptr(b = BN_CTX_get(bnctx))
1150 && TEST_ptr(prime = BN_CTX_get(bnctx))
1151 && TEST_ptr(order = BN_CTX_get(bnctx))
1264 return TEST_ptr(a = BN_CTX_get(bnctx))
1265 && TEST_ptr(b = BN_CTX_get(bnctx))
1266 && TEST_ptr(poly = BN_CTX_get(bnctx))
1267 && TEST_ptr(order = BN_CTX_get(bnctx))
1268 && TEST_ptr(cofactor = BN_CTX_get(bnctx))
    [all...]
  /src/crypto/external/bsd/openssl/dist/test/
ectest.c 2300 BN_CTX *bnctx)
2314 if (!TEST_ptr(hex = EC_POINT_point2hex(group, P, form, bnctx))
2315 || !TEST_ptr(Q = EC_POINT_hex2point(group, hex, NULL, bnctx))
2316 || !TEST_int_eq(0, EC_POINT_cmp(group, Q, P, bnctx)))
2348 BN_CTX * bnctx = NULL; local
2352 if (!TEST_ptr(bnctx = BN_CTX_new())
2360 bnctx))
2363 bnctx))
2366 bnctx))
2369 bnctx))
    [all...]
endecode_test.c 57 static BN_CTX *bnctx = NULL; variable
1103 return TEST_ptr(a = BN_CTX_get(bnctx))
1104 && TEST_ptr(b = BN_CTX_get(bnctx))
1105 && TEST_ptr(prime = BN_CTX_get(bnctx))
1106 && TEST_ptr(order = BN_CTX_get(bnctx))
1192 return TEST_ptr(a = BN_CTX_get(bnctx))
1193 && TEST_ptr(b = BN_CTX_get(bnctx))
1194 && TEST_ptr(poly = BN_CTX_get(bnctx))
1195 && TEST_ptr(order = BN_CTX_get(bnctx))
1196 && TEST_ptr(cofactor = BN_CTX_get(bnctx))
    [all...]
  /src/external/bsd/wpa/dist/src/crypto/
crypto_openssl.c 2005 BN_CTX *bnctx; local
2007 bnctx = BN_CTX_new();
2008 if (bnctx == NULL)
2011 bnctx);
2012 BN_CTX_free(bnctx);
2024 BN_CTX *bnctx; local
2029 bnctx = BN_CTX_new();
2030 if (bnctx == NULL)
2034 bnctx, NULL);
2035 BN_CTX_free(bnctx);
2046 BN_CTX *bnctx; local
2083 BN_CTX *bnctx; local
2108 BN_CTX *bnctx; local
2131 BN_CTX *bnctx; local
2152 BN_CTX *bnctx; local
2203 BN_CTX *bnctx; local
2247 BN_CTX *bnctx; member in struct:crypto_ec
    [all...]

Completed in 56 milliseconds