Home
last modified time | relevance | path

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

/system/keymint/common/src/
Dcrypto.rs4 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 …]
Dkeyblob.rs4 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()
Dlib.rs93 macro_rules! vec_try { macro
/system/keymint/boringssl/src/
Ddes.rs4 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()
Daes.rs6 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()
Daes_cmac.rs5 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()
Drsa.rs12 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()
Dhmac.rs6 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()
Dec.rs12 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/
Dsecret.rs5 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()
Dlib.rs15 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/
Dtypes.rs8 use crate::{cbor, cbor_type_error, vec_try, AsCborValue, CborError};
505 vec_try![
543 vec_try![
Dlib.rs129 macro_rules! vec_try { macro
377 Some(t) => Ok(cbor::value::Value::Array(vec_try![t.to_cbor_value()?]?)), in to_cbor_value()
Dkeymint.rs16 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/
Dtraits.rs3 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/
Dlegacy.rs3 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()