Lines Matching refs:ec
13 echo "Testing openssl_pkey_new with ec curve_name SM2\n";
14 $ec = openssl_pkey_new(array(
15 'ec'=> array(
20 var_dump($ec);
21 $details = openssl_pkey_get_details($ec);
24 var_dump($details["ec"]["curve_name"]);
33 var_dump($details_public_key["ec"]["curve_name"]);
35 var_dump($details_public_key["ec"]["x"] === $details["ec"]["x"]);
36 var_dump($details_public_key["ec"]["y"] === $details["ec"]["y"]);
39 echo "Testing openssl_pkey_new with ec explicit parameters (SM2 curve)\n";
47 $ec = openssl_pkey_new(array(
48 'ec'=> array(
58 $details = openssl_pkey_get_details($ec);
66 var_dump($details_public_key["ec"]["x"] === $details["ec"]["x"]);
67 var_dump($details_public_key["ec"]["y"] === $details["ec"]["y"]);
70 Testing openssl_pkey_new with ec curve_name SM2
85 Testing openssl_pkey_new with ec explicit parameters (SM2 curve)