Object for computing a SHA-1 hash. More...
#include <eVision/Easy/ESha1Hasher.h>
Public Member Functions | |
| ESha1Hasher () | |
| Constructs a ESha1Hasher object. | |
| ESha1Hasher (const eVision::ESha1Hasher &other) | |
| virtual | ~ESha1Hasher () throw () |
| eVision::ESha1Hasher & | operator= (const eVision::ESha1Hasher &other) |
| void | Reset () |
| void | Update (void *data, uint32_t len) |
| Updates the current SHA-1 hash with the given data of given length. | |
| std::string | HashObject (const eVision::EBaseROI &roi) |
| Hash of the given eVision image object including its internal data buffer. | |
| std::string | HashBuffer (const 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 (void *uDest) const |
| Gets the full hash value as a uint8_t array of size 20 (160bits). | |
| void | Get32BitHash (void *result) const |
| Gets the hash value as a 32-bits interger. | |
| std::string | GetHash () const |
| Gets an hexadecimal representation of the hash. | |
| ESha1Hasher (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
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 | ( | const eVision::ESha1Hasher & | other | ) |
|
virtual | ||||||||||||
| eVision::ESha1Hasher::ESha1Hasher | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::ESha1Hasher::Final | ( | ) |
Finalize the computation of the SHA-1 hash value.
| void eVision::ESha1Hasher::Get32BitHash | ( | void * | result | ) | const |
Gets the hash value as a 32-bits interger.
| std::string eVision::ESha1Hasher::GetHash | ( | ) | const |
Gets an hexadecimal representation of the hash.
| void eVision::ESha1Hasher::GetHash | ( | void * | uDest | ) | const |
Gets the full hash value as a uint8_t array of size 20 (160bits).
| std::string eVision::ESha1Hasher::HashBuffer | ( | const eVision::EBaseROI & | roi | ) |
Hash of the data buffer of the given eVision image object.
| std::string eVision::ESha1Hasher::HashObject | ( | const 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.
| eVision::ESha1Hasher & eVision::ESha1Hasher::operator= | ( | const eVision::ESha1Hasher & | other | ) |
| void eVision::ESha1Hasher::Reset | ( | ) |
| void eVision::ESha1Hasher::Update | ( | void * | data, |
| uint32_t | len ) |
Updates the current SHA-1 hash with the given data of given length.
| CppWrapperInternal::WrappedClass eVision::ESha1Hasher::wrappedClass_ |