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
WvEncoderStream chains a series of encoders on the input and output ports of the underlying stream to...
virtual bool _encode(WvBuf &in, WvBuf &out, bool flush)
Template method implementation of encode().
virtual bool _reset()
Template method implementation of reset().
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers.
A crypto stream implementing TripleDES encryption.
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
An encoder implementing the TripleDES encryption method.
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.