11 #include "wvencoder.h" 12 #include "wvencoderstream.h" 49 const char *wstype()
const {
return "WvXORStream"; }
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
WvEncoderStream chains a series of encoders on the input and output ports of the underlying stream to...
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().
An encoder implementing simple XOR encryption.
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers...
WvXOREncoder(const void *_key, size_t _keylen)
Creates a new XOR encoder / decoder.
A crypto stream implementing XOR encryption.