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

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.

Created with MrDocs