Finalise a SHA-256 digest and write the 32-byte hash.
Declared in <openssl/sha.h>
[[deprecated]]
int
SHA256_Final(
unsigned char* md,
SHA256_CTX* c);
Deprecated. Use of this entity is allowed but discouraged.
Deprecated; prefer EVP_DigestFinal_ex() / EVP_Q_digest().
1 on success, or 0 on error.
| 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. |