Home
last modified time | relevance | path

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

/system/keymint/common/src/keyblob/
Dlegacy.rs165 pub const MAC_LEN: usize = 8; constant
199 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()
/system/keymint/tests/tests/
Dkeyblob_test.rs183 let mac_offset = data.len() - KeyBlob::MAC_LEN; in fix_hmac()