Finalize a digest computation and write the message digest to md without resetting ownership of ctx.
Declared in <openssl/evp.h>
int
EVP_DigestFinal_ex(
EVP_MD_CTX* ctx,
unsigned char* md,
unsigned int* s);
Unlike EVP_DigestFinal(), the context may be reused after EVP_MD_CTX_reset() without freeing it.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | Digest context that has absorbed input via EVP_DigestUpdate(). |
| md | Buffer that receives the digest; must be large enough for EVP_MD_CTX_get_size(ctx) bytes. |
| s | Optional destination for the digest length in bytes, or NULL. |