12#include "wvencoderstream.h"
49 const char *wstype()
const {
return "WvXORStream"; }
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers.
WvEncoderStream chains a series of encoders on the input and output ports of the underlying stream to...
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
An encoder implementing simple XOR encryption.
bool _encode(WvBuf &in, WvBuf &out, bool flush)
Template method implementation of encode().
WvXOREncoder(const void *_key, size_t _keylen)
Creates a new XOR encoder / decoder.
A crypto stream implementing XOR encryption.