[#BloombergLP-bdlde-Sha256-2constructor-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Sha256.adoc[Sha256]::Sha256
:relfileprefix: ../../../
:mrdocs:

Construct a SHA&hyphen;2 digest corresponding to the specified `data` having the specified `length` (in bytes)&period; Note that if `data` is 0, then `length` also must be 0&period;

== Synopsis

Declared in `&lt;bdlde&lowbar;sha2&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Sha256(
    void const* data,
    std::size&lowbar;t length);
----


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