MIRA
Public Member Functions | List of all members
HashStreamBuf Class Referenceabstract

A generic hash streambuf class. More...

#include <security/HashStream.h>

Inheritance diagram for HashStreamBuf:
Inheritance graph
[legend]

Public Member Functions

virtual void reset ()=0
 Reset the hash value. More...
 
virtual HashDigest getDigest () const =0
 Return the current digest of the hash algorithm. More...
 

Detailed Description

A generic hash streambuf class.

A specific hash streambuf must inherit from this class and must overload the virtual protected member function xsputn from basic_streambuf.

Member Function Documentation

◆ reset()

virtual void reset ( )
pure virtual

Reset the hash value.

Implemented in MD5StreamBuf, SHA1StreamBuf, and SHA256StreamBuf.

◆ getDigest()

virtual HashDigest getDigest ( ) const
pure virtual

Return the current digest of the hash algorithm.

Returns
The hash digest.

Implemented in MD5StreamBuf, SHA1StreamBuf, and SHA256StreamBuf.


The documentation for this class was generated from the following file: