7 #ifndef __WVTRIPLEDES_H
8 #define __WVTRIPLEDES_H
10 #include "wvencoder.h"
11 #include "wvencoderstream.h"
14 #include <openssl/des.h>
50 virtual void setkey(
const void *key)
52 setkey(key, (
unsigned char*)key+DES_KEY_SZ,
53 (
unsigned char *)key+(DES_KEY_SZ*2));
56 virtual void setkey(
const void *_key1,
const void *_key2,
64 virtual void setiv(
const void *iv);
74 des_key_schedule deskey1;
75 des_key_schedule deskey2;
76 des_key_schedule deskey3;
95 const void *_key2,
const void *_key3,
101 #endif // __WVTRIPLEDES_H
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 ...
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers...
virtual bool _encode(WvBuf &in, WvBuf &out, bool flush)
Template method implementation of encode().
An encoder implementing the TripleDES encryption method.
virtual bool _reset()
Template method implementation of reset().
A crypto stream implementing TripleDES encryption.