|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Input streambuf that reads SHA-256-hashed, block-structured data. More...
#include <stream.hh>
Public Member Functions | |
| hashed_istreambuf (std::istream &src) | |
| Constructs an input streambuf that reads from the given stream. | |
| bool | BudgetExceeded () const |
| Returns true if a resource budget was exceeded while reading. | |
| hashed_istreambuf (std::istream &src, const detail::ResourceLimits &limits) | |
| Constructs an input streambuf with explicit resource limits. | |
| int | underflow () override |
| Reads and verifies the next block when the get area is exhausted. | |
Input streambuf that reads SHA-256-hashed, block-structured data.
Each block consists of a BlockHeader followed by the raw data. The hash in the header is verified against the data on read. An empty block with a zero hash signals end-of-stream.
|
inlineexplicit |
Constructs an input streambuf that reads from the given stream.
| src | The input stream to read hashed blocks from. |
|
inline |
Constructs an input streambuf with explicit resource limits.
| src | The input stream to read hashed blocks from. |
| limits | The resource budgets enforced while reading. |