EVP_PKEY_get_security_bits

Return the estimated security strength of a key in bits.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_get_security_bits(EVP_PKEY const* pkey);

Return Value

Security bits (for example 128), or 0 if unavailable.

Parameters

NameDescription
pkeyKey to query.