openssl_get_curve_names

PHP 7 >= 7.1.0, PHP 8
openssl_get_curve_names - Gets list of available curve names for ECC
Manual
Code Examples

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).

Approximate Equivalancies of AES, RSA, DSA and ECC Keysizes
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
NIST recommends using ECC curves with at least 256 bits.

Parameters

This function has no parameters.

Return Values

An array of available curve names, or false on failure.

Example of openssl_get_curve_names

Show all examples for openssl_get_curve_names

PHP Version:


Function openssl_get_curve_names:

OpenSSL Functions

Most used PHP functions