15 static_assert(
sizeof(
unsigned long) >=
sizeof(U32),
"CRC32 cannot fit in CRC32 library chosen types");
35 local_hash_handle = 0xffffffffL;
38 for(
FwSizeType index = 0; index < len; index++) {
39 c =
static_cast<const char*
>(data)[index];
52 this->hash_handle = 0xffffffffL;
60 for(
FwSizeType index = 0; index < len; index++) {
61 c =
static_cast<const char*
>(data)[index];
79 FW_ASSERT(
sizeof(this->hash_handle) ==
sizeof(U32));
81 hashvalue = ~(this->hash_handle);
91 this->hash_handle = ~this->hash_handle;
void update(const void *const data, const FwSizeType len)
Serialization/Deserialization operation was successful.
PlatformSizeType FwSizeType
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
SerializeStatus
forward declaration for string
void final(HashBuffer &buffer)
unsigned long update_crc_32(unsigned long crc, char c)
void setHashValue(HashBuffer &value)
static void hash(const void *data, const FwSizeType len, HashBuffer &buffer)
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
A container class for holding a hash buffer.