BloombergLP::bdlde::Sha1::update

Update the value of this SHA-1 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-1 digest is the application of the SHA-1 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-1 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 null, then length must be 0.

Synopsis

Declared in <bdlde_sha1.h>

void
update(
    void const* data,
    std::size_t length);