@@ -14,12 +14,12 @@ final class OpenSSLAsymmetricKey
14
14
{
15
15
}
16
16
17
- function openssl_x509_export_to_file (OpenSSLCertificate |string $ certificate , string $ output_filename , bool $ no_description = true ): bool {}
17
+ function openssl_x509_export_to_file (OpenSSLCertificate |string $ certificate , string $ output_filename , bool $ no_text = true ): bool {}
18
18
19
19
/** @param string $output */
20
- function openssl_x509_export (OpenSSLCertificate |string $ certificate , &$ output , bool $ no_description = true ): bool {}
20
+ function openssl_x509_export (OpenSSLCertificate |string $ certificate , &$ output , bool $ no_text = true ): bool {}
21
21
22
- function openssl_x509_fingerprint (OpenSSLCertificate |string $ certificate , string $ hashing_algorithm = "sha1 " , bool $ raw_output = false ): string |false {}
22
+ function openssl_x509_fingerprint (OpenSSLCertificate |string $ certificate , string $ digest_algorithm = "sha1 " , bool $ raw_output = false ): string |false {}
23
23
24
24
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key */
25
25
function openssl_x509_check_private_key (OpenSSLCertificate |string $ certificate , $ private_key ): bool {}
@@ -29,7 +29,7 @@ function openssl_x509_verify(OpenSSLCertificate|string $certificate, $public_key
29
29
30
30
function openssl_x509_parse (OpenSSLCertificate |string $ certificate , bool $ short_names = true ): array |false {}
31
31
32
- function openssl_x509_checkpurpose (OpenSSLCertificate |string $ certificate , int $ purpose , ?array $ certificate_authority_info = [], ?string $ untrusted_certificates_file = null ): bool |int {}
32
+ function openssl_x509_checkpurpose (OpenSSLCertificate |string $ certificate , int $ purpose , ?array $ ca_info = [], ?string $ untrusted_certificates_file = null ): bool |int {}
33
33
34
34
function openssl_x509_read (OpenSSLCertificate |string $ certificate ): OpenSSLCertificate |false {}
35
35
@@ -48,10 +48,10 @@ function openssl_pkcs12_export(OpenSSLCertificate|string $certificate, &$output,
48
48
/** @param array $certificates */
49
49
function openssl_pkcs12_read (string $ pkcs12 , &$ certificates , string $ passphrase ): bool {}
50
50
51
- function openssl_csr_export_to_file (OpenSSLCertificateSigningRequest |string $ request , string $ output_filename , bool $ no_description = true ): bool {}
51
+ function openssl_csr_export_to_file (OpenSSLCertificateSigningRequest |string $ request , string $ output_filename , bool $ no_text = true ): bool {}
52
52
53
53
/** @param OpenSSLAsymmetricKey $output */
54
- function openssl_csr_export (OpenSSLCertificateSigningRequest |string $ request , &$ output , bool $ no_description = true ): bool {}
54
+ function openssl_csr_export (OpenSSLCertificateSigningRequest |string $ request , &$ output , bool $ no_text = true ): bool {}
55
55
56
56
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key */
57
57
function openssl_csr_sign (OpenSSLCertificateSigningRequest |string $ request , OpenSSLCertificate |string |null $ ca_certificate , $ private_key , int $ days , ?array $ options = null , int $ serial = 0 ): OpenSSLCertificate |false {}
@@ -103,12 +103,12 @@ function openssl_get_privatekey($private_key, ?string $passphrase = null): OpenS
103
103
104
104
function openssl_pkey_get_details (OpenSSLAsymmetricKey $ key ): array |false {}
105
105
106
- function openssl_pbkdf2 (string $ passphrase , string $ salt , int $ key_length , int $ iterations , string $ digest_method = "sha1 " ): string |false {}
106
+ function openssl_pbkdf2 (string $ passphrase , string $ salt , int $ key_length , int $ iterations , string $ digest_algorithm = "sha1 " ): string |false {}
107
107
108
- function openssl_pkcs7_verify (string $ filename , int $ flags , ?string $ output_filename = null , ?array $ certificate_authority_info = null , ?string $ untrusted_certificates_filename = null , ?string $ content = null , ?string $ pk7_filename = null ): bool |int {}
108
+ function openssl_pkcs7_verify (string $ filename , int $ flags , ?string $ output_filename = null , ?array $ ca_info = null , ?string $ untrusted_certificates_filename = null , ?string $ content = null , ?string $ pk7_filename = null ): bool |int {}
109
109
110
110
/** @param OpenSSLCertificate|array|string $certificate */
111
- function openssl_pkcs7_encrypt (string $ filename , string $ output_filename , $ certificate , ?array $ headers , int $ flags = 0 , int $ cipher_method = OPENSSL_CIPHER_RC2_40 ): bool {}
111
+ function openssl_pkcs7_encrypt (string $ filename , string $ output_filename , $ certificate , ?array $ headers , int $ flags = 0 , int $ cipher_algorithm = OPENSSL_CIPHER_RC2_40 ): bool {}
112
112
113
113
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key */
114
114
function openssl_pkcs7_sign (string $ filename , string $ output_filename , OpenSSLCertificate |string $ certificate , $ private_key , ?array $ headers , int $ flags = PKCS7_DETACHED , ?string $ untrusted_certificates_filename = null ): bool {}
@@ -122,10 +122,10 @@ function openssl_pkcs7_decrypt(string $filename, string $output_filename, $certi
122
122
/** @param array $certificates */
123
123
function openssl_pkcs7_read (string $ filename , &$ certificates ): bool {}
124
124
125
- function openssl_cms_verify (string $ filename , int $ flags = 0 , ?string $ certificates = null , ?array $ certificate_authority_info = null , ?string $ untrusted_certificates_filename = null , ?string $ content = null , ?string $ pk7 = null , ?string $ sigfile = null , int $ encoding = OPENSSL_ENCODING_SMIME ): bool {}
125
+ function openssl_cms_verify (string $ filename , int $ flags = 0 , ?string $ certificates = null , ?array $ ca_info = null , ?string $ untrusted_certificates_filename = null , ?string $ content = null , ?string $ pk7 = null , ?string $ sigfile = null , int $ encoding = OPENSSL_ENCODING_SMIME ): bool {}
126
126
127
127
/** @param OpenSSLCertificate|array|string $certificate */
128
- function openssl_cms_encrypt (string $ filename , string $ output_filename , $ certificate , ?array $ headers , int $ flags = 0 , int $ encoding = OPENSSL_ENCODING_SMIME , int $ cipher_method = OPENSSL_CIPHER_RC2_40 ): bool {}
128
+ function openssl_cms_encrypt (string $ filename , string $ output_filename , $ certificate , ?array $ headers , int $ flags = 0 , int $ encoding = OPENSSL_ENCODING_SMIME , int $ cipher_algorithm = OPENSSL_CIPHER_RC2_40 ): bool {}
129
129
130
130
/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key */
131
131
function openssl_cms_sign (string $ filename , string $ output_filename , OpenSSLCertificate |string $ certificate , $ private_key , ?array $ headers , int $ flags = 0 , int $ encoding = OPENSSL_ENCODING_SMIME , ?string $ untrusted_certificates_filename = null ): bool {}
@@ -179,13 +179,13 @@ function openssl_verify(string $data, string $signature, $public_key, string|int
179
179
* @param array $encrypted_keys
180
180
* @param string $initialization_vector
181
181
*/
182
- function openssl_seal (string $ data , &$ sealed_data , &$ encrypted_keys , array $ public_key , string $ cipher_method , &$ initialization_vector = null ): int |false {}
182
+ function openssl_seal (string $ data , &$ sealed_data , &$ encrypted_keys , array $ public_key , string $ cipher_algorithm , &$ initialization_vector = null ): int |false {}
183
183
184
184
/**
185
185
* @param string $output
186
186
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
187
187
*/
188
- function openssl_open (string $ data , &$ output , string $ encrypted_key , $ private_key , string $ cipher_method , ?string $ initialization_vector = null ): bool {}
188
+ function openssl_open (string $ data , &$ output , string $ encrypted_key , $ private_key , string $ cipher_algorithm , ?string $ initialization_vector = null ): bool {}
189
189
190
190
function openssl_get_md_methods (bool $ aliases = false ): array {}
191
191
@@ -195,14 +195,14 @@ function openssl_get_cipher_methods(bool $aliases = false): array {}
195
195
function openssl_get_curve_names (): array |false {}
196
196
#endif
197
197
198
- function openssl_digest (string $ data , string $ digest_method , bool $ raw_output = false ): string |false {}
198
+ function openssl_digest (string $ data , string $ digest_algorithm , bool $ raw_output = false ): string |false {}
199
199
200
200
/** @param string $tag */
201
- function openssl_encrypt (string $ data , string $ cipher_method , string $ passphrase , int $ options = 0 , string $ initialization_vector = "" , &$ tag = null , string $ additional_authentication_data = "" , int $ tag_length = 16 ): string |false {}
201
+ function openssl_encrypt (string $ data , string $ cipher_algorithm , string $ passphrase , int $ options = 0 , string $ initialization_vector = "" , &$ tag = null , string $ additional_authentication_data = "" , int $ tag_length = 16 ): string |false {}
202
202
203
- function openssl_decrypt (string $ data , string $ method , string $ passphrase , int $ options = 0 , string $ initialization_vector = "" , ?string $ tag = null , string $ additional_authentication_data = "" ): string |false {}
203
+ function openssl_decrypt (string $ data , string $ cipher_algorithm , string $ passphrase , int $ options = 0 , string $ initialization_vector = "" , ?string $ tag = null , string $ additional_authentication_data = "" ): string |false {}
204
204
205
- function openssl_cipher_iv_length (string $ cipher_method ): int |false {}
205
+ function openssl_cipher_iv_length (string $ cipher_algorithm ): int |false {}
206
206
207
207
function openssl_dh_compute_key (string $ public_key , OpenSSLAsymmetricKey $ private_key ): string |false {}
208
208
@@ -215,7 +215,7 @@ function openssl_pkey_derive($public_key, $private_key, int $key_length = 0): st
215
215
/** @param bool $strong_result */
216
216
function openssl_random_pseudo_bytes (int $ length , &$ strong_result = null ): string {}
217
217
218
- function openssl_spki_new (OpenSSLAsymmetricKey $ private_key , string $ challenge , int $ digest_method = OPENSSL_ALGO_MD5 ): string |false {}
218
+ function openssl_spki_new (OpenSSLAsymmetricKey $ private_key , string $ challenge , int $ digest_algorithm = OPENSSL_ALGO_MD5 ): string |false {}
219
219
220
220
function openssl_spki_verify (string $ signed_public_key_and_challenge ): bool {}
221
221
0 commit comments