Return the maximum signature or related output size for a key in bytes.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_get_size(EVP_PKEY const* pkey);

Return Value

Maximum size in bytes suitable for allocating signature buffers, or 0 on error.

Parameters

Name

Description

pkey

Key to query (for example RSA or EC).

Created with MrDocs