libDwmAuth-0.3.6
Dwm::AESGCM::InBuffer Class Reference

This class is a helper for encrypted stream input. More...

#include <DwmAESGCMInBuffer.hh>

Inherits streambuf.

Public Member Functions

 InBuffer (std::istream &is, const std::string &key)
 Construct from the given encrypted istream is and the decryption key key. More...
 

Protected Member Functions

int_type underflow () override
 

Detailed Description

This class is a helper for encrypted stream input.

It is used as a streambuf for an istream. It will buffer internally until a a complete message is available, where a complete message is comprised of nonce (initialization vector), length, data and MAC.

This class is typically not used directly, but is instantiated by AESGCM::Istream.

Constructor & Destructor Documentation

◆ InBuffer()

Dwm::AESGCM::InBuffer::InBuffer ( std::istream &  is,
const std::string &  key 
)

Construct from the given encrypted istream is and the decryption key key.

key must be 16 bytes.


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