Return the cryptographic size of a key in bits (for example RSA modulus length).

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_get_bits(EVP_PKEY const* pkey);

Return Value

Key size in bits, or 0 if unavailable.

Parameters

Name

Description

pkey

Key to query.

Created with MrDocs