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

Name

Description

ctx

Digest context to initialise (from EVP_MD_CTX_new()).

type

Digest algorithm (for example from EVP_sha256()), or NULL to reuse the previous type.

impl

Legacy ENGINE implementing type, or NULL for the default implementation.

Created with MrDocs