Hash count bytes at data in one shot and write the digest to md.
Declared in <openssl/evp.h>
int
EVP_Digest(
void const* data,
size_t count,
unsigned char* md,
unsigned int* size,
EVP_MD const* type,
ENGINE* impl);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| data | Input bytes to hash. |
| count | Number of bytes at data. |
| md | Output buffer for the digest; at most EVP_MAX_MD_SIZE bytes are written. |
| size | Optional destination for the digest length in bytes, or NULL. |
| type | Digest algorithm to use. |
| impl | Optional ENGINE providing type, or NULL for the default implementation. |