Poco::Crypto

class CryptoStreamBuf

Library: Crypto
Package: CryptoCore
Header: Poco/Crypto/CryptoStream.h

Description

This stream buffer performs cryptographic transformation on the data going through it.

Inheritance

Direct Base Classes: Poco::BufferedStreamBuf

All Base Classes: Poco::BufferedStreamBuf

Member Summary

Member Functions: close, readFromDevice, writeToDevice

Constructors

CryptoStreamBuf

CryptoStreamBuf(
    std::istream & istr,
    CryptoTransform * pTransform,
    std::size_t bufferSize = 8192
);

CryptoStreamBuf

CryptoStreamBuf(
    std::ostream & ostr,
    CryptoTransform * pTransform,
    std::size_t bufferSize = 8192
);

Destructor

~CryptoStreamBuf virtual

virtual ~CryptoStreamBuf();

Member Functions

close

void close();

readFromDevice protected

int readFromDevice(
    char * buffer,
    std::streamsize length
);

writeToDevice protected

int writeToDevice(
    const char * buffer,
    std::streamsize length
);