OPENSSL_KEYTYPE_RSA
RSA key type.
OPENSSL_KEYTYPE_DSA
DSA key type.
OPENSSL_KEYTYPE_DH
DH (Diffie-Hellman) key type.
OPENSSL_KEYTYPE_EC
Elliptic curve key type.
OPENSSL_KEYTYPE_X25519
X25519 curve key type. This constant is only available when PHP is compiled with OpenSSL 3.0+.
OPENSSL_KEYTYPE_ED25519
Ed25519 curve key type. This constant is only available when PHP is compiled with OpenSSL 3.0+.
OPENSSL_KEYTYPE_X448
X448 curve key type. This constant is only available when PHP is compiled with OpenSSL 3.0+.
OPENSSL_KEYTYPE_ED448
Ed448 curve key type. This constant is only available when PHP is compiled with OpenSSL 3.0+.