/system/keymint/common/src/ |
D | crypto.rs | 82 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 …]
|
D | keyblob.rs | 268 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/ |
D | traits.rs | 127 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 …]
|
D | rsa.rs | 3 use super::{KeyMaterial, KeySizeInBits, OpaqueOr, RsaExponent}; 82 impl OpaqueOr<Key> { implementation
|
D | ec.rs | 3 use super::{CurveType, KeyMaterial, OpaqueOr}; 101 impl OpaqueOr<Key> { impl
|
/system/keymint/ta/src/ |
D | device.rs | 6 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()
|
D | keys.rs | 9 crypto::{self, aes, rsa, KeyMaterial, OpaqueOr}, 589 OpaqueOr::Explicit(aes_transport_key), in import_wrapped_key()
|
D | lib.rs | 12 crypto::{self, hmac, OpaqueOr}, 1123 fn root_kek(&self, context: &[u8]) -> Result<OpaqueOr<hmac::Key>, Error> { in root_kek()
|
/system/keymint/boringssl/src/ |
D | aes_cmac.rs | 5 use kmr_common::{crypto, crypto::OpaqueOr, explicit, km_err, vec_try, Error}; 14 key: OpaqueOr<crypto::aes::Key>, in begin()
|
D | des.rs | 4 use kmr_common::{crypto, crypto::OpaqueOr, explicit, vec_try, Error}; 13 key: OpaqueOr<crypto::des::Key>, in begin()
|
D | hmac.rs | 6 use kmr_common::{crypto, crypto::OpaqueOr, explicit, km_err, vec_try, Error}; 16 key: OpaqueOr<crypto::hmac::Key>, in begin()
|
D | aes.rs | 6 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()
|
D | rsa.rs | 10 OpaqueOr, 71 key: OpaqueOr<crypto::rsa::Key>, in begin_decrypt() 81 key: OpaqueOr<crypto::rsa::Key>, in begin_sign()
|
D | ec.rs | 11 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()
|