Initialise digest context ctx for algorithm type.
Declared in <openssl/evp.h>
int
EVP_DigestInit_ex(
EVP_MD_CTX* ctx,
EVP_MD const* type,
ENGINE* impl);
1 on success, or 0 on error.
| 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. |