Searched refs:hmac_sha256 (Results 1 – 6 of 6) sorted by relevance
/system/security/keystore2/src/crypto/ |
D | lib.rs | 78 pub fn hmac_sha256(key: &[u8], msg: &[u8]) -> Result<Vec<u8>, Error> { in hmac_sha256() function 582 let tag1a = hmac_sha256(key, msg1).unwrap(); in test_hmac_sha256() 584 let tag1b = hmac_sha256(key, msg1).unwrap(); in test_hmac_sha256() 586 let tag2 = hmac_sha256(key, msg2).unwrap(); in test_hmac_sha256()
|
/system/security/keystore2/src/fuzzers/ |
D | keystore2_unsafe_fuzzer.rs | 27 hmac_sha256, parse_subject_from_certificate, Password, ZVec, 143 let _res = hmac_sha256(key_hmac, msg);
|
/system/keymint/ta/src/ |
D | rkp.rs | 13 hmac_sha256, KeyMaterial, 162 return hmac_sha256(self.imp.hmac, &[0; 32], data); in generate_ecdsa_p256_keypair()
|
D | device.rs | 189 crypto::hmac_sha256(hmac, &secret, input) in compute_hmac_sha256()
|
/system/security/keystore2/src/ |
D | km_compat.rs | 33 use keystore2_crypto::{hmac_sha256, HMAC_SHA256_LEN}; 84 let tag = hmac_sha256(KEYBLOB_HMAC_KEY, keyblob) in wrap_keyblob() 101 let got_tag = match hmac_sha256(KEYBLOB_HMAC_KEY, inner_keyblob) { in unwrap_keyblob()
|
/system/keymint/common/src/ |
D | crypto.rs | 448 pub fn hmac_sha256(hmac: &dyn Hmac, key: &[u8], data: &[u8]) -> Result<Vec<u8>, Error> { in hmac_sha256() function 460 let prk = hmac_sha256(self, salt, ikm)?; in extract() 484 t = hmac_sha256(self, prk, &input)?; in expand()
|