10 #include "wvencoder.h"
48 const env_md_st *evpmd;
49 env_md_ctx_st *evpctx;
63 const env_md_st *getevpmd()
107 hmac_ctx_st *hmacctx;
174 #endif // __WVDIGEST_H
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
WvMD5Digest()
Creates an MD5 digest encoder.
virtual size_t digestsize() const
Returns the number of bytes in the message digest.
virtual bool _reset()
Template method implementation of reset().
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 size_t digestsize() const =0
Returns the number of bytes in the message digest.
WvSHA1Digest()
Creates an SHA1 digest encoder.
Adler32 checksum Digest length of 4 bytes.
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 _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
HMAC Message Authentication Code.
WvHMACDigest(WvEVPMDDigest *_digest, const void *_key, size_t _keysize)
Creates an HMAC digest encoder.
virtual size_t digestsize() const
Returns the number of bytes in the message digest.
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers...
virtual bool _finish(WvBuf &outbuf)
Template method implementation of finish().
Superclass for all message digests.
virtual bool _reset()
Template method implementation of reset().
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
virtual bool _reset()
Template method implementation of reset().
virtual bool _finish(WvBuf &outbuf)
Template method implementation of finish().
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
virtual bool _reset()
Template method implementation of reset().