Library: Crypto
Package: Cipher
Header: Poco/Crypto/CryptoStream.h
This stream transforms all data passing through it using the given CryptoTransform.
Use a CryptoTransform object provided by Cipher::createEncrytor() or Cipher::createDecryptor() to create an encrypting or decrypting stream, respectively.
Direct Base Classes: CryptoIOS, std::istream
All Base Classes: CryptoIOS, std::ios, std::istream
Inherited Functions: rdbuf
CryptoInputStream(
std::istream & istr,
CryptoTransform * pTransform,
std::streamsize bufferSize = 8192
);
Create a new CryptoInputStream object. The CryptoInputStream takes the ownership of the given CryptoTransform object.
CryptoInputStream(
std::istream & istr,
Cipher & cipher,
std::streamsize bufferSize = 8192
);
Create a new encrypting CryptoInputStream object using the given cipher.
Destroys the CryptoInputStream.