[#BloombergLP-bdlde-Sha512-2constructor-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Sha512.adoc[Sha512]::Sha512 :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlde_sha2.h>` Construct a SHA‐2 digest having the value corresponding to no data having been provided. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlde/Sha512/2constructor-07.adoc[Sha512](); ---- [.small]#xref:BloombergLP/bdlde/Sha512/2constructor-07.adoc[_» more..._]# Construct a SHA‐2 digest corresponding to the specified `data` having the specified `length` (in bytes). Note that if `data` is 0, then `length` also must be 0. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlde/Sha512/2constructor-01.adoc[Sha512]( void const* data, std::size_t length); ---- [.small]#xref:BloombergLP/bdlde/Sha512/2constructor-01.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#