Skip to main content

hash_value

Function hash_value 

Source
pub fn hash_value(pepper: &[u8; 32], value: &str, mode: Normalise) -> [u8; 16]
Expand description

HMAC-SHA256(pepper, normalise(value)), truncated to 16 bytes. The namespace is not part of the input — that is what “unique across everything” means: the same string minted under two namespaces is one collision, not two independent slots.