[#EVP_DigestInit] = EVP_DigestInit :mrdocs: Initialize a digest context for hashing with `type` (legacy ENGINE‐aware form). == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_DigestInit( xref:EVP_MD_CTX.adoc[EVP_MD_CTX]* ctx, xref:EVP_MD.adoc[EVP_MD] const* type); ---- == Description Prefer EVP_DigestInit_ex2() for new code. == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Digest context to initialize. | *type* | Digest method to use, or NULL to clear. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#