EVP_DigestInit_ex

Initialise digest context ctx for algorithm type.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DigestInit_ex(
    EVP_MD_CTX* ctx,
    EVP_MD const* type,
    ENGINE* impl);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxDigest context to initialise (from EVP_MD_CTX_new()).
typeDigest algorithm (for example from EVP_sha256()), or NULL to reuse the previous type.
implLegacy ENGINE implementing type, or NULL for the default implementation.