EVP_CIPHER_CTX_dup

Duplicate a cipher context, including its algorithm state.

Synopsis

Declared in <openssl/evp.h>

EVP_CIPHER_CTX*
EVP_CIPHER_CTX_dup(EVP_CIPHER_CTX const* in);

Return Value

Newly allocated copy, or NULL on error; free with EVP_CIPHER_CTX_free.

Parameters

NameDescription
inContext to copy.