API Guides > ConceptRT 3.x
SHA1DigestAlgorithm Class Reference

SHA1 Hash algorithm More...

Detailed Description

SHA1 Hash algorithm

Public Member Methods

 SHA1DigestAlgorithm ()
 Constructor. More...
 
void Clear ()
 Clear alorithm status and values More...
 
void DigestChar (Char8 c)
 Digest one char. More...
 
void DigestChunk (const void *chunk, const Int32 chunckSize)
 Digest a chunk. More...
 
void DigestStream (Stream &stream)
 Digest a stream. More...
 
void GetHash (SHA1Hash &hash)
 Get the result hash. More...
 
void GetHashBase64 (BaseStaticString &hash)
 Get the result hash . More...
 
void GetHashHexString (BaseStaticString &hash)
 Get the result hash . More...
 

Constructor & Destructor Documentation

Constructor.

Methods Documentation

void Clear ( )

Clear alorithm status and values

void DigestChar ( Char8  c)

Digest one char.

Parameters
cThe char.
Warning
Call order dependence : Cannot be called once GetHash has been called. Clear first the content with Clear().
RT Exceptions:
RT_ERROR_BAD_CALL_ORDER
void DigestChunk ( const void *  chunk,
const Int32  chunckSize 
)

Digest a chunk.

Parameters
chunkThe chunk.
chunckSizeThe chunk size.
Warning
Call order dependence : Cannot be called once GetHash has been called. Clear first the content with Clear().
RT Exceptions:
RT_ERROR_BAD_CALL_ORDER
void DigestStream ( Stream stream)

Digest a stream.

Parameters
streamThe stream.
Warning
Call order dependence : Cannot be called once GetHash has been called. Clear first the content with Clear().
RT Exceptions:
RT_ERROR_BAD_CALL_ORDER
void GetHash ( SHA1Hash hash)

Get the result hash.

Parameters
hash[out] The hash.
void GetHashBase64 ( BaseStaticString hash)

Get the result hash .

Parameters
hash[out] The hash in Base64 encoded.
void GetHashHexString ( BaseStaticString hash)

Get the result hash .

Parameters
hash[out] The hash in Hex string encoded.