EVP_CIPHER_CTX_copy

Copy the cipher state from one context into another.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CIPHER_CTX_copy(
    EVP_CIPHER_CTX* out,
    EVP_CIPHER_CTX const* in);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
outDestination context; must already be allocated and is reset as needed.
inSource context whose algorithm state is duplicated.