SHA256_Final

Finalise a SHA-256 digest and write the 32-byte hash.

Synopsis

Declared in <openssl/sha.h>

[[deprecated]]
int
SHA256_Final(
    unsigned char* md,
    SHA256_CTX* c);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Deprecated; prefer EVP_DigestFinal_ex() / EVP_Q_digest().

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
mdOutput buffer of at least SHA256_DIGEST_LENGTH bytes.
cContext previously updated with SHA256_Update(); not reused afterward without re-init.