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

Name

Description

md

Output buffer of at least SHA256_DIGEST_LENGTH bytes.

c

Context previously updated with SHA256_Update(); not reused afterward without re‐init.

Created with MrDocs