Home
last modified time | relevance | path

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

/system/keymint/common/src/
Dcrypto.rs75 Hmac(KeySizeInBits), enumerator
149 Hmac(OpaqueOr<hmac::Key>), enumerator
172 Self::Aes(_) | Self::TripleDes(_) | Self::Hmac(_) => false, in is_asymmetric()
223 Self::Hmac(_) => f.write_str("Hmac(...)"), in fmt()
273 x if x == Algorithm::Hmac as i32 => { in from_cbor_value()
276 Ok(Self::Hmac(OpaqueKeyMaterial(raw_key).into())) in from_cbor_value()
278 Ok(Self::Hmac(hmac::Key(raw_key).into())) in from_cbor_value()
347 Self::Hmac(OpaqueOr::Opaque(OpaqueKeyMaterial(k))) => vec_try![ in to_cbor_value()
348 cbor::value::Value::Integer((Algorithm::Hmac as i32).into()), in to_cbor_value()
390 Self::Hmac(OpaqueOr::Explicit(k)) => vec_try![ in to_cbor_value()
[all …]
Dtag.rs280 Algorithm::Hmac => check_hmac_gen_params(params, sec_level), in extract_key_gen_characteristics()
304 Algorithm::Hmac => { in extract_key_import_characteristics()
795 Ok(KeyGenInfo::Hmac(key_size)) in check_hmac_gen_params()
801 hmac: &dyn Hmac, in check_hmac_import_params() argument
958 | (Algorithm::Hmac, KeyPurpose::Sign) in check_begin_params()
959 | (Algorithm::Hmac, KeyPurpose::Verify) in check_begin_params()
998 Algorithm::Hmac => check_begin_hmac_params(chars, purpose, params), in check_begin_params()
/system/authgraph/boringssl/src/
Dhmac.rs21 traits::{Hkdf, Hmac, Sha256},
29 impl Hmac for BoringHmac {
/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/authgraph/core/src/
Dtraits.rs41 pub hmac: Box<dyn Hmac>,
126 pub trait Hmac: Send { trait
/system/keymint/common/src/keyblob/
Dlegacy.rs198 pub fn serialize<H: crypto::Hmac>( in serialize()
223 pub fn deserialize<E: crypto::ConstTimeEq, H: crypto::Hmac>( in deserialize()
259 pub fn compute_hmac<H: crypto::Hmac>( in compute_hmac()
/system/keymint/common/src/crypto/
Dtraits.rs42 pub hmac: Box<dyn Hmac>,
193 pub trait Hmac: Send { trait
207 Ok(KeyMaterial::Hmac(hmac::Key::new(key).into())) in generate_key()
220 Ok((KeyMaterial::Hmac(hmac_key.into()), key_size)) in import_key()
575 impl Hmac for NoOpHmac {
/system/keymint/tests/src/bin/
Dauth-keyblob-parse.rs111 Algorithm::Hmac => KeyMaterial::Hmac(hmac::Key(raw_key).into()), in process()
/system/keymint/tests/src/
Dlib.rs19 aes, des, hmac, Aes, AesCmac, Ckdf, ConstTimeEq, Des, Hkdf, Hmac, MonotonicClock, Rng, Sha256,
82 pub fn test_hkdf<H: Hmac>(hmac: H) { in test_hkdf()
162 pub fn test_hmac<H: Hmac>(hmac: H) { in test_hmac()
619 hmac: &dyn Hmac, in test_retrieve_rpc_artifacts() argument
/system/keymint/ta/src/
Dsecret.rs91 fn hmac(&self, imp: &dyn crypto::Hmac, data: &[u8]) -> Result<Vec<u8>, Error> { in hmac() argument
Ddevice.rs109 fn hmac(&self, imp: &dyn crypto::Hmac, data: &[u8]) -> Result<Vec<u8>, Error>; in hmac() argument
200 hmac: &dyn crypto::Hmac, in compute_hmac_sha256() argument
Dkeys.rs298 crypto::KeyGenInfo::Hmac(key_size) => { in generate_key_material()
Doperation.rs332 KeyMaterial::Hmac(key) => { in begin_operation()
/system/keymint/common/src/tag/
Dtests.rs70 KeyParam::Algorithm(Algorithm::Hmac), in test_check_begin_params_fail()
/system/keymint/boringssl/src/
Dhmac.rs29 impl crypto::Hmac for BoringHmac {
/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/authgraph/tests/src/
Dlib.rs10 AesGcm, Device, EcDh, EcDsa, Hkdf, Hmac, MonotonicClock, Rng, Sha256,
56 pub fn test_hmac<H: Hmac>(hmac: &H) { in test_hmac()
/system/keymint/wire/src/
Dkeymint.rs136 Hmac = 128, enumerator