15 static_assert(
sizeof(
unsigned long) >=
sizeof(U32),
"CRC32 cannot fit in CRC32 library chosen types");
27 local_hash_handle = 0xffffffffL;
30 for (
FwSizeType index = 0; index < len; index++) {
31 c =
static_cast<const char*
>(data)[index];
42 this->hash_handle = 0xffffffffL;
48 for (
FwSizeType index = 0; index < len; index++) {
49 c =
static_cast<const char*
>(data)[index];
63 FW_ASSERT(
sizeof(this->hash_handle) ==
sizeof(U32));
65 hashvalue = ~(this->hash_handle);
73 this->hash_handle = ~this->hash_handle;
void update(const void *const data, const FwSizeType len)
Serialization/Deserialization operation was successful.
PlatformSizeType FwSizeType
SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG)
deserialize 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)
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG)
serialize 8-bit unsigned int
static void hash(const void *data, const FwSizeType len, HashBuffer &buffer)
A container class for holding a hash buffer.