[#SHA256_Final] = SHA256_Final :mrdocs: Finalise a SHA‐256 digest and write the 32‐byte hash. == Synopsis Declared in `<openssl/sha.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int SHA256_Final( unsigned char* md, xref:SHA256_CTX.adoc[SHA256_CTX]* c); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[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 [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#