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.
Declared in <bdlde_sha2.h>
Sha256(
void const* data,
std::size_t length);
| Name | Description |
|---|---|
| data | memory region to hash |
| length | number of bytes in data |