/system/keymint/common/src/ |
D | crypto.rs | 4 use crate::{km_err, vec_try, vec_try_with_capacity, Error, FallibleAllocExt}; 301 Self::Aes(OpaqueOr::Opaque(OpaqueKeyMaterial(k))) => vec_try![ in to_cbor_value() 307 Self::TripleDes(OpaqueOr::Opaque(OpaqueKeyMaterial(k))) => vec_try![ in to_cbor_value() 313 Self::Hmac(OpaqueOr::Opaque(OpaqueKeyMaterial(k))) => vec_try![ in to_cbor_value() 319 Self::Rsa(OpaqueOr::Opaque(OpaqueKeyMaterial(k))) => vec_try![ in to_cbor_value() 325 Self::Ec(curve, curve_type, OpaqueOr::Opaque(OpaqueKeyMaterial(k))) => vec_try![ in to_cbor_value() 329 vec_try![ in to_cbor_value() 339 Self::Aes(OpaqueOr::Explicit(k)) => vec_try![ in to_cbor_value() 350 Self::TripleDes(OpaqueOr::Explicit(k)) => vec_try![ in to_cbor_value() 356 Self::Hmac(OpaqueOr::Explicit(k)) => vec_try![ in to_cbor_value() [all …]
|
D | keyblob.rs | 4 contains_tag_value, crypto, km_err, tag, try_to_vec, vec_try, Error, FallibleAllocExt, 79 vec_try![Version::V1.to_cbor_value()?, inner.to_cbor_value()?] in to_cbor_value()
|
D | lib.rs | 93 macro_rules! vec_try { macro
|
/system/keymint/boringssl/src/ |
D | des.rs | 4 use kmr_common::{crypto, crypto::OpaqueOr, explicit, vec_try, Error}; 60 let mut output = vec_try![0; data.len() + crypto::des::BLOCK_SIZE]?; in update() 70 let mut output = vec_try![0; crypto::des::BLOCK_SIZE]?; in finish()
|
D | aes.rs | 6 crypto, crypto::OpaqueOr, explicit, km_err, vec_try, vec_try_with_capacity, Error, 124 let mut output = vec_try![0; data.len() + crypto::aes::BLOCK_SIZE]?; in update() 134 let mut output = vec_try![0; crypto::aes::BLOCK_SIZE]?; in finish() 159 let mut output = vec_try![0; crypto::aes::BLOCK_SIZE + self.mode.tag_len()]?; in finish() 212 let mut output = vec_try![0; data.len()]?; in update()
|
D | aes_cmac.rs | 5 use kmr_common::{crypto, crypto::OpaqueOr, explicit, km_err, vec_try, Error}; 89 let mut output = vec_try![0; crypto::aes::BLOCK_SIZE]?; in finish()
|
D | rsa.rs | 12 use kmr_common::{crypto, explicit, km_err, vec_try, Error, FallibleAllocExt}; 156 let mut output = vec_try![0; buf_len]?; in finish() 253 let mut buf = vec_try![0; max_siglen]?; in finish() 302 let mut buf = vec_try![0; self.rsa_key.size() as usize]?; in finish() 323 let mut dest = vec_try![0; len]?; in zero_pad_left()
|
D | hmac.rs | 6 use kmr_common::{crypto, crypto::OpaqueOr, explicit, km_err, vec_try, Error}; 89 let mut output = vec_try![0; ffi::EVP_MAX_MD_SIZE as usize]?; in finish()
|
D | ec.rs | 12 explicit, km_err, vec_try, Error, FallibleAllocExt, 225 let mut sig = vec_try![0; ffi::X25519_SHARED_KEY_LEN as usize]?; in finish() 315 let mut buf = vec_try![0; max_siglen]?; in finish()
|
/system/keymint/ta/src/ |
D | secret.rs | 5 use kmr_common::{crypto, crypto::hmac, km_err, vec_try, Error, FallibleAllocExt}; 12 let mut nonce = vec_try![0u8; 32]?; in get_shared_secret_params()
|
D | lib.rs | 15 km_err, tag, vec_try, vec_try_with_capacity, Error, FallibleAllocExt, 452 self.imp.hmac.begin(crypto::hmac::Key(vec_try![0; 16]?).into(), Digest::Sha256)?; in key_id()
|
/system/keymint/wire/src/ |
D | types.rs | 8 use crate::{cbor, cbor_type_error, vec_try, AsCborValue, CborError}; 505 vec_try![ 543 vec_try![
|
D | lib.rs | 129 macro_rules! vec_try { macro 377 Some(t) => Ok(cbor::value::Value::Array(vec_try![t.to_cbor_value()?]?)), in to_cbor_value()
|
D | keymint.rs | 16 cbor, cbor_type_error, try_from_n, vec_try, AsCborValue, CborError, KeySizeInBits, RsaExponent, 678 Ok(cbor::value::Value::Array(vec_try![tag.to_cbor_value()?, val]?)) in to_cbor_value()
|
/system/keymint/common/src/crypto/ |
D | traits.rs | 3 use crate::{crypto::ec::Key, explicit, keyblob, vec_try, Error}; 150 let mut key = vec_try![0; 24]?; in generate_key() 188 let mut key = vec_try![0; key_len]?; in generate_key()
|
/system/keymint/common/src/tag/ |
D | legacy.rs | 3 use crate::{km_err, try_to_vec, vec_try, vec_try_with_capacity, Error, FallibleAllocExt}; 114 let mut result = vec_try![0; 4]?; in serialize()
|