Home
last modified time | relevance | path

Searched refs:privkey (Results 1 – 25 of 33) sorted by relevance

12

/php-src/ext/openssl/tests/
H A Dopenssl_pkcs7_sign_basic.phpt13 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
21 var_dump(openssl_pkcs7_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers)…
22 var_dump(openssl_pkcs7_sign($infile, $outfile, $single_cert, $privkey, $headers));
23 var_dump(openssl_pkcs7_sign($infile, $outfile, $single_cert, $privkey, $assoc_headers));
24 var_dump(openssl_pkcs7_sign($infile, $outfile, $single_cert, $privkey, $empty_headers));
25 var_dump(openssl_pkcs7_sign($wrong, $outfile, $single_cert, $privkey, $headers));
26 var_dump(openssl_pkcs7_sign($empty, $outfile, $single_cert, $privkey, $headers));
27 var_dump(openssl_pkcs7_sign($infile, $empty, $single_cert, $privkey, $headers));
28 var_dump(openssl_pkcs7_sign($infile, $outfile, $wrong, $privkey, $headers));
29 var_dump(openssl_pkcs7_sign($infile, $outfile, $empty, $privkey, $headers));
H A Dopenssl_cms_sign_basic.phpt13 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
21 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers));
26 var_dump(openssl_cms_sign($infile, $outfile, $single_cert, $privkey, $headers));
27 var_dump(openssl_cms_sign($infile, $outfile, $single_cert, $privkey, $assoc_headers));
28 var_dump(openssl_cms_sign($infile, $outfile, $single_cert, $privkey, $empty_headers));
29 var_dump(openssl_cms_sign($wrong, $outfile, $single_cert, $privkey, $headers));
30 var_dump(openssl_cms_sign($empty, $outfile, $single_cert, $privkey, $headers));
31 var_dump(openssl_cms_sign($infile, $empty, $single_cert, $privkey, $headers));
32 var_dump(openssl_cms_sign($infile, $outfile, $wrong, $privkey, $headers));
33 var_dump(openssl_cms_sign($infile, $outfile, $empty, $privkey, $headers));
H A Dopenssl_pkcs7_decrypt_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
25 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, $single_cert, $privkey));
26 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, openssl_x509_read($single_cert), $privkey));
28 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, $wrong, $privkey));
29 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, null, $privkey));
30 var_dump(openssl_pkcs7_decrypt($wrong, $outfile, $single_cert, $privkey));
31 var_dump(openssl_pkcs7_decrypt($empty, $outfile, $single_cert, $privkey));
32 var_dump(openssl_pkcs7_decrypt($encrypted, $empty, $single_cert, $privkey));
33 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, $empty, $privkey));
H A Dopenssl_cms_decrypt_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
22 var_dump(openssl_cms_decrypt($encrypted, $outfile, $single_cert, $privkey));
25 var_dump(openssl_cms_decrypt($encrypted, $outfile, openssl_x509_read($single_cert), $privkey));
27 var_dump(openssl_cms_decrypt($encrypted, $outfile, $wrong, $privkey));
28 var_dump(openssl_cms_decrypt($encrypted, $outfile, null, $privkey));
29 var_dump(openssl_cms_decrypt($wrong, $outfile, $single_cert, $privkey));
30 var_dump(openssl_cms_decrypt($empty, $outfile, $single_cert, $privkey));
31 var_dump(openssl_cms_decrypt($encrypted, $empty, $single_cert, $privkey));
32 var_dump(openssl_cms_decrypt($encrypted, $outfile, $empty, $privkey));
H A Dopenssl_csr_sign_with_serial_hex.phpt26 $privkey = openssl_pkey_new($config_arg);
27 $csr = openssl_csr_new($dn, $privkey, $args);
29 var_dump($cert1 = openssl_csr_sign($csr, null, $privkey, 365, $args, 1234567));
30 var_dump($cert2 = openssl_csr_sign($csr, null, $privkey, 365, $args, serial_hex: 'DEADBEEF'));
31 var_dump($cert3 = openssl_csr_sign($csr, null, $privkey, 365, $args, 10, 'DEADBEEFDEADBEEFDEADBEEFD…
33 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args, 0, 'DEADBEEG'));
34 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args, 0, '0xDEADBEEF'));
35 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args, 0, str_repeat('FF', 500)));
H A Dgh16433.phpt7 $privkey = openssl_pkey_new();
8 $csr = openssl_csr_new([], $privkey);
9 var_dump(openssl_csr_sign($csr, null, $privkey, PHP_INT_MAX));
10 var_dump(openssl_csr_sign($csr, null, $privkey, -1));
H A Dopenssl_csr_sign_basic.phpt34 $privkey = openssl_pkey_new($config_arg);
35 $csr = openssl_csr_new($dn, $privkey, $args);
37 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args));
38 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $config_arg));
41 var_dump(openssl_csr_sign($csr, $wrong, $privkey, 365));
43 var_dump(openssl_csr_sign($wrong, null, $privkey, 365));
46 openssl_csr_sign(array(), null, $privkey, 365);
52 var_dump(openssl_csr_sign($csr, array(), $privkey, 365));
62 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $config_arg));
H A Dopenssl_private_decrypt_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
13 var_dump(openssl_private_decrypt($encrypted, $output, $privkey, OPENSSL_PKCS1_OAEP_PADDING));
17 var_dump(openssl_private_decrypt($wrong, $output3, $privkey, OPENSSL_PKCS1_OAEP_PADDING));
21 …var_dump(openssl_private_decrypt($encrypted, $output4, array($privkey), OPENSSL_PKCS1_OAEP_PADDING…
27 var_dump(openssl_private_decrypt($encrypted, $output5, array($privkey, ""), OPENSSL_PKCS1_OAEP_PADD…
H A Dbug50293.phpt30 $privkey = openssl_pkey_get_private('file://' . __DIR__ . '/private_ec.key');
31 $csr = openssl_csr_new($dn, $privkey, $args);
32 $sscert = openssl_csr_sign($csr, null, $privkey, 365, $args);
36 openssl_pkey_export_to_file($privkey, "bug50293.pem", null, $args);
H A Dbug52093.phpt19 $privkey = openssl_pkey_new();
20 $csr = openssl_csr_new($dn, $privkey, $options);
21 $cert = openssl_csr_sign($csr, null, $privkey, 365, $options, PHP_INT_MAX);
H A Dopenssl_cms_sign_der.phpt13 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
21 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $empty_head…
22 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers));
H A Dopenssl_verify_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
12 openssl_sign($data, $sign, $privkey, OPENSSL_ALGO_SHA256);
14 var_dump(openssl_verify($data, $sign, $privkey, OPENSSL_ALGO_SHA256));
H A Dopenssl_private_encrypt_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
19 var_dump(openssl_private_encrypt($data, $encrypted, $privkey));
23 var_dump(openssl_private_encrypt($obj, $encrypted, $privkey));
H A Dopenssl_public_encrypt_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
20 var_dump(openssl_public_encrypt($data, $encrypted, $privkey));
24 openssl_private_decrypt($encrypted, $output, $privkey);
H A Dopenssl_sign_basic.phpt8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
11 var_dump(openssl_sign($data, $sign, $privkey, OPENSSL_ALGO_SHA256)); // no output
H A Dopenssl_csr_export_basic.phpt31 $privkey = openssl_pkey_new($config_arg);
32 $csr = openssl_csr_new($dn, $privkey, $args);
40 var_dump(openssl_csr_export($privkey, $output));
H A Dopenssl_csr_new_with_attribs.phpt29 $privkey = 'file://' . __DIR__ . '/private_rsa_2048.key';
33 $privkey,
49 $privkey,
H A D001.phpt14 $privkey = openssl_pkey_new($conf);
16 if ($privkey === false) {
28 if (!openssl_pkey_export_to_file($privkey, $key_file_name, $passphrase, $conf)) {
31 var_dump($privkey instanceof OpenSSLAsymmetricKey);
H A Dopenssl_cms_sign_verify_nodetached_pem.phpt15 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
24 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers));
39 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers,
58 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers,
H A Dopenssl_cms_sign_verify_detached.phpt15 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
24 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers));
42 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers,
60 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers,
79 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers,
H A Dgh12489.phpt11 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
16 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers,
H A Dopenssl_cms_encrypt_pem.phpt14 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
19 if (openssl_cms_decrypt($cryptfile, $decryptfile, $single_cert, $privkey, OPENSSL_ENCODING_PEM) == …
H A Dopenssl_cms_encrypt_der.phpt14 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
19 if (openssl_cms_decrypt($cryptfile, $decryptfile, $single_cert, $privkey, OPENSSL_ENCODING_DER) == …
H A Dopenssl_cms_sign_verify_basic.phpt15 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key";
24 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers));
H A Dopenssl_free_key.phpt17 $privkey = openssl_pkey_new($conf);
19 if ($privkey === false)
29 openssl_pkey_export_to_file($privkey, $key_file_name, $passphrase, $conf) or die("failed to export …

Completed in 19 milliseconds

12