![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
A generic interface for creating and comparing hash values. More...
#include <Utils/Hash/Hash.hpp>
Public Member Functions | |
| Hash () | |
| ~Hash () | |
| void | init () |
| void | setHashValue (HashBuffer &value) |
| void | setHashValue (U32 value) |
| void | update (const void *const data, const FwSizeType len) |
| void | finalize (HashBuffer &buffer) const |
| void | finalize (U32 &hashvalue) const |
Static Public Member Functions | |
| static void | hash (const void *data, const FwSizeType len, HashBuffer &buffer) |
| static const char * | getFileExtensionString () |
| static void | addFileExtension (const Fw::ConstStringBase &baseName, Fw::StringBase &extendedName) |
| static FwSizeType | getFileExtensionLength () |
| Utils::Hash::Hash | ( | ) |
Construct a Hash object
Definition at line 18 of file HashImpl.cpp.
|
default |
Destroy a Hash object
Definition at line 21 of file SHA256.cpp.
|
static |
Add the extension for the supported hash type
| baseName | The base name |
| extendedName | The extended name |
Definition at line 9 of file HashCommon.cpp.
| void Utils::Hash::finalize | ( | HashBuffer & | buffer | ) | const |
Finalize an incremental computation and return the result
| buffer | The result |
Definition at line 40 of file HashImpl.cpp.
| void Utils::Hash::finalize | ( | U32 & | hashvalue | ) | const |
Finalize an incremental computation and return the result
Definition at line 48 of file HashImpl.cpp.
|
static |
Get the length of the file extension string
Definition at line 13 of file HashCommon.cpp.
|
static |
Get the file extension for the supported hash type E.g., could return "SHA256"
Definition at line 5 of file HashCommon.cpp.
|
static |
Create a hash value all at once from raw data
| data | pointer to start of data |
| len | length of the data |
| buffer | filled with resulting hash value |
Definition at line 24 of file HashImpl.cpp.
| void Utils::Hash::init | ( | ) |
Initialize a Hash object for incremental hash computation
Definition at line 30 of file HashImpl.cpp.
| void Utils::Hash::setHashValue | ( | HashBuffer & | value | ) |
Set hash value to specified value
| value | Hash value |
Definition at line 53 of file HashImpl.cpp.
| void Utils::Hash::setHashValue | ( | U32 | value | ) |
Set hash value to specified value
| value | Hash value |
Definition at line 61 of file HashImpl.cpp.
| void Utils::Hash::update | ( | const void *const | data, |
| const FwSizeType | len | ||
| ) |
Update an incremental computation with new data
| data | pointer to start of data to add to hash calculation |
| len | length of data to add to hash calculation |
Definition at line 34 of file HashImpl.cpp.