[#EVP_PKEY_get_size]
= EVP&lowbar;PKEY&lowbar;get&lowbar;size
:mrdocs:

Return the maximum signature or related output size for a key in bytes&period;

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;get&lowbar;size(xref:EVP_PKEY.adoc[EVP&lowbar;PKEY] const* pkey);
----

== Return Value

Maximum size in bytes suitable for allocating signature buffers, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pkey*
| Key to query (for example RSA or EC)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
