Searched refs:curve_name (Results 1 – 5 of 5) sorted by relevance
/php-src/ext/openssl/tests/ |
H A D | ecc_custom_params.phpt | 11 // 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 D | ecc_sm2.phpt | 12 // 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 D | ecc.phpt | 13 "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 D | openssl_pkey_get_details_basic.phpt | 24 [curve_name] => prime256v1
|
/php-src/ext/openssl/ |
H A D | openssl.c | 643 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 21 milliseconds