11#include "wvencoderstream.h"
48 void setkey(
const void *key,
size_t keysize);
55 void setiv(
const void *iv);
70 struct bf_key_st *bfkey;
71 unsigned char ivec[8];
91 const void *key,
size_t _keysize,
An encoder implementing the Blowfish encryption method.
WvBlowfishEncoder(Mode mode, const void *key, size_t keysize)
Creates a new Blowfish cipher encoder.
virtual bool _reset()
Template method implementation of reset().
virtual bool _encode(WvBuf &in, WvBuf &out, bool flush)
Template method implementation of encode().
void setiv(const void *iv)
Sets the current Blowfish initialization vector.
bool is_encrypting() const
Return true if mode is encrypting or false if decrypting.
void setkey(const void *key, size_t keysize)
Sets the current Blowfish key and resets the initialization vector to all nulls.
A crypto stream implementing Blowfish encryption.
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 ...