|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Input streambuf that reads HMAC-verified, block-structured data (KDBX4 format). More...
#include <stream.hh>
Public Member Functions | |
| hmac_istreambuf (std::istream &src, const uint8_t *hmac_key) | |
| Constructs an HMAC-verifying input streambuf. | |
| bool | BudgetExceeded () const |
| Returns true if a resource budget was exceeded while reading. | |
| hmac_istreambuf (std::istream &src, const uint8_t *hmac_key, const detail::ResourceLimits &limits) | |
| Constructs an HMAC-verifying input streambuf with resource limits. | |
| ~hmac_istreambuf () | |
| Zeroizes the stored master HMAC key. | |
| int | underflow () override |
| Reads and HMAC-verifies the next block when the get area is exhausted. | |
Input streambuf that reads HMAC-verified, block-structured data (KDBX4 format).
Each block is preceded by a 32-byte HMAC-SHA256 computed over the block index, block size, and block data. An empty block (size 0) signals end-of-stream.
Constructs an HMAC-verifying input streambuf.
| src | The input stream to read HMAC-protected blocks from. |
| hmac_key | The 512-bit master HMAC key. |
|
inline |
Constructs an HMAC-verifying input streambuf with resource limits.
| src | The input stream to read HMAC-protected blocks from. |
| hmac_key | The 512-bit master HMAC key. |
| limits | The resource budgets enforced while reading. |