/system/keymint/wire/src/ |
D | types.rs | 26 vec::Vec, 98 pub params: Vec<KeyParam>, 117 pub data: Vec<u8>, 123 pub key_params: Vec<KeyParam>, 132 pub key_params: Vec<KeyParam>, 134 pub key_data: Vec<u8>, 143 pub wrapped_key_data: Vec<u8>, 144 pub wrapping_key_blob: Vec<u8>, 145 pub masking_key: Vec<u8>, 146 pub unwrapping_params: Vec<KeyParam>, [all …]
|
D | legacy.rs | 61 use alloc::vec::Vec; 161 fn serialize_into(&self, buf: &mut Vec<u8>) -> Result<(), Error>; in serialize_into() 183 ) -> Result<Vec<u8>, Error> { in serialize_trusty_response_message() 188 let mut buf = Vec::new(); in serialize_trusty_response_message() 206 pub fn serialize_trusty_rsp(rsp: TrustyPerformOpRsp) -> Result<Vec<u8>, Error> { in serialize_trusty_rsp() 211 fn serialize_trusty_raw_rsp(cmd: u32, raw_data: &[u8]) -> Result<Vec<u8>, Error> { in serialize_trusty_raw_rsp() 213 let mut buf = Vec::new(); in serialize_trusty_raw_rsp() 221 pub fn serialize_trusty_secure_rsp(rsp: TrustyPerformSecureOpRsp) -> Result<Vec<u8>, Error> { in serialize_trusty_secure_rsp() 261 ) -> Result<Vec<u8>, Error> { in serialize_trusty_error_rsp() 272 ) -> Result<Vec<u8>, Error> { in serialize_trusty_secure_error_rsp() [all …]
|
D | keymint.rs | 34 use alloc::vec::Vec; 85 pub verified_boot_key: Vec<u8>, 88 pub verified_boot_hash: Vec<u8>, 142 pub key_blob: Vec<u8>, 143 pub attest_key_params: Vec<KeyParam>, 144 pub issuer_subject_name: Vec<u8>, 159 pub encoded_certificate: Vec<u8>, 290 pub mac: Vec<u8>, 306 pub authorizations: Vec<KeyParam>, 311 pub key_blob: Vec<u8>, [all …]
|
/system/secretkeeper/comm/src/data_types/ |
D | request_response_impl.rs | 30 use alloc::vec::Vec; 55 fn new(args: Vec<Value>) -> Result<Box<Self>, Error> { in new() 62 fn args(&self) -> Vec<Value> { in args() 63 Vec::new() in args() 75 fn new(res: Vec<Value>) -> Result<Box<Self>, Error> { in new() 83 fn result(&self) -> Vec<Value> { in result() 96 pub sealing_policy: Vec<u8>, 102 fn new(args: Vec<Value>) -> Result<Box<Self>, Error> { in new() 110 fn args(&self) -> Vec<Value> { in args() 124 fn new(response_cbor: Vec<Value>) -> Result<Box<Self>, Error> { in new() [all …]
|
D | packet.rs | 25 use alloc::vec::Vec; 34 pub struct RequestPacket(Vec<Value>); 38 pub fn from(request_cbor: Vec<Value>) -> Self { in from() 44 pub fn into_inner(self) -> Vec<Value> { in into_inner() 77 pub struct ResponsePacket(Vec<Value>); 81 pub fn from(response_cbor: Vec<Value>) -> Self { in from() 87 pub fn into_inner(self) -> Vec<Value> { in into_inner()
|
D | response.rs | 22 use alloc::vec::Vec; 47 fn new(response_cbor: Vec<Value>) -> Result<Box<Self>, Error>; in new() 51 fn result(&self) -> Vec<Value> { in result() 52 Vec::new() in result()
|
/system/security/keystore2/test_utils/ |
D | ffi_test_utils.rs | 25 data: Vec<u8>, 31 fn validateCertChain(cert_buf: Vec<u8>, cert_len: u32, strict_issuer_check: bool) -> bool; in validateCertChain() 33 encrypted_secure_key: Vec<u8>, in createWrappedKey() 34 encrypted_transport_key: Vec<u8>, in createWrappedKey() 35 iv: Vec<u8>, in createWrappedKey() 36 tag: Vec<u8>, in createWrappedKey() 41 cert_buf: Vec<u8>, in getValueFromAttestRecord() 73 fn get_result(result: ffi::CxxResult) -> Result<Vec<u8>, Error> { in get_result() 89 ) -> Result<Vec<u8>, Error> { in create_wrapped_key() 105 pub fn create_wrapped_key_additional_auth_data() -> Result<Vec<u8>, Error> { in create_wrapped_key_additional_auth_data() [all …]
|
D | ffi_test_utils.hpp | 6 bool validateCertChain(rust::Vec<rust::u8> cert_buf, uint32_t cert_len, bool strict_issuer_check); 7 CxxResult createWrappedKey(rust::Vec<rust::u8> encrypted_secure_key, 8 rust::Vec<rust::u8> encrypted_transport_key, rust::Vec<rust::u8> iv, 9 rust::Vec<rust::u8> tag); 12 CxxResult getValueFromAttestRecord(rust::Vec<rust::u8> cert_buf, int32_t tag,
|
D | authorizations.rs | 27 pub struct AuthSetBuilder(Vec<KeyParameter>); 38 Self(Vec::new()) in new() 66 pub fn attestation_challenge(mut self, b: Vec<u8>) -> Self { in attestation_challenge() 138 pub fn nonce(mut self, b: Vec<u8>) -> Self { in nonce() 166 pub fn attestation_device_brand(mut self, b: Vec<u8>) -> Self { in attestation_device_brand() 175 pub fn attestation_device_name(mut self, b: Vec<u8>) -> Self { in attestation_device_name() 184 pub fn attestation_device_product_name(mut self, b: Vec<u8>) -> Self { in attestation_device_product_name() 193 pub fn attestation_device_serial(mut self, b: Vec<u8>) -> Self { in attestation_device_serial() 202 pub fn attestation_device_imei(mut self, b: Vec<u8>) -> Self { in attestation_device_imei() 211 pub fn attestation_device_second_imei(mut self, b: Vec<u8>) -> Self { in attestation_device_second_imei() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ |
D | ListOfInterfaces.rs | 122 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 132 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 137 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 159 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… in new_async_binder() 168 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 178 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… in build_parcel_methodWithInterfaces() 188 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… in read_response_methodWithInterfaces() 197 …let _aidl_return: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_1… in read_response_methodWithInterfaces() 206 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 213 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… [all …]
|
D | ArrayOfInterfaces.rs | 122 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 132 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 137 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 159 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… in new_async_binder() 168 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 178 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… in build_parcel_methodWithInterfaces() 190 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… in read_response_methodWithInterfaces() 199 …let _aidl_return: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_1… in read_response_methodWithInterfaces() 208 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 215 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… [all …]
|
D | ITestService.rs | 36 …erseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>… 37 …fn r#ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>>; 38 …fn r#ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u1… 39 …fn r#ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32… 40 …fn r#ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i6… 41 …fn r#ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f… 42 …fn r#ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<… 43 …seString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<Stri… 44 …ts_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> … 45 …ests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> … [all …]
|
D | ParcelableForToString.rs | 10 pub r#intArray: Vec<i32>, 12 pub r#longArray: Vec<i64>, 14 pub r#doubleArray: Vec<f64>, 16 pub r#floatArray: Vec<f32>, 18 pub r#byteArray: Vec<u8>, 20 pub r#booleanArray: Vec<bool>, 22 pub r#stringArray: Vec<String>, 23 pub r#stringList: Vec<String>, 25 …pub r#parcelableArray: Vec<crate::mangled::_7_android_4_aidl_5_tests_26_OtherParcelableForToString… 27 pub r#enumArray: Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>, [all …]
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-rust-source/gen/android/aidl/tests/ |
D | ArrayOfInterfaces.rs | 122 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 132 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 137 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 159 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… in new_async_binder() 168 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 178 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… in build_parcel_methodWithInterfaces() 190 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… in read_response_methodWithInterfaces() 199 …let _aidl_return: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_1… in read_response_methodWithInterfaces() 208 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… 215 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_17_ArrayOfInterfaces_15_IE… [all …]
|
D | ListOfInterfaces.rs | 122 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 132 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 137 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 159 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… in new_async_binder() 168 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 178 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… in build_parcel_methodWithInterfaces() 188 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… in read_response_methodWithInterfaces() 197 …let _aidl_return: Option<Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_1… in read_response_methodWithInterfaces() 206 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… 213 …Vec<Option<binder::Strong<dyn crate::mangled::_7_android_4_aidl_5_tests_16_ListOfInterfaces_15_IEm… [all …]
|
D | ITestService.rs | 36 …erseBoolean(&self, _arg_input: &[bool], _arg_repeated: &mut Vec<bool>) -> binder::Result<Vec<bool>… 37 …fn r#ReverseByte(&self, _arg_input: &[u8], _arg_repeated: &mut Vec<u8>) -> binder::Result<Vec<u8>>; 38 …fn r#ReverseChar(&self, _arg_input: &[u16], _arg_repeated: &mut Vec<u16>) -> binder::Result<Vec<u1… 39 …fn r#ReverseInt(&self, _arg_input: &[i32], _arg_repeated: &mut Vec<i32>) -> binder::Result<Vec<i32… 40 …fn r#ReverseLong(&self, _arg_input: &[i64], _arg_repeated: &mut Vec<i64>) -> binder::Result<Vec<i6… 41 …fn r#ReverseFloat(&self, _arg_input: &[f32], _arg_repeated: &mut Vec<f32>) -> binder::Result<Vec<f… 42 …fn r#ReverseDouble(&self, _arg_input: &[f64], _arg_repeated: &mut Vec<f64>) -> binder::Result<Vec<… 43 …seString(&self, _arg_input: &[String], _arg_repeated: &mut Vec<String>) -> binder::Result<Vec<Stri… 44 …ts_8_ByteEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum>) -> … 45 …ests_7_IntEnum], _arg_repeated: &mut Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>) -> … [all …]
|
D | ParcelableForToString.rs | 10 pub r#intArray: Vec<i32>, 12 pub r#longArray: Vec<i64>, 14 pub r#doubleArray: Vec<f64>, 16 pub r#floatArray: Vec<f32>, 18 pub r#byteArray: Vec<u8>, 20 pub r#booleanArray: Vec<bool>, 22 pub r#stringArray: Vec<String>, 23 pub r#stringList: Vec<String>, 25 …pub r#parcelableArray: Vec<crate::mangled::_7_android_4_aidl_5_tests_26_OtherParcelableForToString… 27 pub r#enumArray: Vec<crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum>, [all …]
|
/system/authgraph/wire/src/ |
D | lib.rs | 24 use alloc::{vec, vec::Vec}; 53 pub peer_pub_key: Vec<u8>, // PlainPubKey.cddl 54 pub peer_id: Vec<u8>, // Identity.cddl 55 pub peer_nonce: Vec<u8>, 67 pub peer_pub_key: Vec<u8>, // PlainPubKey.cddl 68 pub peer_id: Vec<u8>, // Identity.cddl 69 pub peer_signature: Vec<u8>, // SessionIdSignature.cddl 70 pub peer_nonce: Vec<u8>, 80 pub peer_signature: Vec<u8>, // SessionIdSignature.cddl 81 pub shared_keys: [Vec<u8>; 2], // Arc.cddl [all …]
|
/system/keymint/ta/src/ |
D | device.rs | 18 use alloc::{boxed::Box, vec::Vec}; 77 fn kek_context(&self) -> Result<Vec<u8>, Error> { in kek_context() 79 Ok(Vec::new()) in kek_context() 101 fn timestamp_token_mac_input(&self, token: &TimeStampToken) -> Result<Vec<u8>, Error> { in timestamp_token_mac_input() 109 fn hmac(&self, imp: &dyn crypto::Hmac, data: &[u8]) -> Result<Vec<u8>, Error>; in hmac() 161 fn cert_chain(&self, key_type: SigningKeyType) -> Result<Vec<keymint::Certificate>, Error>; in cert_chain() 195 ) -> Result<Vec<u8>, Error>; in derive_bytes_from_hbk() 203 ) -> Result<Vec<u8>, Error> { in compute_hmac_sha256() 230 ) -> Result<Vec<u8>, Error>; in sign_data() 242 ) -> Result<Vec<u8>, Error> { in sign_data_in_cose_sign1() [all …]
|
D | rkp.rs | 24 use alloc::{vec, vec::Vec}; 62 pub fn rpc_device_info(&self) -> Result<Vec<u8>, Error> { in rpc_device_info() 157 ) -> Result<(MacedPublicKey, Vec<u8>), Error> { in generate_ecdsa_p256_keypair() 180 build_maced_pub_key(pub_cose_key_encoded, |data| -> Result<Vec<u8>, Error> { in generate_ecdsa_p256_keypair() 202 _keys_to_sign: Vec<MacedPublicKey>, in generate_cert_req() 205 ) -> Result<(DeviceInfo, ProtectedData, Vec<u8>), Error> { in generate_cert_req() 215 keys_to_sign: Vec<MacedPublicKey>, in generate_cert_req_v2() 217 ) -> Result<Vec<u8>, Error> { in generate_cert_req_v2() 233 let mut pub_cose_keys: Vec<Value> = Vec::new(); in generate_cert_req_v2() 309 fn build_maced_pub_key<F>(pub_cose_key: Vec<u8>, compute_mac: F) -> Result<Vec<u8>, Error> in build_maced_pub_key() [all …]
|
D | secret.rs | 18 use alloc::{boxed::Box, vec::Vec}; 28 self.shared_secret_params = Some(SharedSecretParameters { seed: Vec::new(), nonce }); in get_shared_secret_params() 36 ) -> Result<Vec<u8>, Error> { in compute_shared_secret() 65 ) -> Result<Vec<u8>, crate::Error> { in shared_secret_context() 66 let mut result = Vec::new(); in shared_secret_context() 91 fn hmac(&self, imp: &dyn crypto::Hmac, data: &[u8]) -> Result<Vec<u8>, Error> { in hmac()
|
/system/authgraph/core/src/ |
D | lib.rs | 21 use alloc::vec::Vec; 43 impl<T> FallibleAllocExt<T> for Vec<T> { implementation 67 ) -> Result<Vec<T>, alloc::collections::TryReserveError> { in vec_try_fill_with_alloc_err() 68 let mut v = alloc::vec::Vec::new(); in vec_try_fill_with_alloc_err() 79 let mut v = alloc::vec::Vec::new(); 95 pub fn try_to_vec<T: Clone>(s: &[T]) -> Result<Vec<T>, alloc::collections::TryReserveError> { in try_to_vec()
|
/system/keymint/common/src/keyblob/ |
D | legacy.rs | 21 use alloc::vec::Vec; 69 pub nonce: Vec<u8>, 71 pub ciphertext: Vec<u8>, 73 pub tag: Vec<u8>, 82 pub hw_enforced: Vec<KeyParam>, 84 pub sw_enforced: Vec<KeyParam>, 91 pub fn serialize(&self) -> Result<Vec<u8>, Error> { in serialize() 186 pub key_material: Vec<u8>, 188 pub hw_enforced: Vec<KeyParam>, 190 pub sw_enforced: Vec<KeyParam>, [all …]
|
/system/security/keystore2/tests/ |
D | keystore2_client_attest_key_tests.rs | 58 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_rsa_signing_key_success() 83 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_rsa_signing_key_success() 106 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_rsa_encrypt_key_success() 131 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_rsa_encrypt_key_success() 155 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_ec_key_success() 170 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_ec_key_success() 199 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_rsa_signing_key_with_ec_25519_key_success() 224 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_rsa_signing_key_with_ec_25519_key_success() 326 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_key_fails_missing_challenge() 456 let mut cert_chain: Vec<u8> = Vec::new(); in keystore2_attest_symmetric_key_fail_sys_error() [all …]
|
/system/security/keystore2/src/ |
D | utils.rs | 166 key_characteristics: Vec<KeyCharacteristics>, in key_characteristics_to_internal() 167 ) -> Vec<KeyParameter> { in key_characteristics_to_internal() 189 ) -> Result<(T, Option<Vec<u8>>)> in import_keyblob_and_perform_op() 214 let mut import_params: Vec<KmKeyParameter> = chars in import_keyblob_and_perform_op() 298 ) -> Result<(T, Option<Vec<u8>>)> in upgrade_keyblob_and_perform_op() 329 ) -> Result<(T, Option<Vec<u8>>)> in upgrade_keyblob_if_required_with() 428 parameters: Vec<crate::key_parameter::KeyParameter>, in key_parameters_to_authorizations() 429 ) -> Vec<Authorization> { in key_parameters_to_authorizations() 493 ) -> Vec<KeyDescriptor> { in merge_and_filter_key_entry_lists() 494 let mut result: Vec<KeyDescriptor> = in merge_and_filter_key_entry_lists() [all …]
|