|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Base class providing SHA-256 hashing for block-oriented stream buffers. More...
#include <stream.hh>
Classes | |
| struct | BlockHeader |
| Header written before each data block in the hashed stream format. More... | |
Public Member Functions | |
| virtual | ~hashed_basic_streambuf () |
| Destroys the streambuf, zeroizing any buffered block bytes. | |
Protected Member Functions | |
| std::array< uint8_t, 32 > | GetBlockHash () const |
| Computes the SHA-256 hash of the current block. | |
Protected Attributes | |
| uint32_t | block_index_ = 0 |
| std::vector< char > | block_ |
Base class providing SHA-256 hashing for block-oriented stream buffers.
Used internally by hashed_istreambuf and hashed_ostreambuf to compute and verify block integrity checksums.