Home
last modified time | relevance | path

Searched refs:curve_name (Results 1 – 5 of 5) sorted by relevance

/php-src/ext/openssl/tests/
H A Decc_custom_params.phpt11 // EC - generate keypair with curve_name
12 echo "Testing openssl_pkey_new with ec curve_name\n";
13 $curve_name = openssl_get_curve_names()[0];
17 'curve_name' => $curve_name,
24 var_dump($ec_details['curve_name'] === $curve_name);
57 // EC - invalid curve_name
60 'curve_name' => 'invalid_curve_name',
93 Testing openssl_pkey_new with ec curve_name
106 Warning: openssl_pkey_new(): Missing params: curve_name in %s on line %d
109 Warning: openssl_pkey_new(): Missing params: curve_name or p, a, b, order in %s on line %d
H A Decc_sm2.phpt12 // EC - generate SM2 keypair with curve_name
13 echo "Testing openssl_pkey_new with ec curve_name SM2\n";
16 'curve_name' => 'SM2',
24 var_dump($details["ec"]["curve_name"]);
27 // EC - generate SM2 keypair with curve_name
33 var_dump($details_public_key["ec"]["curve_name"]);
70 Testing openssl_pkey_new with ec curve_name SM2
H A Decc.phpt13 "curve_name" => "secp384r1",
22 "curve_name" => "invalid_cuve_name",
33 var_dump($d1["ec"]["curve_name"]);
94 foreach ($curve_names as $curve_name) {
95 if ("secp384r1" === $curve_name) {
H A Dopenssl_pkey_get_details_basic.phpt24 [curve_name] => prime256v1
/php-src/ext/openssl/
H A Dopenssl.c643 int curve_name; member
1042 req->curve_name = NID_undef; in php_openssl_parse_config()
1045 req->curve_name = OBJ_sn2nid(Z_STRVAL_P(item)); in php_openssl_parse_config()
1046 if (req->curve_name == NID_undef) { in php_openssl_parse_config()
3852 if (req->curve_name == NID_undef) { in php_openssl_generate_private_key()
3857 if (EVP_PKEY_CTX_set_ec_paramgen_curve_nid(ctx, req->curve_name) <= 0 || in php_openssl_generate_private_key()
5212 zend_string *curve_name = php_openssl_get_utf8_param( in PHP_FUNCTION() local
5214 if (curve_name) { in PHP_FUNCTION()
5215 add_assoc_str(&ary, "curve_name", curve_name); in PHP_FUNCTION()
5217 int nid = OBJ_sn2nid(ZSTR_VAL(curve_name)); in PHP_FUNCTION()

Completed in 24 milliseconds