Finalize a digest computation and write the message digest to md without resetting ownership of ctx.
Synopsis
Declared in <openssl/evp.h>
int
EVP_DigestFinal_ex(
EVP_MD_CTX* ctx,
unsigned char* md,
unsigned int* s);
Description
Unlike EVP_DigestFinal(), the context may be reused after EVP_MD_CTX_reset() without freeing it.
Return Value
1 on success, or 0 on failure.
Parameters
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( |
s |
Optional destination for the digest length in bytes, or NULL. |
Created with MrDocs