Initialize a digest context for hashing with type (legacy ENGINE‐aware form).
Synopsis
Declared in <openssl/evp.h>
int
EVP_DigestInit(
EVP_MD_CTX* ctx,
EVP_MD const* type);
Description
Prefer EVP_DigestInit_ex2() for new code.
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
ctx |
Digest context to initialize. |
type |
Digest method to use, or NULL to clear. |
Created with MrDocs