42#ifndef _DWMCREDENCEXCHACHA20POLY1305INBUFFER_HH_
43#define _DWMCREDENCEXCHACHA20POLY1305INBUFFER_HH_
56 namespace XChaCha20Poly1305 {
68 :
public std::streambuf
76 InBuffer(std::istream & is,
const std::string & key);
87 std::unique_ptr<char_type[]> _buffer;
88 static uint64_t _maxMessageLength;
103 bool LoadNonceAndCipherText(
Nonce & nonce, std::string & cipherText);
Dwm::Credende::Nonce class declaration.
Encapsulates a nonce for encryption.
Definition DwmCredenceNonce.hh:60
This class is a helper for encrypted stream input.
Definition DwmCredenceXChaCha20Poly1305InBuffer.hh:69
int_type underflow() override
Implements std::streambuf::underflow()
InBuffer(std::istream &is, const std::string &key)
Construct from the given encrypted istream is and the decryption key key.