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


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