Searched refs:MAC_LEN (Results 1 – 3 of 3) sorted by relevance
195 pub const MAC_LEN: usize = 8; constant229 if data.len() < (Self::MAC_LEN + 4 + 4 + 4) { in deserialize()234 let mac = &data[data.len() - Self::MAC_LEN..]; in deserialize()235 let computed_mac = Self::compute_hmac(hmac, &data[..data.len() - Self::MAC_LEN], hidden)?; in deserialize()249 let rest = &data[Self::MAC_LEN..]; in deserialize()272 tag.truncate(Self::MAC_LEN); in compute_hmac()
222 const MAC_LEN: usize = 8; constant232 if data.len() < (1 + 3 * size_of::<u32>() + Self::MAC_LEN) { in new_from_serialized()237 let mac = &data[data.len() - Self::MAC_LEN..]; in new_from_serialized()238 let computed_mac = Self::compute_hmac(&data[..data.len() - Self::MAC_LEN], hidden)?; in new_from_serialized()252 let rest = &data[Self::MAC_LEN..]; in new_from_serialized()267 tag.truncate(Self::MAC_LEN); in compute_hmac()
199 let mac_offset = data.len() - KeyBlob::MAC_LEN; in fix_hmac()