hopr_crypto_sphinx::derivation

Function create_tagged_mac

Source
pub fn create_tagged_mac(secret: &SecretKey, data: &[u8]) -> [u8; 32]
Expand description

Calculates a message authentication code with fixed key tag (HASH_KEY_HMAC) The given secret is first transformed using HKDF before the MAC calculation is performed. Based on SimpleMac