AWS SDK for C++AWS SDK for C++ Version 1.11.788 |
#include <CryptoBuf.h>
Stream buf that takes it's input, encrypts or decrypts it using the cipher, and writes it to the sink stream. This is particularly useful when receiving an encrypted file over the internet and writing it decrypted to disk. Another case may be that you have an ofstream and you want to write text to it from your program but have it go encrypted to disk.
This stream buf is not seekable.
Definition at line 105 of file CryptoBuf.h.
DEFAULT_BUF_SIZE,
0
stream, sink to push the encrypted or decrypted data to. cipher, symmetric cipher to use to transform the input before sending it to the sink. cipherMode, encrypt or decrypt bufferSize, amount of data to encrypt/decrypt at a time.
Simply calls FinalizeCiphersAndFlushSink()
Reimplemented from Aws::Utils::Crypto::CryptoBuf.
Definition at line 133 of file CryptoBuf.h.
Finalizes the cipher and pushes all remaining data to the sink. Once this has been called, this streambuf cannot be used any further.
Not move assignable since it contains reference members