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 |
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.
| 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.