Lines Matching refs:bctx

4382 	BN_CTX *bctx = BN_CTX_new();  in php_openssl_pkey_init_legacy_ec()  local
4414 if (!(group = EC_GROUP_new_curve_GFp(p, a, b, bctx))) { in php_openssl_pkey_init_legacy_ec()
4424 …oint(group, point_g, (unsigned char *)Z_STRVAL_P(generator_zv), Z_STRLEN_P(generator_zv), bctx))) { in php_openssl_pkey_init_legacy_ec()
4437 if (!EC_POINT_set_affine_coordinates_GFp(group, point_g, g_x, g_y, bctx)) { in php_openssl_pkey_init_legacy_ec()
4478 if (!point_q || !EC_POINT_mul(group, point_q, d, NULL, NULL, bctx)) { in php_openssl_pkey_init_legacy_ec()
4484 if (!point_q || !EC_POINT_set_affine_coordinates_GFp(group, point_q, x, y, bctx)) { in php_openssl_pkey_init_legacy_ec()
4503 BN_CTX_free(bctx); in php_openssl_pkey_init_legacy_ec()
4533 BN_CTX *bctx = BN_CTX_new(); in php_openssl_pkey_init_ec() local
4539 if (!ctx || !bld || !bctx) { in php_openssl_pkey_init_ec()
4581 if (!(group = EC_GROUP_new_curve_GFp(p, a, b, bctx))) { in php_openssl_pkey_init_ec()
4591 …point(group, point_g, (unsigned char *)Z_STRVAL_P(generator_zv), Z_STRLEN_P(generator_zv), bctx) || in php_openssl_pkey_init_ec()
4605 if (!EC_POINT_set_affine_coordinates(group, point_g, g_x, g_y, bctx)) { in php_openssl_pkey_init_ec()
4610 EC_POINT_point2buf(group, point_g, POINT_CONVERSION_COMPRESSED, &point_g_buf, bctx); in php_openssl_pkey_init_ec()
4634 nid = EC_GROUP_check_named_curve(group, 0, bctx); in php_openssl_pkey_init_ec()
4645 if (!point_q || !EC_POINT_mul(group, point_q, d, NULL, NULL, bctx) || in php_openssl_pkey_init_ec()
4652 if (!point_q || !EC_POINT_set_affine_coordinates(group, point_q, x, y, bctx)) { in php_openssl_pkey_init_ec()
4659 EC_POINT_point2buf(group, point_q, POINT_CONVERSION_COMPRESSED, &point_q_buf, bctx); in php_openssl_pkey_init_ec()
4699 BN_CTX_free(bctx); in php_openssl_pkey_init_ec()