eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::ESha1Hasher Class Reference

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

#include <eVision/Easy/ESha1Hasher.h>

Collaboration diagram for eVision::ESha1Hasher:

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_

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/3]

eVision::ESha1Hasher::ESha1Hasher ( )

Constructs a ESha1Hasher object.

◆ ESha1Hasher() [2/3]

eVision::ESha1Hasher::ESha1Hasher ( const eVision::ESha1Hasher & other)

◆ ~ESha1Hasher()

eVision::ESha1Hasher::~ESha1Hasher ( )
throw ( )
virtual

◆ ESha1Hasher() [3/3]

eVision::ESha1Hasher::ESha1Hasher ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Final()

void eVision::ESha1Hasher::Final ( )

Finalize the computation of the SHA-1 hash value.

◆ Get32BitHash()

void eVision::ESha1Hasher::Get32BitHash ( void * result) const

Gets the hash value as a 32-bits interger.

◆ GetHash() [1/2]

std::string eVision::ESha1Hasher::GetHash ( ) const

Gets an hexadecimal representation of the hash.

◆ GetHash() [2/2]

void eVision::ESha1Hasher::GetHash ( void * uDest) const

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

◆ HashBuffer()

std::string eVision::ESha1Hasher::HashBuffer ( const eVision::EBaseROI & roi)

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

◆ HashObject()

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.

◆ operator=()

eVision::ESha1Hasher & eVision::ESha1Hasher::operator= ( const eVision::ESha1Hasher & other)

◆ Reset()

void eVision::ESha1Hasher::Reset ( )

◆ Update()

void eVision::ESha1Hasher::Update ( void * data,
uint32_t len )

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

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::ESha1Hasher::wrappedClass_