Searched refs:MAC_LEN (Results 1 – 2 of 2) sorted by relevance
165 pub const MAC_LEN: usize = 8; constant199 if data.len() < (Self::MAC_LEN + 4 + 4 + 4) { in deserialize()204 let mac = &data[data.len() - Self::MAC_LEN..]; in deserialize()205 let computed_mac = Self::compute_hmac(hmac, &data[..data.len() - Self::MAC_LEN], hidden)?; in deserialize()219 let rest = &data[Self::MAC_LEN..]; in deserialize()242 tag.truncate(Self::MAC_LEN); in compute_hmac()
183 let mac_offset = data.len() - KeyBlob::MAC_LEN; in fix_hmac()