[#BloombergLP-bdlde-Sha1-update]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Sha1.adoc[Sha1]::update
:relfileprefix: ../../../
:mrdocs:

Update the value of this SHA&hyphen;1 digest to incorporate the specified `data` having the specified `length` in bytes&period; If the current state is the default state, the resultant value of this SHA&hyphen;1 digest is the application of the SHA&hyphen;1 algorithm upon the currently given `data` of the given `length`&period; If this digest has been previously provided data and has not been subsequently reset, the current state is not the default state and the resultant value is equivalent to applying the SHA&hyphen;1 algorithm upon the concatenation of all the provided data&period; The behavior is undefined unless the range `&lsqb;data, data &plus; length)&rsqb;` is a valid range&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"]
----
void
update(
    void const* data,
    std::size&lowbar;t length);
----


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