[#EVP_DigestInit_ex2] = EVP_DigestInit_ex2 :mrdocs: Initialize a digest context with `type` and optional algorithm parameters. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_DigestInit_ex2( xref:EVP_MD_CTX.adoc[EVP_MD_CTX]* ctx, xref:EVP_MD.adoc[EVP_MD] const* type, xref:OSSL_PARAM.adoc[OSSL_PARAM] const params[]); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Digest context to (re)initialize; must have been created with EVP_MD_CTX_new(). | *type* | Digest algorithm, or NULL to reuse the algorithm already associated with `ctx.` | *params* | Optional OSSL_PARAM array applied to the digest (terminated by OSSL_PARAM_END), or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#