Home
last modified time | relevance | path

Searched refs:MAC_LEN (Results 1 – 3 of 3) sorted by relevance

/system/keymint/common/src/keyblob/
Dlegacy.rs195 pub const MAC_LEN: usize = 8; constant
229 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()
/system/security/keystore2/src/
Dsw_keyblob.rs222 const MAC_LEN: usize = 8; constant
232 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()
/system/keymint/tests/tests/
Dkeyblob_test.rs199 let mac_offset = data.len() - KeyBlob::MAC_LEN; in fix_hmac()