php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
openssl.stub.php File Reference

Go to the source code of this file.

Data Structures

class  OpenSSLCertificate
 
class  OpenSSLCertificateSigningRequest
 
class  OpenSSLAsymmetricKey
 

Functions

 openssl_x509_export_to_file (OpenSSLCertificate|string $certificate, string $output_filename, bool $no_text=true)
 
 openssl_x509_export (OpenSSLCertificate|string $certificate, &$output, bool $no_text=true)
 
 openssl_x509_fingerprint (OpenSSLCertificate|string $certificate, string $digest_algo="sha1", bool $binary=false)
 
 openssl_x509_check_private_key (OpenSSLCertificate|string $certificate, #[\SensitiveParameter] $private_key)
 
 openssl_x509_verify (OpenSSLCertificate|string $certificate, $public_key)
 
 openssl_x509_parse (OpenSSLCertificate|string $certificate, bool $short_names=true)
 
 openssl_x509_checkpurpose (OpenSSLCertificate|string $certificate, int $purpose, array $ca_info=[], ?string $untrusted_certificates_file=null)
 
 openssl_x509_read (OpenSSLCertificate|string $certificate)
 
 openssl_x509_free (OpenSSLCertificate $certificate)
 
 openssl_pkcs12_export_to_file (OpenSSLCertificate|string $certificate, string $output_filename, #[\SensitiveParameter] $private_key, #[\SensitiveParameter] string $passphrase, array $options=[])
 
 openssl_pkcs12_export (OpenSSLCertificate|string $certificate, &$output, #[\SensitiveParameter] $private_key, #[\SensitiveParameter] string $passphrase, array $options=[])
 
 openssl_pkcs12_read (string $pkcs12, &$certificates, #[\SensitiveParameter] string $passphrase)
 
 openssl_csr_export_to_file (OpenSSLCertificateSigningRequest|string $csr, string $output_filename, bool $no_text=true)
 
 openssl_csr_export (OpenSSLCertificateSigningRequest|string $csr, &$output, bool $no_text=true)
 
 openssl_csr_sign (OpenSSLCertificateSigningRequest|string $csr, OpenSSLCertificate|string|null $ca_certificate, #[\SensitiveParameter] $private_key, int $days, ?array $options=null, int $serial=0, ?string $serial_hex=null)
 
 openssl_csr_new (array $distinguished_names, #[\SensitiveParameter] &$private_key, ?array $options=null, ?array $extra_attributes=null)
 
 openssl_csr_get_subject (OpenSSLCertificateSigningRequest|string $csr, bool $short_names=true)
 
 openssl_csr_get_public_key (OpenSSLCertificateSigningRequest|string $csr, bool $short_names=true)
 
 openssl_pkey_new (?array $options=null)
 
 openssl_pkey_export_to_file (#[\SensitiveParameter] $key, string $output_filename, #[\SensitiveParameter] ?string $passphrase=null, ?array $options=null)
 
 openssl_pkey_export (#[\SensitiveParameter] $key, &$output, #[\SensitiveParameter] ?string $passphrase=null, ?array $options=null)
 
 openssl_pkey_get_public ($public_key)
 
 openssl_get_publickey ($public_key)
 
 openssl_pkey_free (OpenSSLAsymmetricKey $key)
 
 openssl_free_key (OpenSSLAsymmetricKey $key)
 
 openssl_pkey_get_private (#[\SensitiveParameter] $private_key, #[\SensitiveParameter] ?string $passphrase=null)
 
 openssl_get_privatekey (#[\SensitiveParameter] $private_key, #[\SensitiveParameter] ?string $passphrase=null)
 
 openssl_pkey_get_details (OpenSSLAsymmetricKey $key)
 
 openssl_pbkdf2 (#[\SensitiveParameter] string $password, string $salt, int $key_length, int $iterations, string $digest_algo="sha1")
 
 openssl_pkcs7_verify (string $input_filename, int $flags, ?string $signers_certificates_filename=null, array $ca_info=[], ?string $untrusted_certificates_filename=null, ?string $content=null, ?string $output_filename=null)
 
 openssl_pkcs7_encrypt (string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags=0, int $cipher_algo=OPENSSL_CIPHER_AES_128_CBC)
 
 openssl_pkcs7_sign (string $input_filename, string $output_filename, OpenSSLCertificate|string $certificate, #[\SensitiveParameter] $private_key, ?array $headers, int $flags=PKCS7_DETACHED, ?string $untrusted_certificates_filename=null)
 
 openssl_pkcs7_decrypt (string $input_filename, string $output_filename, #[\SensitiveParameter] $certificate, #[\SensitiveParameter] $private_key=null)
 
 openssl_pkcs7_read (string $data, &$certificates)
 
 openssl_cms_verify (string $input_filename, int $flags=0, ?string $certificates=null, array $ca_info=[], ?string $untrusted_certificates_filename=null, ?string $content=null, ?string $pk7=null, ?string $sigfile=null, int $encoding=OPENSSL_ENCODING_SMIME)
 
 openssl_cms_encrypt (string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags=0, int $encoding=OPENSSL_ENCODING_SMIME, int $cipher_algo=OPENSSL_CIPHER_AES_128_CBC)
 
 openssl_cms_sign (string $input_filename, string $output_filename, OpenSSLCertificate|string $certificate, #[\SensitiveParameter] $private_key, ?array $headers, int $flags=0, int $encoding=OPENSSL_ENCODING_SMIME, ?string $untrusted_certificates_filename=null)
 
 openssl_cms_decrypt (string $input_filename, string $output_filename, #[\SensitiveParameter] $certificate, #[\SensitiveParameter] $private_key=null, int $encoding=OPENSSL_ENCODING_SMIME)
 
 openssl_cms_read (string $input_filename, &$certificates)
 
 openssl_private_encrypt (#[\SensitiveParameter] string $data, &$encrypted_data, #[\SensitiveParameter] $private_key, int $padding=OPENSSL_PKCS1_PADDING)
 
 openssl_private_decrypt (string $data, #[\SensitiveParameter] &$decrypted_data, #[\SensitiveParameter] $private_key, int $padding=OPENSSL_PKCS1_PADDING)
 
 openssl_public_encrypt (#[\SensitiveParameter] string $data, &$encrypted_data, $public_key, int $padding=OPENSSL_PKCS1_PADDING)
 
 openssl_public_decrypt (string $data, #[\SensitiveParameter] &$decrypted_data, $public_key, int $padding=OPENSSL_PKCS1_PADDING)
 
 openssl_error_string ()
 
 openssl_sign (string $data, &$signature, #[\SensitiveParameter] $private_key, string|int $algorithm=OPENSSL_ALGO_SHA1)
 
 openssl_verify (string $data, string $signature, $public_key, string|int $algorithm=OPENSSL_ALGO_SHA1)
 
 openssl_seal (#[\SensitiveParameter] string $data, &$sealed_data, &$encrypted_keys, array $public_key, string $cipher_algo, &$iv=null)
 
 openssl_open (string $data, #[\SensitiveParameter] &$output, string $encrypted_key, #[\SensitiveParameter] $private_key, string $cipher_algo, ?string $iv=null)
 
 openssl_get_md_methods (bool $aliases=false)
 
 openssl_get_cipher_methods (bool $aliases=false)
 
 openssl_get_curve_names ()
 
 openssl_digest (string $data, string $digest_algo, bool $binary=false)
 
 openssl_encrypt (#[\SensitiveParameter] string $data, string $cipher_algo, #[\SensitiveParameter] string $passphrase, int $options=0, string $iv="", &$tag=null, string $aad="", int $tag_length=16)
 
 openssl_decrypt (string $data, string $cipher_algo, #[\SensitiveParameter] string $passphrase, int $options=0, string $iv="", ?string $tag=null, string $aad="")
 
 openssl_cipher_iv_length (string $cipher_algo)
 
 openssl_cipher_key_length (string $cipher_algo)
 
 openssl_dh_compute_key (string $public_key, #[\SensitiveParameter] OpenSSLAsymmetricKey $private_key)
 
 openssl_pkey_derive ($public_key, #[\SensitiveParameter] $private_key, int $key_length=0)
 
 openssl_random_pseudo_bytes (int $length, &$strong_result=null)
 
 openssl_spki_new (#[\SensitiveParameter] OpenSSLAsymmetricKey $private_key, string $challenge, int $digest_algo=OPENSSL_ALGO_MD5)
 
 openssl_spki_verify (string $spki)
 
 openssl_spki_export (string $spki)
 
 openssl_spki_export_challenge (string $spki)
 
 openssl_get_cert_locations ()
 
 openssl_password_hash (string $algo, #[\SensitiveParameter] string $password, array $options=[])
 
 openssl_password_verify (string $algo, #[\SensitiveParameter] string $password, string $hash)
 

Variables

const OPENSSL_VERSION_TEXT = UNKNOWN
 
const OPENSSL_VERSION_NUMBER = UNKNOWN
 
const X509_PURPOSE_SSL_CLIENT = UNKNOWN
 
const X509_PURPOSE_SSL_SERVER = UNKNOWN
 
const X509_PURPOSE_NS_SSL_SERVER = UNKNOWN
 
const X509_PURPOSE_SMIME_SIGN = UNKNOWN
 
const X509_PURPOSE_SMIME_ENCRYPT = UNKNOWN
 
const X509_PURPOSE_CRL_SIGN = UNKNOWN
 
const X509_PURPOSE_ANY = UNKNOWN
 
const X509_PURPOSE_OCSP_HELPER = UNKNOWN
 
const X509_PURPOSE_TIMESTAMP_SIGN = UNKNOWN
 
const OPENSSL_ALGO_SHA1 = UNKNOWN
 
const OPENSSL_ALGO_MD5 = UNKNOWN
 
const OPENSSL_ALGO_MD4 = UNKNOWN
 
const OPENSSL_ALGO_MD2 = UNKNOWN
 
const OPENSSL_ALGO_DSS1 = UNKNOWN
 
const OPENSSL_ALGO_SHA224 = UNKNOWN
 
const OPENSSL_ALGO_SHA256 = UNKNOWN
 
const OPENSSL_ALGO_SHA384 = UNKNOWN
 
const OPENSSL_ALGO_SHA512 = UNKNOWN
 
const OPENSSL_ALGO_RMD160 = UNKNOWN
 
const PKCS7_DETACHED = UNKNOWN
 
const PKCS7_TEXT = UNKNOWN
 
const PKCS7_NOINTERN = UNKNOWN
 
const PKCS7_NOVERIFY = UNKNOWN
 
const PKCS7_NOCHAIN = UNKNOWN
 
const PKCS7_NOCERTS = UNKNOWN
 
const PKCS7_NOATTR = UNKNOWN
 
const PKCS7_BINARY = UNKNOWN
 
const PKCS7_NOSIGS = UNKNOWN
 
const PKCS7_NOOLDMIMETYPE = UNKNOWN
 
const OPENSSL_CMS_DETACHED = UNKNOWN
 
const OPENSSL_CMS_TEXT = UNKNOWN
 
const OPENSSL_CMS_NOINTERN = UNKNOWN
 
const OPENSSL_CMS_NOVERIFY = UNKNOWN
 
const OPENSSL_CMS_NOCERTS = UNKNOWN
 
const OPENSSL_CMS_NOATTR = UNKNOWN
 
const OPENSSL_CMS_BINARY = UNKNOWN
 
const OPENSSL_CMS_NOSIGS = UNKNOWN
 
const OPENSSL_CMS_OLDMIMETYPE = UNKNOWN
 
const OPENSSL_PKCS1_PADDING = UNKNOWN
 
const OPENSSL_SSLV23_PADDING = UNKNOWN
 
const OPENSSL_NO_PADDING = UNKNOWN
 
const OPENSSL_PKCS1_OAEP_PADDING = UNKNOWN
 
const OPENSSL_DEFAULT_STREAM_CIPHERS = UNKNOWN
 
const OPENSSL_CIPHER_RC2_40 = UNKNOWN
 
const OPENSSL_CIPHER_RC2_128 = UNKNOWN
 
const OPENSSL_CIPHER_RC2_64 = UNKNOWN
 
const OPENSSL_CIPHER_DES = UNKNOWN
 
const OPENSSL_CIPHER_3DES = UNKNOWN
 
const OPENSSL_CIPHER_AES_128_CBC = UNKNOWN
 
const OPENSSL_CIPHER_AES_192_CBC = UNKNOWN
 
const OPENSSL_CIPHER_AES_256_CBC = UNKNOWN
 
const OPENSSL_KEYTYPE_RSA = UNKNOWN
 
const OPENSSL_KEYTYPE_DSA = UNKNOWN
 
const OPENSSL_KEYTYPE_DH = UNKNOWN
 
const OPENSSL_KEYTYPE_EC = UNKNOWN
 
const OPENSSL_KEYTYPE_X25519 = UNKNOWN
 
const OPENSSL_KEYTYPE_ED25519 = UNKNOWN
 
const OPENSSL_KEYTYPE_X448 = UNKNOWN
 
const OPENSSL_KEYTYPE_ED448 = UNKNOWN
 
const OPENSSL_RAW_DATA = UNKNOWN
 
const OPENSSL_ZERO_PADDING = UNKNOWN
 
const OPENSSL_DONT_ZERO_PAD_KEY = UNKNOWN
 
const OPENSSL_TLSEXT_SERVER_NAME = 1
 
const OPENSSL_ENCODING_DER = UNKNOWN
 
const OPENSSL_ENCODING_SMIME = UNKNOWN
 
const OPENSSL_ENCODING_PEM = UNKNOWN
 

Function Documentation

◆ openssl_cipher_iv_length()

openssl_cipher_iv_length ( string $cipher_algo)

Definition at line 653 of file openssl.stub.php.

◆ openssl_cipher_key_length()

openssl_cipher_key_length ( string $cipher_algo)

Definition at line 655 of file openssl.stub.php.

◆ openssl_cms_decrypt()

openssl_cms_decrypt ( string $input_filename,
string $output_filename,
# $certificate[\SensitiveParameter],
# $private_key[\SensitiveParameter] = null,
int $encoding = OPENSSL_ENCODING_SMIME )
Parameters
OpenSSLCertificate | string$certificate
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string | null$private_key

Definition at line 571 of file openssl.stub.php.

◆ openssl_cms_encrypt()

openssl_cms_encrypt ( string $input_filename,
string $output_filename,
$certificate,
?array $headers,
int $flags = 0,
int $encoding = OPENSSL_ENCODING_SMIME,
int $cipher_algo = OPENSSL_CIPHER_AES_128_CBC )
Parameters
OpenSSLCertificate | array | string$certificate

Definition at line 560 of file openssl.stub.php.

◆ openssl_cms_read()

openssl_cms_read ( string $input_filename,
& $certificates )
Parameters
array$certificates

Definition at line 574 of file openssl.stub.php.

◆ openssl_cms_sign()

openssl_cms_sign ( string $input_filename,
string $output_filename,
OpenSSLCertificate|string $certificate,
# $private_key[\SensitiveParameter],
?array $headers,
int $flags = 0,
int $encoding = OPENSSL_ENCODING_SMIME,
?string $untrusted_certificates_filename = null )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 565 of file openssl.stub.php.

◆ openssl_cms_verify()

openssl_cms_verify ( string $input_filename,
int $flags = 0,
?string $certificates = null,
array $ca_info = [],
?string $untrusted_certificates_filename = null,
?string $content = null,
?string $pk7 = null,
?string $sigfile = null,
int $encoding = OPENSSL_ENCODING_SMIME )

Definition at line 557 of file openssl.stub.php.

◆ openssl_csr_export()

openssl_csr_export ( OpenSSLCertificateSigningRequest|string $csr,
& $output,
bool $no_text = true )
Parameters
string$output

Definition at line 468 of file openssl.stub.php.

◆ openssl_csr_export_to_file()

openssl_csr_export_to_file ( OpenSSLCertificateSigningRequest|string $csr,
string $output_filename,
bool $no_text = true )

Definition at line 465 of file openssl.stub.php.

◆ openssl_csr_get_public_key()

openssl_csr_get_public_key ( OpenSSLCertificateSigningRequest|string $csr,
bool $short_names = true )

Definition at line 486 of file openssl.stub.php.

◆ openssl_csr_get_subject()

openssl_csr_get_subject ( OpenSSLCertificateSigningRequest|string $csr,
bool $short_names = true )
Returns
array<string, string|array>|false @refcount 1

Definition at line 484 of file openssl.stub.php.

◆ openssl_csr_new()

openssl_csr_new ( array $distinguished_names,
# & $private_key[\SensitiveParameter],
?array $options = null,
?array $extra_attributes = null )
Parameters
OpenSSLAsymmetricKey | null$private_key

Definition at line 478 of file openssl.stub.php.

◆ openssl_csr_sign()

openssl_csr_sign ( OpenSSLCertificateSigningRequest|string $csr,
OpenSSLCertificate|string|null $ca_certificate,
# $private_key[\SensitiveParameter],
int $days,
?array $options = null,
int $serial = 0,
?string $serial_hex = null )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 473 of file openssl.stub.php.

◆ openssl_decrypt()

openssl_decrypt ( string $data,
string $cipher_algo,
# string $passphrase[\SensitiveParameter],
int $options = 0,
string $iv = "",
?string $tag = null,
string $aad = "" )

Definition at line 651 of file openssl.stub.php.

◆ openssl_dh_compute_key()

openssl_dh_compute_key ( string $public_key,
# OpenSSLAsymmetricKey $private_key[\SensitiveParameter] )

Definition at line 657 of file openssl.stub.php.

◆ openssl_digest()

openssl_digest ( string $data,
string $digest_algo,
bool $binary = false )

Definition at line 644 of file openssl.stub.php.

◆ openssl_encrypt()

openssl_encrypt ( # string $data[\SensitiveParameter],
string $cipher_algo,
# string $passphrase[\SensitiveParameter],
int $options = 0,
string $iv = "",
& $tag = null,
string $aad = "",
int $tag_length = 16 )
Parameters
string$tag

Definition at line 649 of file openssl.stub.php.

◆ openssl_error_string()

openssl_error_string ( )

Definition at line 600 of file openssl.stub.php.

◆ openssl_free_key()

openssl_free_key ( OpenSSLAsymmetricKey $key)

@alias openssl_pkey_free

Definition at line 517 of file openssl.stub.php.

◆ openssl_get_cert_locations()

openssl_get_cert_locations ( )
Returns
array<string, string> @refcount 1

Definition at line 680 of file openssl.stub.php.

◆ openssl_get_cipher_methods()

openssl_get_cipher_methods ( bool $aliases = false)
Returns
array<int, string> @refcount 1

Definition at line 634 of file openssl.stub.php.

◆ openssl_get_curve_names()

openssl_get_curve_names ( )
Returns
array<int, string>|false @refcount 1

Definition at line 641 of file openssl.stub.php.

◆ openssl_get_md_methods()

openssl_get_md_methods ( bool $aliases = false)
Returns
array<int, string> @refcount 1

Definition at line 628 of file openssl.stub.php.

◆ openssl_get_privatekey()

openssl_get_privatekey ( # $private_key[\SensitiveParameter],
# ?string $passphrase[\SensitiveParameter] = null )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key@alias openssl_pkey_get_private

Definition at line 528 of file openssl.stub.php.

◆ openssl_get_publickey()

openssl_get_publickey ( $public_key)
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$public_key@alias openssl_pkey_get_public

Definition at line 508 of file openssl.stub.php.

◆ openssl_open()

openssl_open ( string $data,
# & $output[\SensitiveParameter],
string $encrypted_key,
# $private_key[\SensitiveParameter],
string $cipher_algo,
?string $iv = null )
Parameters
string$output
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 622 of file openssl.stub.php.

◆ openssl_password_hash()

openssl_password_hash ( string $algo,
# string $password[\SensitiveParameter],
array $options = [] )

Definition at line 683 of file openssl.stub.php.

◆ openssl_password_verify()

openssl_password_verify ( string $algo,
# string $password[\SensitiveParameter],
string $hash )

Definition at line 684 of file openssl.stub.php.

◆ openssl_pbkdf2()

openssl_pbkdf2 ( # string $password[\SensitiveParameter],
string $salt,
int $key_length,
int $iterations,
string $digest_algo = "sha1" )

Definition at line 536 of file openssl.stub.php.

◆ openssl_pkcs12_export()

openssl_pkcs12_export ( OpenSSLCertificate|string $certificate,
& $output,
# $private_key[\SensitiveParameter],
# string $passphrase[\SensitiveParameter],
array $options = [] )
Parameters
string$output
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 458 of file openssl.stub.php.

◆ openssl_pkcs12_export_to_file()

openssl_pkcs12_export_to_file ( OpenSSLCertificate|string $certificate,
string $output_filename,
# $private_key[\SensitiveParameter],
# string $passphrase[\SensitiveParameter],
array $options = [] )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 452 of file openssl.stub.php.

◆ openssl_pkcs12_read()

openssl_pkcs12_read ( string $pkcs12,
& $certificates,
# string $passphrase[\SensitiveParameter] )
Parameters
array$certificates

Definition at line 463 of file openssl.stub.php.

◆ openssl_pkcs7_decrypt()

openssl_pkcs7_decrypt ( string $input_filename,
string $output_filename,
# $certificate[\SensitiveParameter],
# $private_key[\SensitiveParameter] = null )
Parameters
OpenSSLCertificate | string$certificate
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string | null$private_key

Definition at line 552 of file openssl.stub.php.

◆ openssl_pkcs7_encrypt()

openssl_pkcs7_encrypt ( string $input_filename,
string $output_filename,
$certificate,
?array $headers,
int $flags = 0,
int $cipher_algo = OPENSSL_CIPHER_AES_128_CBC )
Parameters
OpenSSLCertificate | array | string$certificate

Definition at line 541 of file openssl.stub.php.

◆ openssl_pkcs7_read()

openssl_pkcs7_read ( string $data,
& $certificates )
Parameters
array$certificates

Definition at line 555 of file openssl.stub.php.

◆ openssl_pkcs7_sign()

openssl_pkcs7_sign ( string $input_filename,
string $output_filename,
OpenSSLCertificate|string $certificate,
# $private_key[\SensitiveParameter],
?array $headers,
int $flags = PKCS7_DETACHED,
?string $untrusted_certificates_filename = null )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 546 of file openssl.stub.php.

◆ openssl_pkcs7_verify()

openssl_pkcs7_verify ( string $input_filename,
int $flags,
?string $signers_certificates_filename = null,
array $ca_info = [],
?string $untrusted_certificates_filename = null,
?string $content = null,
?string $output_filename = null )

Definition at line 538 of file openssl.stub.php.

◆ openssl_pkey_derive()

openssl_pkey_derive ( $public_key,
# $private_key[\SensitiveParameter],
int $key_length = 0 )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$public_key
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 663 of file openssl.stub.php.

◆ openssl_pkey_export()

openssl_pkey_export ( # $key[\SensitiveParameter],
& $output,
# ?string $passphrase[\SensitiveParameter] = null,
?array $options = null )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$key
string$output

Definition at line 499 of file openssl.stub.php.

◆ openssl_pkey_export_to_file()

openssl_pkey_export_to_file ( # $key[\SensitiveParameter],
string $output_filename,
# ?string $passphrase[\SensitiveParameter] = null,
?array $options = null )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$key

Definition at line 493 of file openssl.stub.php.

◆ openssl_pkey_free()

openssl_pkey_free ( OpenSSLAsymmetricKey $key)

Definition at line 511 of file openssl.stub.php.

◆ openssl_pkey_get_details()

openssl_pkey_get_details ( OpenSSLAsymmetricKey $key)
Returns
array<string, int|string|array>|false @refcount 1

Definition at line 534 of file openssl.stub.php.

◆ openssl_pkey_get_private()

openssl_pkey_get_private ( # $private_key[\SensitiveParameter],
# ?string $passphrase[\SensitiveParameter] = null )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 522 of file openssl.stub.php.

◆ openssl_pkey_get_public()

openssl_pkey_get_public ( $public_key)
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$public_key

Definition at line 502 of file openssl.stub.php.

◆ openssl_pkey_new()

openssl_pkey_new ( ?array $options = null)

Definition at line 488 of file openssl.stub.php.

◆ openssl_private_decrypt()

openssl_private_decrypt ( string $data,
# & $decrypted_data[\SensitiveParameter],
# $private_key[\SensitiveParameter],
int $padding = OPENSSL_PKCS1_PADDING )
Parameters
string$decrypted_data
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 586 of file openssl.stub.php.

◆ openssl_private_encrypt()

openssl_private_encrypt ( # string $data[\SensitiveParameter],
& $encrypted_data,
# $private_key[\SensitiveParameter],
int $padding = OPENSSL_PKCS1_PADDING )
Parameters
string$encrypted_data
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 580 of file openssl.stub.php.

◆ openssl_public_decrypt()

openssl_public_decrypt ( string $data,
# & $decrypted_data[\SensitiveParameter],
$public_key,
int $padding = OPENSSL_PKCS1_PADDING )
Parameters
string$decrypted_data
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$public_key

Definition at line 598 of file openssl.stub.php.

◆ openssl_public_encrypt()

openssl_public_encrypt ( # string $data[\SensitiveParameter],
& $encrypted_data,
$public_key,
int $padding = OPENSSL_PKCS1_PADDING )
Parameters
string$encrypted_data
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$public_key

Definition at line 592 of file openssl.stub.php.

◆ openssl_random_pseudo_bytes()

openssl_random_pseudo_bytes ( int $length,
& $strong_result = null )
Parameters
bool$strong_result

Definition at line 666 of file openssl.stub.php.

◆ openssl_seal()

openssl_seal ( # string $data[\SensitiveParameter],
& $sealed_data,
& $encrypted_keys,
array $public_key,
string $cipher_algo,
& $iv = null )
Parameters
string$sealed_data
array$encrypted_keys
string$iv

Definition at line 616 of file openssl.stub.php.

◆ openssl_sign()

openssl_sign ( string $data,
& $signature,
# $private_key[\SensitiveParameter],
string|int $algorithm = OPENSSL_ALGO_SHA1 )
Parameters
string$signature
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 606 of file openssl.stub.php.

◆ openssl_spki_export()

openssl_spki_export ( string $spki)

Definition at line 672 of file openssl.stub.php.

◆ openssl_spki_export_challenge()

openssl_spki_export_challenge ( string $spki)

Definition at line 674 of file openssl.stub.php.

◆ openssl_spki_new()

openssl_spki_new ( # OpenSSLAsymmetricKey $private_key[\SensitiveParameter],
string $challenge,
int $digest_algo = OPENSSL_ALGO_MD5 )

Definition at line 668 of file openssl.stub.php.

◆ openssl_spki_verify()

openssl_spki_verify ( string $spki)

Definition at line 670 of file openssl.stub.php.

◆ openssl_verify()

openssl_verify ( string $data,
string $signature,
$public_key,
string|int $algorithm = OPENSSL_ALGO_SHA1 )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$public_key

Definition at line 609 of file openssl.stub.php.

◆ openssl_x509_check_private_key()

openssl_x509_check_private_key ( OpenSSLCertificate|string $certificate,
# $private_key[\SensitiveParameter] )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$private_key

Definition at line 431 of file openssl.stub.php.

◆ openssl_x509_checkpurpose()

openssl_x509_checkpurpose ( OpenSSLCertificate|string $certificate,
int $purpose,
array $ca_info = [],
?string $untrusted_certificates_file = null )

Definition at line 442 of file openssl.stub.php.

◆ openssl_x509_export()

openssl_x509_export ( OpenSSLCertificate|string $certificate,
& $output,
bool $no_text = true )
Parameters
string$output

Definition at line 424 of file openssl.stub.php.

◆ openssl_x509_export_to_file()

openssl_x509_export_to_file ( OpenSSLCertificate|string $certificate,
string $output_filename,
bool $no_text = true )

Definition at line 421 of file openssl.stub.php.

◆ openssl_x509_fingerprint()

openssl_x509_fingerprint ( OpenSSLCertificate|string $certificate,
string $digest_algo = "sha1",
bool $binary = false )

Definition at line 426 of file openssl.stub.php.

◆ openssl_x509_free()

openssl_x509_free ( OpenSSLCertificate $certificate)

Definition at line 447 of file openssl.stub.php.

◆ openssl_x509_parse()

openssl_x509_parse ( OpenSSLCertificate|string $certificate,
bool $short_names = true )
Returns
array<string, int|string|array>|false @refcount 1

Definition at line 440 of file openssl.stub.php.

◆ openssl_x509_read()

openssl_x509_read ( OpenSSLCertificate|string $certificate)

Definition at line 444 of file openssl.stub.php.

◆ openssl_x509_verify()

openssl_x509_verify ( OpenSSLCertificate|string $certificate,
$public_key )
Parameters
OpenSSLAsymmetricKey | OpenSSLCertificate | array | string$public_key

Definition at line 434 of file openssl.stub.php.

Variable Documentation

◆ OPENSSL_ALGO_DSS1

const OPENSSL_ALGO_DSS1 = UNKNOWN

Definition at line 94 of file openssl.stub.php.

◆ OPENSSL_ALGO_MD2

const OPENSSL_ALGO_MD2 = UNKNOWN

Definition at line 87 of file openssl.stub.php.

◆ OPENSSL_ALGO_MD4

const OPENSSL_ALGO_MD4 = UNKNOWN

Definition at line 80 of file openssl.stub.php.

◆ OPENSSL_ALGO_MD5

const OPENSSL_ALGO_MD5 = UNKNOWN

Definition at line 74 of file openssl.stub.php.

◆ OPENSSL_ALGO_RMD160

const OPENSSL_ALGO_RMD160 = UNKNOWN

Definition at line 122 of file openssl.stub.php.

◆ OPENSSL_ALGO_SHA1

const OPENSSL_ALGO_SHA1 = UNKNOWN

Definition at line 69 of file openssl.stub.php.

◆ OPENSSL_ALGO_SHA224

const OPENSSL_ALGO_SHA224 = UNKNOWN

Definition at line 101 of file openssl.stub.php.

◆ OPENSSL_ALGO_SHA256

const OPENSSL_ALGO_SHA256 = UNKNOWN

Definition at line 106 of file openssl.stub.php.

◆ OPENSSL_ALGO_SHA384

const OPENSSL_ALGO_SHA384 = UNKNOWN

Definition at line 111 of file openssl.stub.php.

◆ OPENSSL_ALGO_SHA512

const OPENSSL_ALGO_SHA512 = UNKNOWN

Definition at line 116 of file openssl.stub.php.

◆ OPENSSL_CIPHER_3DES

const OPENSSL_CIPHER_3DES = UNKNOWN

Definition at line 286 of file openssl.stub.php.

◆ OPENSSL_CIPHER_AES_128_CBC

const OPENSSL_CIPHER_AES_128_CBC = UNKNOWN

Definition at line 294 of file openssl.stub.php.

◆ OPENSSL_CIPHER_AES_192_CBC

const OPENSSL_CIPHER_AES_192_CBC = UNKNOWN

Definition at line 299 of file openssl.stub.php.

◆ OPENSSL_CIPHER_AES_256_CBC

const OPENSSL_CIPHER_AES_256_CBC = UNKNOWN

Definition at line 304 of file openssl.stub.php.

◆ OPENSSL_CIPHER_DES

const OPENSSL_CIPHER_DES = UNKNOWN

Definition at line 281 of file openssl.stub.php.

◆ OPENSSL_CIPHER_RC2_128

const OPENSSL_CIPHER_RC2_128 = UNKNOWN

Definition at line 268 of file openssl.stub.php.

◆ OPENSSL_CIPHER_RC2_40

const OPENSSL_CIPHER_RC2_40 = UNKNOWN

Definition at line 263 of file openssl.stub.php.

◆ OPENSSL_CIPHER_RC2_64

const OPENSSL_CIPHER_RC2_64 = UNKNOWN

Definition at line 273 of file openssl.stub.php.

◆ OPENSSL_CMS_BINARY

const OPENSSL_CMS_BINARY = UNKNOWN

Definition at line 212 of file openssl.stub.php.

◆ OPENSSL_CMS_DETACHED

const OPENSSL_CMS_DETACHED = UNKNOWN

Definition at line 182 of file openssl.stub.php.

◆ OPENSSL_CMS_NOATTR

const OPENSSL_CMS_NOATTR = UNKNOWN

Definition at line 207 of file openssl.stub.php.

◆ OPENSSL_CMS_NOCERTS

const OPENSSL_CMS_NOCERTS = UNKNOWN

Definition at line 202 of file openssl.stub.php.

◆ OPENSSL_CMS_NOINTERN

const OPENSSL_CMS_NOINTERN = UNKNOWN

Definition at line 192 of file openssl.stub.php.

◆ OPENSSL_CMS_NOSIGS

const OPENSSL_CMS_NOSIGS = UNKNOWN

Definition at line 217 of file openssl.stub.php.

◆ OPENSSL_CMS_NOVERIFY

const OPENSSL_CMS_NOVERIFY = UNKNOWN

Definition at line 197 of file openssl.stub.php.

◆ OPENSSL_CMS_OLDMIMETYPE

const OPENSSL_CMS_OLDMIMETYPE = UNKNOWN

Definition at line 222 of file openssl.stub.php.

◆ OPENSSL_CMS_TEXT

const OPENSSL_CMS_TEXT = UNKNOWN

Definition at line 187 of file openssl.stub.php.

◆ OPENSSL_DEFAULT_STREAM_CIPHERS

const OPENSSL_DEFAULT_STREAM_CIPHERS = UNKNOWN

Definition at line 254 of file openssl.stub.php.

◆ OPENSSL_DONT_ZERO_PAD_KEY

const OPENSSL_DONT_ZERO_PAD_KEY = UNKNOWN

Definition at line 371 of file openssl.stub.php.

◆ OPENSSL_ENCODING_DER

const OPENSSL_ENCODING_DER = UNKNOWN

Definition at line 384 of file openssl.stub.php.

◆ OPENSSL_ENCODING_PEM

const OPENSSL_ENCODING_PEM = UNKNOWN

Definition at line 394 of file openssl.stub.php.

◆ OPENSSL_ENCODING_SMIME

const OPENSSL_ENCODING_SMIME = UNKNOWN

Definition at line 389 of file openssl.stub.php.

◆ OPENSSL_KEYTYPE_DH

const OPENSSL_KEYTYPE_DH = UNKNOWN

Definition at line 326 of file openssl.stub.php.

◆ OPENSSL_KEYTYPE_DSA

const OPENSSL_KEYTYPE_DSA = UNKNOWN

Definition at line 319 of file openssl.stub.php.

◆ OPENSSL_KEYTYPE_EC

const OPENSSL_KEYTYPE_EC = UNKNOWN

Definition at line 332 of file openssl.stub.php.

◆ OPENSSL_KEYTYPE_ED25519

const OPENSSL_KEYTYPE_ED25519 = UNKNOWN

Definition at line 344 of file openssl.stub.php.

◆ OPENSSL_KEYTYPE_ED448

const OPENSSL_KEYTYPE_ED448 = UNKNOWN

Definition at line 354 of file openssl.stub.php.

◆ OPENSSL_KEYTYPE_RSA

const OPENSSL_KEYTYPE_RSA = UNKNOWN

Definition at line 313 of file openssl.stub.php.

◆ OPENSSL_KEYTYPE_X25519

const OPENSSL_KEYTYPE_X25519 = UNKNOWN

Definition at line 339 of file openssl.stub.php.

◆ OPENSSL_KEYTYPE_X448

const OPENSSL_KEYTYPE_X448 = UNKNOWN

Definition at line 349 of file openssl.stub.php.

◆ OPENSSL_NO_PADDING

const OPENSSL_NO_PADDING = UNKNOWN

Definition at line 241 of file openssl.stub.php.

◆ OPENSSL_PKCS1_OAEP_PADDING

const OPENSSL_PKCS1_OAEP_PADDING = UNKNOWN

Definition at line 246 of file openssl.stub.php.

◆ OPENSSL_PKCS1_PADDING

const OPENSSL_PKCS1_PADDING = UNKNOWN

Definition at line 228 of file openssl.stub.php.

◆ OPENSSL_RAW_DATA

const OPENSSL_RAW_DATA = UNKNOWN

Definition at line 361 of file openssl.stub.php.

◆ OPENSSL_SSLV23_PADDING

const OPENSSL_SSLV23_PADDING = UNKNOWN

Definition at line 234 of file openssl.stub.php.

◆ OPENSSL_TLSEXT_SERVER_NAME

const OPENSSL_TLSEXT_SERVER_NAME = 1

Definition at line 375 of file openssl.stub.php.

◆ OPENSSL_VERSION_NUMBER

const OPENSSL_VERSION_NUMBER = UNKNOWN

Definition at line 14 of file openssl.stub.php.

◆ OPENSSL_VERSION_TEXT

const OPENSSL_VERSION_TEXT = UNKNOWN

Definition at line 9 of file openssl.stub.php.

◆ OPENSSL_ZERO_PADDING

const OPENSSL_ZERO_PADDING = UNKNOWN

Definition at line 366 of file openssl.stub.php.

◆ PKCS7_BINARY

const PKCS7_BINARY = UNKNOWN

Definition at line 166 of file openssl.stub.php.

◆ PKCS7_DETACHED

const PKCS7_DETACHED = UNKNOWN

Definition at line 131 of file openssl.stub.php.

◆ PKCS7_NOATTR

const PKCS7_NOATTR = UNKNOWN

Definition at line 161 of file openssl.stub.php.

◆ PKCS7_NOCERTS

const PKCS7_NOCERTS = UNKNOWN

Definition at line 156 of file openssl.stub.php.

◆ PKCS7_NOCHAIN

const PKCS7_NOCHAIN = UNKNOWN

Definition at line 151 of file openssl.stub.php.

◆ PKCS7_NOINTERN

const PKCS7_NOINTERN = UNKNOWN

Definition at line 141 of file openssl.stub.php.

◆ PKCS7_NOOLDMIMETYPE

const PKCS7_NOOLDMIMETYPE = UNKNOWN

Definition at line 176 of file openssl.stub.php.

◆ PKCS7_NOSIGS

const PKCS7_NOSIGS = UNKNOWN

Definition at line 171 of file openssl.stub.php.

◆ PKCS7_NOVERIFY

const PKCS7_NOVERIFY = UNKNOWN

Definition at line 146 of file openssl.stub.php.

◆ PKCS7_TEXT

const PKCS7_TEXT = UNKNOWN

Definition at line 136 of file openssl.stub.php.

◆ X509_PURPOSE_ANY

const X509_PURPOSE_ANY = UNKNOWN

Definition at line 51 of file openssl.stub.php.

◆ X509_PURPOSE_CRL_SIGN

const X509_PURPOSE_CRL_SIGN = UNKNOWN

Definition at line 46 of file openssl.stub.php.

◆ X509_PURPOSE_NS_SSL_SERVER

const X509_PURPOSE_NS_SSL_SERVER = UNKNOWN

Definition at line 31 of file openssl.stub.php.

◆ X509_PURPOSE_OCSP_HELPER

const X509_PURPOSE_OCSP_HELPER = UNKNOWN

Definition at line 56 of file openssl.stub.php.

◆ X509_PURPOSE_SMIME_ENCRYPT

const X509_PURPOSE_SMIME_ENCRYPT = UNKNOWN

Definition at line 41 of file openssl.stub.php.

◆ X509_PURPOSE_SMIME_SIGN

const X509_PURPOSE_SMIME_SIGN = UNKNOWN

Definition at line 36 of file openssl.stub.php.

◆ X509_PURPOSE_SSL_CLIENT

const X509_PURPOSE_SSL_CLIENT = UNKNOWN

Definition at line 20 of file openssl.stub.php.

◆ X509_PURPOSE_SSL_SERVER

const X509_PURPOSE_SSL_SERVER = UNKNOWN

Definition at line 25 of file openssl.stub.php.

◆ X509_PURPOSE_TIMESTAMP_SIGN

const X509_PURPOSE_TIMESTAMP_SIGN = UNKNOWN

Definition at line 61 of file openssl.stub.php.