eVision .NET API
Loading...
Searching...
No Matches
eVision.ESha1Hasher Class Reference

Object for computing a SHA-1 hash. More...

Inheritance diagram for eVision.ESha1Hasher:
Collaboration diagram for eVision.ESha1Hasher:

Public Member Functions

 ESha1Hasher ()
 Constructs a ESha1Hasher object.
 ESha1Hasher (eVision.ESha1Hasher other)
void Reset ()
void Update (IntPtr data, uint len)
 Updates the current SHA-1 hash with the given data of given length.
string HashObject (eVision.EBaseROI roi)
 Hash of the given eVision image object including its internal data buffer.
string HashBuffer (eVision.EBaseROI roi)
 Hash of the data buffer of the given eVision image object.
void Final ()
 Finalize the computation of the SHA-1 hash value.
void GetHash (IntPtr uDest)
 Gets the full hash value as a uint8_t array of size 20 (160bits).
void Get32BitHash (IntPtr result)
 Gets the hash value as a 32-bits interger.
string GetHash ()
 Gets an hexadecimal representation of the hash.

Detailed Description

Object for computing a SHA-1 hash.

In order to compute a SHA-1 hash, one must call ESha1Hasher.Update with the data to hash and then call ESha1Hasher.Final to finalize the SHA-1 hash computation.

If the data comes in chunks (network packets, filesystem read, etc.), you can call ESha1Hasher.Update for each of your chunks.

License(s): None

Constructor & Destructor Documentation

◆ ESha1Hasher() [1/2]

eVision.ESha1Hasher.ESha1Hasher ( )

Constructs a ESha1Hasher object.

◆ ESha1Hasher() [2/2]

eVision.ESha1Hasher.ESha1Hasher ( eVision.ESha1Hasher other)

Member Function Documentation

◆ Final()

void eVision.ESha1Hasher.Final ( )

Finalize the computation of the SHA-1 hash value.

◆ Get32BitHash()

void eVision.ESha1Hasher.Get32BitHash ( IntPtr result)

Gets the hash value as a 32-bits interger.

◆ GetHash() [1/2]

string eVision.ESha1Hasher.GetHash ( )

Gets an hexadecimal representation of the hash.

◆ GetHash() [2/2]

void eVision.ESha1Hasher.GetHash ( IntPtr uDest)

Gets the full hash value as a uint8_t array of size 20 (160bits).

◆ HashBuffer()

string eVision.ESha1Hasher.HashBuffer ( eVision.EBaseROI roi)

Hash of the data buffer of the given eVision image object.

◆ HashObject()

string eVision.ESha1Hasher.HashObject ( eVision.EBaseROI roi)

Hash of the given eVision image object including its internal data buffer.

The hash function work by serializing the object into a EMemorySerializer.

◆ Reset()

void eVision.ESha1Hasher.Reset ( )

◆ Update()

void eVision.ESha1Hasher.Update ( IntPtr data,
uint len )

Updates the current SHA-1 hash with the given data of given length.