[#BloombergLP-bdlde-Sha256-update] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlde.adoc[bdlde]::xref:BloombergLP/bdlde/Sha256.adoc[Sha256]::update :relfileprefix: ../../../ :mrdocs: Update the value of this SHA‐2 digest to incorporate the specified `data` having the specified `length` in bytes. If the current state is the default state, the resultant value of this SHA‐2 digest is the application of the SHA‐2 algorithm upon the currently given `data` of the given `length`. 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‐2 algorithm upon the concatenation of all the provided data. The behavior is undefined unless the range `[data, data + length)]` is a valid range. Note that if `data` is 0, then `length` must also be 0. == Synopsis Declared in `<bdlde_sha2.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void update( void const* data, std::size_t length); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#