A generic interface for creating and comparing hash values.
More...
#include <Utils/Hash/Hash.hpp>
A generic interface for creating and comparing hash values.
Definition at line 24 of file Hash.hpp.
◆ Hash()
◆ ~Hash()
◆ addFileExtension()
Add the extension for the supported hash type
- Parameters
-
baseName | The base name |
extendedName | The extended name |
Definition at line 11 of file HashCommon.cpp.
◆ final() [1/2]
Finalize an incremental computation and return the result
- Parameters
-
Definition at line 63 of file CRC32.cpp.
◆ final() [2/2]
void Utils::Hash::final |
( |
U32 & |
hashvalue | ) |
|
Finalize an incremental computation and return the result
Definition at line 73 of file CRC32.cpp.
◆ getFileExtensionLength()
Get the length of the file extension string
Definition at line 19 of file HashCommon.cpp.
◆ getFileExtensionString()
const char * Utils::Hash::getFileExtensionString |
( |
| ) |
|
|
static |
Get the file extension for the supported hash type E.g., could return "SHA256"
Definition at line 5 of file HashCommon.cpp.
◆ hash()
Create a hash value all at once from raw data
- Parameters
-
data | pointer to start of data |
len | length of the data |
buffer | filled with resulting hash value |
Definition at line 28 of file CRC32.cpp.
◆ init()
void Utils::Hash::init |
( |
| ) |
|
Initialize a Hash object for incremental hash computation
Definition at line 46 of file CRC32.cpp.
◆ setHashValue()
void Utils::Hash::setHashValue |
( |
HashBuffer & |
value | ) |
|
Set hash value to specified value
- Parameters
-
Definition at line 81 of file CRC32.cpp.
◆ update()
void Utils::Hash::update |
( |
const void *const |
data, |
|
|
const NATIVE_INT_TYPE |
len |
|
) |
| |
Update an incremental computation with new data
- Parameters
-
data | pointer to start of data to add to hash calculation |
len | length of data to add to hash calculation |
Definition at line 52 of file CRC32.cpp.
The documentation for this class was generated from the following files: