Copy digest context state from in into an already allocated out.

Synopsis

Declared in <openssl/evp.h>

int
EVP_MD_CTX_copy_ex(
    EVP_MD_CTX* out,
    EVP_MD_CTX const* in);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

out

Destination context (must be initialised); previous state is replaced.

in

Source context to copy, including algorithm state and associated key material.

Created with MrDocs