EVP_CIPHER_meth_new

Allocate a custom EVP_CIPHER method object (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
EVP_CIPHER*
EVP_CIPHER_meth_new(
    int cipher_type,
    int block_size,
    int key_len);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

New mutable EVP_CIPHER, or NULL on failure; free with EVP_CIPHER_meth_free().

Parameters

NameDescription
cipher_typeNID identifying the cipher algorithm.
block_sizeBlock size in bytes (1 for stream ciphers).
key_lenDefault key length in bytes.