Home
last modified time | relevance | path

Searched refs:OpaqueOr (Results 1 – 14 of 14) sorted by relevance

/system/keymint/common/src/
Dcrypto.rs82 pub enum OpaqueOr<T> { enum
91 impl From<$t> for OpaqueOr<$t> {
105 impl<T> From<OpaqueKeyMaterial> for OpaqueOr<T> { implementation
115 Aes(OpaqueOr<aes::Key>),
116 TripleDes(OpaqueOr<des::Key>),
117 Hmac(OpaqueOr<hmac::Key>),
118 Rsa(OpaqueOr<rsa::Key>),
119 Ec(EcCurve, CurveType, OpaqueOr<ec::Key>),
126 if let $crate::crypto::OpaqueOr::Explicit(k) = $key {
183 OpaqueOr::Explicit(aes::Key::Aes128(_)) => f.write_str("Aes128(...)"), in fmt()
[all …]
Dkeyblob.rs268 root_key: &crypto::OpaqueOr<crypto::hmac::Key>, in derive_kek()
281 crypto::OpaqueOr::Explicit(key_material) => kdf.hkdf(&[], &key_material.0, &info, 32)?,
282 key @ crypto::OpaqueOr::Opaque(_) => kdf.expand(key, &info, 32)?,
321 root_key: &crypto::OpaqueOr<crypto::hmac::Key>, in encrypt()
396 root_key: &crypto::OpaqueOr<crypto::hmac::Key>, in decrypt()
/system/keymint/common/src/crypto/
Dtraits.rs127 key: OpaqueOr<aes::Key>, in begin()
135 key: OpaqueOr<aes::Key>, in begin_aead()
169 key: OpaqueOr<des::Key>, in begin()
211 key: OpaqueOr<hmac::Key>, in begin()
221 fn begin(&self, key: OpaqueOr<aes::Key>) -> Result<Box<dyn AccumulatingOperation>, Error>; in begin()
255 fn subject_public_key(&self, key: &OpaqueOr<rsa::Key>) -> Result<Vec<u8>, Error> { in subject_public_key()
264 key: OpaqueOr<rsa::Key>, in begin_decrypt()
274 key: OpaqueOr<rsa::Key>, in begin_sign()
342 fn subject_public_key(&self, key: &OpaqueOr<ec::Key>) -> Result<Vec<u8>, Error> { in subject_public_key()
378 fn begin_agree(&self, key: OpaqueOr<ec::Key>) -> Result<Box<dyn AccumulatingOperation>, Error>; in begin_agree()
[all …]
Drsa.rs3 use super::{KeyMaterial, KeySizeInBits, OpaqueOr, RsaExponent};
82 impl OpaqueOr<Key> { implementation
Dec.rs3 use super::{CurveType, KeyMaterial, OpaqueOr};
101 impl OpaqueOr<Key> { impl
/system/keymint/ta/src/
Ddevice.rs6 crypto, crypto::aes, crypto::hmac, crypto::KeyMaterial, crypto::OpaqueOr, keyblob, log_unimpl,
59 fn root_kek(&self, context: &[u8]) -> Result<OpaqueOr<hmac::Key>, Error>; in root_kek()
69 fn kak(&self) -> Result<OpaqueOr<aes::Key>, Error>; in kak()
283 pub test_cdi_priv: Option<OpaqueOr<crypto::ec::Key>>,
318 fn root_kek(&self, _context: &[u8]) -> Result<OpaqueOr<hmac::Key>, Error> { in root_kek()
322 fn kak(&self) -> Result<OpaqueOr<aes::Key>, Error> { in kak()
Dkeys.rs9 crypto::{self, aes, rsa, KeyMaterial, OpaqueOr},
589 OpaqueOr::Explicit(aes_transport_key), in import_wrapped_key()
Dlib.rs12 crypto::{self, hmac, OpaqueOr},
1123 fn root_kek(&self, context: &[u8]) -> Result<OpaqueOr<hmac::Key>, Error> { in root_kek()
/system/keymint/boringssl/src/
Daes_cmac.rs5 use kmr_common::{crypto, crypto::OpaqueOr, explicit, km_err, vec_try, Error};
14 key: OpaqueOr<crypto::aes::Key>, in begin()
Ddes.rs4 use kmr_common::{crypto, crypto::OpaqueOr, explicit, vec_try, Error};
13 key: OpaqueOr<crypto::des::Key>, in begin()
Dhmac.rs6 use kmr_common::{crypto, crypto::OpaqueOr, explicit, km_err, vec_try, Error};
16 key: OpaqueOr<crypto::hmac::Key>, in begin()
Daes.rs6 crypto, crypto::OpaqueOr, explicit, km_err, vec_try, vec_try_with_capacity, Error,
17 key: OpaqueOr<crypto::aes::Key>, in begin()
76 key: OpaqueOr<crypto::aes::Key>, in begin_aead()
Drsa.rs10 OpaqueOr,
71 key: OpaqueOr<crypto::rsa::Key>, in begin_decrypt()
81 key: OpaqueOr<crypto::rsa::Key>, in begin_sign()
Dec.rs11 crypto::{ec, ec::Key, AccumulatingOperation, CurveType, OpaqueOr},
127 fn begin_agree(&self, key: OpaqueOr<Key>) -> Result<Box<dyn AccumulatingOperation>, Error> { in begin_agree()
150 key: OpaqueOr<Key>, in begin_sign()