[#EVP_CIPHER_CTX_set_key_length] = EVP_CIPHER_CTX_set_key_length :mrdocs: Set a variable‐length cipher's key length on a cipher context. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_CIPHER_CTX_set_key_length( xref:EVP_CIPHER_CTX.adoc[EVP_CIPHER_CTX]* x, int keylen); ---- == Return Value 1 on success, or 0 if the length is unsupported. == Parameters [cols="1,4"] |=== | Name| Description | *x* | Cipher context whose cipher supports variable key lengths. | *keylen* | Desired key length in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#