openssl_get_curve_names
PHP 7 >= 7.1.0, PHP 8
openssl_get_curve_names - Gets list of available curve names for ECC
Manual
openssl_get_curve_names(
): array|false
Gets the list of available curve names for use in Elliptic curve cryptography (ECC) for public/private key operations. The two most widely standardized/supported curves are prime256v1 (NIST P-256) and secp384r1 (NIST P-384).
AES Symmetric Keysize (Bits) | RSA and DSA Keysize (Bits) | ECC Keysize (Bits) |
80 | 1024 | 160 |
112 | 2048 | 224 |
128 | 3072 | 256 |
192 | 7680 | 384 |
256 | 15360 | 512 |
Parameters
This function has no parameters.
Return Values
An array of available curve names, or false on failure.