Initialize a digest context for hashing with type (legacy ENGINE-aware form).
type
Declared in <openssl/evp.h>
<openssl/evp.h>
int EVP_DigestInit( EVP_MD_CTX* ctx, EVP_MD const* type);
Prefer EVP_DigestInit_ex2() for new code.
1 on success, or 0 on failure.