7#ifndef __WVCOUNTERMODE_H
8#define __WVCOUNTERMODE_H
26 const void *_counter,
size_t _countersize);
34 void setcounter(
const void *counter,
size_t countersize);
44 {
return countersize; }
53 unsigned char *counter;
56 virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf,
bool flush);
The const in place raw memory buffer type.
A counter mode encryption encoder.
virtual void incrcounter()
Increments the counter.
void getcounter(void *counter) const
Stores the current counter in the supplied buffer.
size_t getcountersize() const
Returns the counter size.
void setcounter(const void *counter, size_t countersize)
Sets the Counter mode auto-incrementing counter.
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.