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