|
Clio
develop
The XRP Ledger API server.
|
Streaming SHA-256 hasher for large data sets. More...
#include <Shasum.hpp>
Public Member Functions | |
| void | update (void const *data, size_t size) |
| Update hash with data. | |
| template<typename T> | |
| void | update (T const &value) |
| Update hash with a value. | |
| ripple::uint256 | finalize () && |
| Finalize hash and return result as ripple::uint256. | |
Streaming SHA-256 hasher for large data sets.
This class provides a streaming interface for calculating SHA-256 hashes without requiring all data to be in memory at once.
| ripple::uint256 util::Sha256sum::finalize | ( | ) | && |
Finalize hash and return result as ripple::uint256.
|
inline |
Update hash with a value.
| value | Value to hash. |
| void util::Sha256sum::update | ( | void const * | data, |
| size_t | size ) |
Update hash with data.
| data | Pointer to data to hash. |
| size | Size of data in bytes. |