Finalize a digest computation and write the message digest.
Declared in <openssl/evp.h>
int
EVP_DigestFinal(
EVP_MD_CTX* ctx,
unsigned char* md,
unsigned int* s);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | Digest context that has been updated with message data. |
| md | Output buffer of at least EVP_MD_size bytes receiving the digest. |
| s | Optional pointer receiving the digest length in bytes, or NULL. |