[#SHA256_Final]
= SHA256&lowbar;Final
:mrdocs:

Finalise a SHA&hyphen;256 digest and write the 32&hyphen;byte hash&period;

== Synopsis

Declared in `&lt;openssl&sol;sha&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
SHA256&lowbar;Final(
    unsigned char* md,
    xref:SHA256_CTX.adoc[SHA256&lowbar;CTX]* c);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Description

Deprecated&semi; prefer EVP&lowbar;DigestFinal&lowbar;ex() &sol; EVP&lowbar;Q&lowbar;digest()&period;

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *md*
| Output buffer of at least SHA256&lowbar;DIGEST&lowbar;LENGTH bytes&period;
| *c*
| Context previously updated with SHA256&lowbar;Update()&semi; not reused afterward without re&hyphen;init&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
