Home
last modified time | relevance | path

Searched refs:Hmac (Results 1 – 16 of 16) sorted by relevance

/system/keymint/common/src/
Dcrypto.rs55 Hmac(KeySizeInBits), enumerator
117 Hmac(OpaqueOr<hmac::Key>), enumerator
138 Self::Aes(_) | Self::TripleDes(_) | Self::Hmac(_) => false, in is_asymmetric()
189 Self::Hmac(_) => f.write_str("Hmac(...)"), in fmt()
239 x if x == Algorithm::Hmac as i32 => { in from_cbor_value()
242 Ok(Self::Hmac(OpaqueKeyMaterial(raw_key).into())) in from_cbor_value()
244 Ok(Self::Hmac(hmac::Key(raw_key).into())) in from_cbor_value()
313 Self::Hmac(OpaqueOr::Opaque(OpaqueKeyMaterial(k))) => vec_try![ in to_cbor_value()
314 cbor::value::Value::Integer((Algorithm::Hmac as i32).into()), in to_cbor_value()
356 Self::Hmac(OpaqueOr::Explicit(k)) => vec_try![ in to_cbor_value()
[all …]
Dtag.rs264 Algorithm::Hmac => check_hmac_gen_params(params, sec_level), in extract_key_gen_characteristics()
284 Algorithm::Hmac => { in extract_key_import_characteristics()
779 Ok(KeyGenInfo::Hmac(key_size)) in check_hmac_gen_params()
785 hmac: &dyn Hmac, in check_hmac_import_params() argument
942 | (Algorithm::Hmac, KeyPurpose::Sign) in check_begin_params()
943 | (Algorithm::Hmac, KeyPurpose::Verify) in check_begin_params()
982 Algorithm::Hmac => check_begin_hmac_params(chars, purpose, params), in check_begin_params()
/system/core/trusty/confirmationui/
DNotSoSecureInput.cpp33 using teeui::Hmac;
42 static optional<Hmac> hmac256(const AuthTokenKey& key, in hmac256()
54 Hmac result; in hmac256()
/system/keymint/common/src/keyblob/
Dlegacy.rs168 pub fn serialize<H: crypto::Hmac>( in serialize()
193 pub fn deserialize<E: crypto::ConstTimeEq, H: crypto::Hmac>( in deserialize()
229 pub fn compute_hmac<H: crypto::Hmac>( in compute_hmac()
/system/keymint/common/src/crypto/
Dtraits.rs28 pub hmac: &'a dyn Hmac,
176 pub trait Hmac { interface
190 Ok(KeyMaterial::Hmac(hmac::Key::new(key).into())) in generate_key()
203 Ok((KeyMaterial::Hmac(hmac_key.into()), key_size)) in import_key()
541 impl Hmac for NoOpHmac {
/system/keymint/tests/src/bin/
Dauth-keyblob-parse.rs106 Algorithm::Hmac => KeyMaterial::Hmac(hmac::Key(raw_key).into()), in process()
/system/keymint/ta/src/
Ddevice.rs95 fn hmac(&self, imp: &dyn crypto::Hmac, data: &[u8]) -> Result<Vec<u8>, Error>; in hmac() argument
184 hmac: &dyn crypto::Hmac, in compute_hmac_sha256() argument
Dsecret.rs77 fn hmac(&self, imp: &dyn crypto::Hmac, data: &[u8]) -> Result<Vec<u8>, Error> { in hmac() argument
Dkeys.rs263 crypto::KeyGenInfo::Hmac(key_size) => { in generate_key_material()
Doperation.rs324 KeyMaterial::Hmac(key) => { in begin_operation()
/system/keymint/boringssl/src/
Dhmac.rs13 impl crypto::Hmac for BoringHmac {
/system/keymint/common/src/tag/
Dtests.rs56 KeyParam::Algorithm(Algorithm::Hmac), in test_check_begin_params_fail()
/system/keymint/tests/src/
Dlib.rs5 aes, des, hmac, Aes, AesCmac, Ckdf, ConstTimeEq, Des, Hkdf, Hmac, MonotonicClock, Rng,
68 pub fn test_hkdf<H: Hmac>(hmac: H) { in test_hkdf()
148 pub fn test_hmac<H: Hmac>(hmac: H) { in test_hmac()
/system/teeui/libteeui/include/teeui/
Dgeneric_operation.h269 optional<Hmac> confirmationTokenScratchpad_;
Dutils.h124 using Hmac = AuthTokenKey; variable
134 static optional<Hmac> hmac256(const AuthTokenKey& key, const Data&... data) { in hmac256()
/system/keymint/wire/src/
Dkeymint.rs116 Hmac = 128, enumerator