12#include <openssl/evp.h>
56 virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf,
58 virtual bool _finish(WvBuf &outbuf);
61 const EVP_MD *getevpmd()
123 virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf,
125 virtual bool _finish(WvBuf &outbuf);
146 virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf,
148 virtual bool _finish(WvBuf &outbuf);
166 virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf,
168 virtual bool _finish(WvBuf &outbuf);
Adler32 checksum Digest length of 4 bytes.
virtual bool _finish(WvBuf &outbuf)
Template method implementation of finish().
virtual bool _reset()
Template method implementation of reset().
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
virtual size_t digestsize() const
Returns the number of bytes in the message digest.
CRC32 checksum Digest length of 4 bytes.
virtual size_t digestsize() const
Returns the number of bytes in the message digest.
virtual bool _finish(WvBuf &outbuf)
Template method implementation of finish().
virtual bool _reset()
Template method implementation of reset().
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
Superclass for all message digests.
virtual size_t digestsize() const =0
Returns the number of bytes in the message digest.
virtual bool _finish(WvBuf &outbuf)
Template method implementation of finish().
virtual size_t digestsize() const
Returns the number of bytes in the message digest.
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
virtual bool _reset()
Template method implementation of reset().
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
HMAC Message Authentication Code.
virtual bool _finish(WvBuf &outbuf)
Template method implementation of finish().
virtual size_t digestsize() const
Returns the number of bytes in the message digest.
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
virtual bool _reset()
Template method implementation of reset().
WvMD5Digest()
Creates an MD5 digest encoder.
WvSHA1Digest()
Creates an SHA1 digest encoder.