Set a variable-length cipher's key length on a cipher context.
Declared in <openssl/evp.h>
int
EVP_CIPHER_CTX_set_key_length(
EVP_CIPHER_CTX* x,
int keylen);
1 on success, or 0 if the length is unsupported.
| Name | Description |
|---|---|
| x | Cipher context whose cipher supports variable key lengths. |
| keylen | Desired key length in bytes. |