Lines Matching refs:bnctx
124 BN_CTX *bnctx = NULL; in key_to_params() local
139 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(eckey)); in key_to_params()
140 if (bnctx == NULL) in key_to_params()
157 pub_key, bnctx)) == 0 in key_to_params()
165 x = BN_CTX_get(bnctx); in key_to_params()
170 y = BN_CTX_get(bnctx); in key_to_params()
175 if (!EC_POINT_get_affine_coordinates(ecg, pub_point, x, y, bnctx)) in key_to_params()
237 BN_CTX_free(bnctx); in key_to_params()
459 BN_CTX *bnctx = NULL; in ec_export() local
489 bnctx = BN_CTX_new_ex(ossl_ec_key_get_libctx(ec)); in ec_export()
490 if (bnctx == NULL) { in ec_export()
494 BN_CTX_start(bnctx); in ec_export()
498 bnctx, &genbuf); in ec_export()
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
659 bnctx = BN_CTX_new_ex(libctx); in common_get_params()
660 if (bnctx == NULL) in common_get_params()
662 BN_CTX_start(bnctx); in common_get_params()
751 p->data, p->data_size, bnctx); in common_get_params()
757 && ossl_ec_group_todata(ecg, NULL, params, libctx, propq, bnctx, in common_get_params()
764 BN_CTX_end(bnctx); in common_get_params()
765 BN_CTX_free(bnctx); in common_get_params()