Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Padding flags for asymmetric encryptionPKCS7 Flags/Constants>
^Predefined ConstantsLast updated: Mon, 26 Oct 2026

Key types

OPENSSL_KEYTYPE_RSA (int)

RSA key type.

OPENSSL_KEYTYPE_DSA (int)

DSA key type.

OPENSSL_KEYTYPE_DH (int)

DH (Diffie-Hellman) key type.

OPENSSL_KEYTYPE_EC (int)

Elliptic curve key type.

OPENSSL_KEYTYPE_X25519 (int)

X25519 curve key type. This constant is only available when PHP is compiled with OpenSSL 3.0+.

OPENSSL_KEYTYPE_ED25519 (int)

Ed25519 curve key type. This constant is only available when PHP is compiled with OpenSSL 3.0+.

OPENSSL_KEYTYPE_X448 (int)

X448 curve key type. This constant is only available when PHP is compiled with OpenSSL 3.0+.

OPENSSL_KEYTYPE_ED448 (int)

Ed448 curve key type. This constant is only available when PHP is compiled with OpenSSL 3.0+.


<Padding flags for asymmetric encryptionPKCS7 Flags/Constants>
^Predefined ConstantsLast updated: Mon, 26 Oct 2026