CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
Hash.h File Reference

Centralized non-cryptographic hash utilities. More...

#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::core
namespace  cdc::core::hash

Functions

void cdc::core::hash::fnv1a_mix_byte (uint32_t &hash, uint8_t value)
 Mixes a single value into a running FNV-1a 32-bit hash.
void cdc::core::hash::fnv1a_mix_u32 (uint32_t &hash, uint32_t value)
 Mixes a 32-bit word into a running FNV-1a 32-bit hash.
uint32_t cdc::core::hash::fnv1a_32 (const uint8_t *data, size_t len)
 Computes FNV-1a 32-bit hash over a byte buffer.

Variables

static constexpr uint32_t cdc::core::hash::FNV1A_32_OFFSET_BASIS = 0x811C9DC5u
 FNV-1a 32-bit constants (Fowler/Noll/Vo).
static constexpr uint32_t cdc::core::hash::FNV1A_32_PRIME = 0x01000193u

Detailed Description

Centralized non-cryptographic hash utilities.

Definition in file Hash.h.