Library: Crypto
Package: Cipher
Header: Poco/Crypto/CryptoStream.h
This stream buffer performs cryptographic transformation on the data going through it.
Direct Base Classes: Poco::BufferedStreamBuf
All Base Classes: Poco::BufferedStreamBuf
Member Functions: close, readFromDevice, writeToDevice
CryptoStreamBuf(
std::istream & istr,
CryptoTransform * pTransform,
std::streamsize bufferSize = 8192
);
CryptoStreamBuf(
std::ostream & ostr,
CryptoTransform * pTransform,
std::streamsize bufferSize = 8192
);
virtual ~CryptoStreamBuf();
void close();
Flushes all buffers and finishes the encryption.
int readFromDevice(
char * buffer,
std::streamsize length
);
int writeToDevice(
const char * buffer,
std::streamsize length
);