[#EVP_CIPHER_CTX_get_key_length]
= EVP&lowbar;CIPHER&lowbar;CTX&lowbar;get&lowbar;key&lowbar;length
:mrdocs:

Return the key length currently configured on a cipher context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;CIPHER&lowbar;CTX&lowbar;get&lowbar;key&lowbar;length(xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX] const* ctx);
----

== Return Value

Key length in bytes (may differ from the cipher default after set&lowbar;key&lowbar;length)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Cipher context to query&period;
|===


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