Set a variable‐length cipher's key length on a cipher context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_set_key_length(
    EVP_CIPHER_CTX* x,
    int keylen);

Return Value

1 on success, or 0 if the length is unsupported.

Parameters

Name

Description

x

Cipher context whose cipher supports variable key lengths.

keylen

Desired key length in bytes.

Created with MrDocs