1#ifndef Cpl_Checksum_ApiMd5_h_ 
    2#define Cpl_Checksum_ApiMd5_h_ 
   37    enum { eDIGEST_LEN=16 };
 
   45    virtual void reset( 
void ) 
noexcept = 0;
 
   49    virtual void accumulate( 
const void* bytes, 
unsigned numbytes=1 ) noexcept = 0;
 
   58    virtual 
Digest_T& 
finalize( 
Cpl::Text::String* convertToString=0, 
bool uppercase=true, 
bool append=false ) = 0;
 
This class provides an interface for performing a MD5 Hash on a collection of bytes.
Definition ApiMd5.h:34
 
virtual void accumulate(const void *bytes, unsigned numbytes=1) noexcept=0
Call the method for every byte being hash'd.
 
virtual void reset(void) noexcept=0
Used to re-use/restart the hash object.
 
virtual Digest_T & finalize(Cpl::Text::String *convertToString=0, bool uppercase=true, bool append=false)=0
Call this method to finalize the Hash.
 
uint8_t Digest_T[eDIGEST_LEN]
Digest/result of the hash.
Definition ApiMd5.h:40
 
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20