libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
keepass::hashed_basic_streambuf Class Reference

Base class providing SHA-256 hashing for block-oriented stream buffers. More...

#include <stream.hh>

Inheritance diagram for keepass::hashed_basic_streambuf:
keepass::hashed_istreambuf keepass::hashed_ostreambuf

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_
 

Detailed Description

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.


The documentation for this class was generated from the following file: