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

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

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| memory region to hash
| *length*
| number of bytes in `data`
|===


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