43 #ifndef _DWMAESGCMINBUFFER_HH_ 44 #define _DWMAESGCMINBUFFER_HH_ 50 #include <cryptopp/aes.h> 51 #include <cryptopp/cryptlib.h> 52 #include <cryptopp/gcm.h> 68 :
public std::streambuf
75 InBuffer(std::istream & is,
const std::string & key);
81 int_type underflow()
override;
85 std::unique_ptr<char_type[]> _buffer;
86 CryptoPP::GCM<CryptoPP::AES>::Decryption _decryptor;
87 CryptoPP::byte _key[16];
102 bool LoadIVAndCipherText(CryptoPP::byte *iv,
size_t ivlen,
103 std::string & cipherText);
111 #endif // _DWMAESGCMINBUFFER_HH_ This class is a helper for encrypted stream input.
Definition: DwmAESGCMInBuffer.hh:67
InBuffer(std::istream &is, const std::string &key)
Construct from the given encrypted istream is and the decryption key key.