EVP_CIPHER_CTX_set_cipher_data

Replace the cipher-implementation private data pointer on ctx.

Synopsis

Declared in <openssl/evp.h>

void*
EVP_CIPHER_CTX_set_cipher_data(
    EVP_CIPHER_CTX* ctx,
    void* cipher_data);

Return Value

The previous cipher-data pointer.

Parameters

NameDescription
ctxCipher context.
cipher_dataNew implementation data pointer (ownership remains with the caller/impl).