Key types

- « Padding flags for asymmetric encryption

- PKCS7 Flags/Constants »

- PHP Manual
- Predefined Constants
- Key types

## 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+.