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,
94 virtual ~WvBlowfishStream() { }
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.
WvEncoderStream(WvStream *cloned)
Creates an encoder stream.
WvEncoder()
Creates a new WvEncoder.
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
WvStream()
Basic constructor for just a do-nothing WvStream.