EVP_DigestFinal

Finalize a digest computation and write the message digest.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DigestFinal(
    EVP_MD_CTX* ctx,
    unsigned char* md,
    unsigned int* s);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxDigest context that has been updated with message data.
mdOutput buffer of at least EVP_MD_size bytes receiving the digest.
sOptional pointer receiving the digest length in bytes, or NULL.