CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
hash::Hash Class Referenceabstract

abstract base class More...

#include <hash.h>

Public Member Functions

virtual std::string operator() (const void *data, size_t numBytes)=0
 compute hash of a memory block
virtual std::string operator() (const std::string &text)=0
 compute hash of a string, excluding final zero
virtual void add (const void *data, size_t numBytes)=0
 add arbitrary number of bytes
virtual std::string getHash ()=0
 return latest hash as hex characters
virtual void reset ()=0
 restart

Detailed Description

abstract base class

Definition at line 20 of file hash.h.

Member Function Documentation

◆ add()

virtual void hash::Hash::add ( const void * data,
size_t numBytes )
pure virtual

add arbitrary number of bytes

◆ getHash()

virtual std::string hash::Hash::getHash ( )
pure virtual

return latest hash as hex characters

◆ operator()() [1/2]

virtual std::string hash::Hash::operator() ( const std::string & text)
pure virtual

compute hash of a string, excluding final zero

◆ operator()() [2/2]

virtual std::string hash::Hash::operator() ( const void * data,
size_t numBytes )
pure virtual

compute hash of a memory block

◆ reset()

virtual void hash::Hash::reset ( )
pure virtual

restart


The documentation for this class was generated from the following file:
  • /home/ubuntu/c/partner/psyclone2/CMSDK/include/hash/hash.h