Searched refs:bnctx (Results 1 - 14 of 14) sorted by relevance

/freebsd-current/contrib/libfido2/src/
H A Des384.c114 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 local
[all...]
H A Des256.c271 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 local
411 BN_CTX *bnctx = NULL; local
[all...]
/freebsd-current/crypto/openssl/providers/implementations/kem/
H A Drsa_kem.c213 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);
/freebsd-current/crypto/openssl/providers/fips/
H A Dself_test_kats.c202 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...]
/freebsd-current/crypto/openssl/providers/implementations/keymgmt/
H A Dec_kmgmt.c121 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
645 BN_CTX *bnctx = NULL; local
[all...]
/freebsd-current/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c1446 BN_CTX *bnctx; local
1448 bnctx = BN_CTX_new();
1449 if (bnctx == NULL)
1452 bnctx);
1453 BN_CTX_free(bnctx);
1465 BN_CTX *bnctx; local
1470 bnctx = BN_CTX_new();
1471 if (bnctx == NULL)
1475 bnctx, NULL);
1476 BN_CTX_free(bnctx);
1487 BN_CTX *bnctx; local
1524 BN_CTX *bnctx; local
1549 BN_CTX *bnctx; local
1572 BN_CTX *bnctx; local
1593 BN_CTX *bnctx; local
1646 BN_CTX *bnctx; local
1689 BN_CTX *bnctx; member in struct:crypto_ec
[all...]
/freebsd-current/crypto/openssl/crypto/ec/
H A Dec_ameth.c486 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);
H A Dec_backend.c157 OSSL_PARAM params[], BN_CTX *bnctx,
188 BIGNUM *p = BN_CTX_get(bnctx);
189 BIGNUM *a = BN_CTX_get(bnctx);
190 BIGNUM *b = BN_CTX_get(bnctx);
197 if (!EC_GROUP_get_curve(group, p, a, b, bnctx)) {
244 genbuf_len = EC_POINT_point2buf(group, genpt, genform, genbuf, bnctx);
291 BN_CTX *bnctx, unsigned char **genbuf)
334 if (!ec_group_explicit_todata(group, tmpl, params, bnctx, genbuf))
156 ec_group_explicit_todata(const EC_GROUP *group, OSSL_PARAM_BLD *tmpl, OSSL_PARAM params[], BN_CTX *bnctx, unsigned char **genbuf) argument
288 ossl_ec_group_todata(const EC_GROUP *group, OSSL_PARAM_BLD *tmpl, OSSL_PARAM params[], OSSL_LIB_CTX *libctx, const char *propq, BN_CTX *bnctx, unsigned char **genbuf) argument
H A Dec_lib.c1551 BN_CTX *bnctx = NULL; local
1583 bnctx = BN_CTX_new_ex(libctx);
1584 if (bnctx == NULL) {
1588 BN_CTX_start(bnctx);
1590 p = BN_CTX_get(bnctx);
1591 a = BN_CTX_get(bnctx);
1592 b = BN_CTX_get(bnctx);
1593 order = BN_CTX_get(bnctx);
1645 group = EC_GROUP_new_curve_GFp(p, a, b, bnctx);
1691 if (!EC_POINT_oct2point(group, point, buf, ptmp->data_size, bnctx)) {
[all...]
/freebsd-current/crypto/openssl/include/crypto/
H A Dec.h74 BN_CTX *bnctx, unsigned char **genbuf);
/freebsd-current/crypto/openssl/test/
H A Dendecode_test.c57 static BN_CTX *bnctx = NULL; variable
1099 return TEST_ptr(a = BN_CTX_get(bnctx))
1100 && TEST_ptr(b = BN_CTX_get(bnctx))
1101 && TEST_ptr(prime = BN_CTX_get(bnctx))
1102 && TEST_ptr(order = BN_CTX_get(bnctx))
1188 return TEST_ptr(a = BN_CTX_get(bnctx))
1189 && TEST_ptr(b = BN_CTX_get(bnctx))
1190 && TEST_ptr(poly = BN_CTX_get(bnctx))
1191 && TEST_ptr(order = BN_CTX_get(bnctx))
1192 && TEST_ptr(cofactor = BN_CTX_get(bnctx))
[all...]
H A Dectest.c2300 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))
2298 ec_point_hex2point_test_helper(const EC_GROUP *group, const EC_POINT *P, point_conversion_form_t form, BN_CTX *bnctx) argument
[all...]
/freebsd-current/crypto/heimdal/lib/hx509/
H A Dcrypto.c491 BN_CTX *bnctx = NULL; local
507 bnctx = BN_CTX_new();
512 if (EC_GROUP_get_order(group, order, bnctx) != 1)
518 if (bnctx)
519 BN_CTX_free(bnctx);
/freebsd-current/crypto/openssl/crypto/evp/
H A Dctrl_params_translate.c1638 BN_CTX *bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); local
1642 if (bnctx == NULL)
1646 &buf, bnctx);
1648 BN_CTX_free(bnctx);

Completed in 316 milliseconds