scire
Sadh's C++ Impromptu Routines Ensemble
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT > Class Template Referenceabstract

Common interface for Hash Algorithms. More...

#include <hash_comn.hpp>

Inheritance diagram for scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT >:
scire::MD5< SzType, Ui32t, ByteT, SByteT >

Public Member Functions

virtual void Init ()=0
 initialization. More...
 
virtual bool Update (const ByteT *input, SzType lenght)=0
 block update operation More...
 
virtual bool Update (const SByteT *input, SzType lenght)=0
 
virtual void Final ()=0
 final hash compute, prepare digest. More...
 
virtual std::string Fingerprint () const =0
 fingerprint is the 128bit message-digest More...
 
virtual std::string StatePhrase () const =0
 String representation of Four State Words (ABCD) More...
 
virtual std::string ToString () const =0
 string reprsentation | fingerpring on finalize, else status words More...
 

Detailed Description

template<typename SzType = size_t, typename Ui32t = uint32_t, typename ByteT = uint8_t, typename SByteT = int8_t>
class scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT >

Common interface for Hash Algorithms.

Definition at line 42 of file hash_comn.hpp.

Member Function Documentation

template<typename SzType = size_t, typename Ui32t = uint32_t, typename ByteT = uint8_t, typename SByteT = int8_t>
virtual void scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT >::Final ( )
pure virtual

final hash compute, prepare digest.

Implemented in scire::MD5< SzType, Ui32t, ByteT, SByteT >.

template<typename SzType = size_t, typename Ui32t = uint32_t, typename ByteT = uint8_t, typename SByteT = int8_t>
virtual std::string scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT >::Fingerprint ( ) const
pure virtual

fingerprint is the 128bit message-digest

Implemented in scire::MD5< SzType, Ui32t, ByteT, SByteT >.

template<typename SzType = size_t, typename Ui32t = uint32_t, typename ByteT = uint8_t, typename SByteT = int8_t>
virtual void scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT >::Init ( )
pure virtual

initialization.

Implemented in scire::MD5< SzType, Ui32t, ByteT, SByteT >.

template<typename SzType = size_t, typename Ui32t = uint32_t, typename ByteT = uint8_t, typename SByteT = int8_t>
virtual std::string scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT >::StatePhrase ( ) const
pure virtual

String representation of Four State Words (ABCD)

Implemented in scire::MD5< SzType, Ui32t, ByteT, SByteT >.

template<typename SzType = size_t, typename Ui32t = uint32_t, typename ByteT = uint8_t, typename SByteT = int8_t>
virtual std::string scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT >::ToString ( ) const
pure virtual

string reprsentation | fingerpring on finalize, else status words

Implemented in scire::MD5< SzType, Ui32t, ByteT, SByteT >.

template<typename SzType = size_t, typename Ui32t = uint32_t, typename ByteT = uint8_t, typename SByteT = int8_t>
virtual bool scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT >::Update ( const ByteT *  input,
SzType  lenght 
)
pure virtual

block update operation

Parameters
inputan array of bytes
lenghtnumber of bytes in input chunk

Implemented in scire::MD5< SzType, Ui32t, ByteT, SByteT >.

template<typename SzType = size_t, typename Ui32t = uint32_t, typename ByteT = uint8_t, typename SByteT = int8_t>
virtual bool scire::IHashAlgo< SzType, Ui32t, ByteT, SByteT >::Update ( const SByteT *  input,
SzType  lenght 
)
pure virtual

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