/php-src/ext/openssl/tests/ |
H A D | openssl_pkcs7_sign_basic.phpt | 13 $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 D | openssl_cms_sign_basic.phpt | 13 $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 D | openssl_pkcs7_decrypt_basic.phpt | 8 $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 D | openssl_cms_decrypt_basic.phpt | 8 $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 D | openssl_csr_sign_with_serial_hex.phpt | 26 $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 D | gh16433.phpt | 7 $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 D | openssl_csr_sign_basic.phpt | 34 $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 D | openssl_private_decrypt_basic.phpt | 8 $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 D | bug50293.phpt | 30 $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 D | bug52093.phpt | 19 $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 D | openssl_cms_sign_der.phpt | 13 $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 D | openssl_verify_basic.phpt | 8 $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 D | openssl_private_encrypt_basic.phpt | 8 $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 D | openssl_public_encrypt_basic.phpt | 8 $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 D | openssl_sign_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 11 var_dump(openssl_sign($data, $sign, $privkey, OPENSSL_ALGO_SHA256)); // no output
|
H A D | openssl_csr_export_basic.phpt | 31 $privkey = openssl_pkey_new($config_arg); 32 $csr = openssl_csr_new($dn, $privkey, $args); 40 var_dump(openssl_csr_export($privkey, $output));
|
H A D | openssl_csr_new_with_attribs.phpt | 29 $privkey = 'file://' . __DIR__ . '/private_rsa_2048.key'; 33 $privkey, 49 $privkey,
|
H A D | 001.phpt | 14 $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 D | openssl_cms_sign_verify_nodetached_pem.phpt | 15 $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 D | openssl_cms_sign_verify_detached.phpt | 15 $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 D | gh12489.phpt | 11 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 16 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers,
|
H A D | openssl_cms_encrypt_pem.phpt | 14 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 19 if (openssl_cms_decrypt($cryptfile, $decryptfile, $single_cert, $privkey, OPENSSL_ENCODING_PEM) == …
|
H A D | openssl_cms_encrypt_der.phpt | 14 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 19 if (openssl_cms_decrypt($cryptfile, $decryptfile, $single_cert, $privkey, OPENSSL_ENCODING_DER) == …
|
H A D | openssl_cms_sign_verify_basic.phpt | 15 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 24 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers));
|
H A D | openssl_free_key.phpt | 17 $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 …
|