/trusty/user/app/sample/hwcryptohal/server/ |
D | platform_functions.rs | 26 pub(crate) fn compare_vm_identities(vm1_identity: &[u8], vm2_identity: &[u8]) -> bool { in compare_vm_identities() 34 fn add_entropy(&mut self, data: &[u8]) { in add_entropy() 37 fn fill_bytes(&mut self, dest: &mut [u8]) { in fill_bytes() 44 pub fn trusty_rng_add_entropy(data: &[u8]) { in trusty_rng_add_entropy()
|
D | service_encryption_key.rs | 70 key_context: &[u8], in derive_service_encryption_key() 79 key_context: &[u8], in encrypt_content_service_encryption_key() 81 ) -> Result<Vec<u8>, HwCryptoError> { in encrypt_content_service_encryption_key() 108 encrypted_context: &[u8], in decrypt_content_service_encryption_key() 109 key_context: &[u8], in decrypt_content_service_encryption_key() 110 ) -> Result<(Self, Vec<u8>), HwCryptoError> { in decrypt_content_service_encryption_key() 208 fn get_encryption_key(header_version: u32, key_context: &[u8]) -> Result<Vec<u8>, HwCryptoError> { in get_encryption_key() 226 derivation_key: &[u8], in derive_key_hkdf() 227 derivation_context: &[u8], in derive_key_hkdf()
|
D | opaque_key.rs | 187 key_material: Vec<u8>, in new_opaque_key_from_raw_bytes() 213 context: &[u8], in derive_raw_key_material() 215 ) -> Result<Vec<u8>, HwCryptoError> { in derive_raw_key_material() 234 context: &[u8], in derive_key() 293 ) -> binder::Result<Vec<u8>> { in exportWrappedKey() 304 fn getPublicKey(&self) -> binder::Result<Vec<u8>> { in getPublicKey() 496 key_random_bytes: Option<Vec<u8>>, in generate_key_material()
|
D | hwcrypto_device_key.rs | 93 fn new_current_encrypted(uuid: Uuid) -> Result<Vec<u8>, HwCryptoError> { in new_current_encrypted() 114 encrypted_ctx: &[u8], in check_encrypted_context() 140 fn encrypt_context(mut self) -> Result<Vec<u8>, HwCryptoError> { in encrypt_context() 145 fn get_stable_context(encrypted_context: &[u8]) -> Result<Vec<u8>, HwCryptoError> { in get_stable_context() 213 dice_policy_for_key_version: &[u8], in derive_dice_policy_bound_key() 300 dice_policy_for_key_version: &[u8], in deriveDicePolicyBoundKey()
|
/trusty/user/app/keymint/ |
D | rpc.rs | 38 context: &[u8], in derive_bytes_from_hbk() 40 ) -> Result<Vec<u8>, Error> { in derive_bytes_from_hbk() 73 _data: &[u8], in sign_data() 75 ) -> Result<Vec<u8>, Error> { in sign_data() 84 payload: &[u8], in sign_data_in_cose_sign1() 85 aad: &[u8], in sign_data_in_cose_sign1() 87 ) -> Result<Vec<u8>, Error> { in sign_data_in_cose_sign1()
|
D | keymaster_attributes.rs | 50 pub fn get_uuid(&self) -> &[u8] { in get_uuid() 65 pub fn set_uuid(&mut self, v: ::std::vec::Vec<u8>) { in set_uuid() 71 pub fn mut_uuid(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_uuid() 79 pub fn take_uuid(&mut self) -> ::std::vec::Vec<u8> { in take_uuid() 86 pub fn get_product_id(&self) -> &[u8] { in get_product_id() 101 pub fn set_product_id(&mut self, v: ::std::vec::Vec<u8>) { in set_product_id() 107 pub fn mut_product_id(&mut self) -> &mut ::std::vec::Vec<u8> { in mut_product_id() 115 pub fn take_product_id(&mut self) -> ::std::vec::Vec<u8> { in take_product_id() 278 pub fn get_brand(&self) -> &[u8] { in get_brand() 293 pub fn set_brand(&mut self, v: ::std::vec::Vec<u8>) { in set_brand() [all …]
|
D | rng.rs | 25 fn add_entropy(&mut self, data: &[u8]) { in add_entropy() 28 fn fill_bytes(&mut self, dest: &mut [u8]) { in fill_bytes()
|
D | keybox.rs | 43 pub(crate) fn keybox_unwrap(&self, wrapped_keybox: &[u8]) -> Result<Vec<u8>, Error> { in keybox_unwrap() 59 pub(crate) fn keybox_unwrap(wrapped_keybox: &[u8]) -> Result<Vec<u8>, Error> { in keybox_unwrap() 73 fn create_fake_wrapped_data(data: &[u8]) -> Vec<u8> { in create_fake_wrapped_data()
|
D | ipc_manager.rs | 76 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> tipc::Result<Self> { in deserialize() 118 fn handle_message(&self, req_data: &[u8]) -> Result<Vec<Vec<u8>>, Error> { in handle_message() 688 fn get_message_request(cmd: u32) -> Vec<u8> { in get_message_request() 701 ) -> Result<Vec<u8>, legacy::Error> { in get_configure_boot_patchlevel_message() 712 verified_boot_key: Vec<u8>, in get_set_boot_params_message() 713 verified_boot_hash: Vec<u8>, in get_set_boot_params_message() 714 ) -> Result<Vec<u8>, legacy::Error> { in get_set_boot_params_message() 726 brand: &Vec<u8>, in get_set_attestation_ids_message() 727 product: &Vec<u8>, in get_set_attestation_ids_message() 728 device: &Vec<u8>, in get_set_attestation_ids_message() [all …]
|
D | ffi_bindings.rs | 34 pub fn trusty_rng_add_entropy(data: &[u8]) { in trusty_rng_add_entropy() 105 pub(crate) fn get_unwrapped_keybox(self) -> Vec<u8> { in get_unwrapped_keybox() 113 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
|
D | secure_storage_manager.rs | 143 key_data: &[u8], in set_wrapped_attestation_key() 153 key_data: &[u8], in provision_attestation_key_file() 166 cert_data: &[u8], in append_attestation_cert_chain() 225 brand: &[u8], in provision_attestation_id_file() 226 product: &[u8], in provision_attestation_id_file() 227 device: &[u8], in provision_attestation_id_file() 228 serial: &[u8], in provision_attestation_id_file() 229 imei: &[u8], in provision_attestation_id_file() 230 meid: &[u8], in provision_attestation_id_file() 231 manufacturer: &[u8], in provision_attestation_id_file() [all …]
|
D | key_wrapper.rs | 45 fn ephemeral_wrap(&self, key_material: &KeyMaterial) -> Result<Vec<u8>, Error> { in ephemeral_wrap() 143 data: &[u8], in import_key()
|
D | keys.rs | 46 fn deserialize_u32(bytes: &[u8], error_message: &str) -> Result<u32, Error> { in deserialize_u32() 201 fn to_raw(&self) -> Result<Vec<u8>, Error> { in to_raw() 263 fn kek_context(&self) -> Result<Vec<u8>, Error> { in kek_context() 282 fn timestamp_token_mac_input(&self, token: &TimeStampToken) -> Result<Vec<u8>, Error> { in timestamp_token_mac_input()
|
/trusty/user/base/lib/trusty-std/src/ |
D | alloc.rs | 203 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() 223 ptr: NonNull<u8>, in grow_impl() 227 ) -> Result<NonNull<[u8]>, AllocError> { in grow_impl() 272 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() 277 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() 282 unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) { in deallocate() 293 ptr: NonNull<u8>, in grow() 296 ) -> Result<NonNull<[u8]>, AllocError> { in grow() 304 ptr: NonNull<u8>, in grow_zeroed() 307 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed() [all …]
|
/trusty/user/base/lib/hwwsk/rust/src/ |
D | lib.rs | 85 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() 145 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() 184 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() 220 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() 291 buf: &'a mut [u8], in import_key() 294 raw_key: &[u8], in import_key() 295 ) -> Result<&'a [u8], HwWskError> { in import_key() 322 buf: &'a mut [u8], in generate_key() 325 ) -> Result<&'a [u8], HwWskError> { in generate_key() 331 buf: &'a mut [u8], in create_key() [all …]
|
/trusty/user/base/lib/trusty-std/src/ffi/ |
D | c_str.rs | 126 fn into_vec(self) -> Result<Vec<u8>, AllocError>; in try_new() 129 default fn into_vec(self) -> Result<Vec<u8>, AllocError> { in try_new() 134 impl SpecIntoVec for &'_ [u8] { in try_new() implementation 135 fn into_vec(self) -> Result<Vec<u8>, AllocError> { in try_new() 143 fn into_vec(self) -> Result<Vec<u8>, AllocError> { in try_new()
|
/trusty/user/base/lib/hwbcc/rust/src/ |
D | lib.rs | 114 data: &'a [u8], in new() 115 aad: &'a [u8], in new() 161 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() 232 fn read_payload(resp: HwBccResponse, buf: &mut [u8]) -> Result<&[u8], HwBccError> { in read_payload() 270 artifacts: &'a mut [u8], in get_dice_artifacts() 334 pub fn get_bcc<'a>(test_mode: HwBccMode, bcc: &'a mut [u8]) -> Result<&'a [u8], HwBccError> { in get_bcc() 373 data: &[u8], in sign_data() 374 aad: &[u8], in sign_data() 375 cose_sign1: &'a mut [u8], in sign_data() 376 ) -> Result<&'a [u8], HwBccError> { in sign_data()
|
/trusty/user/base/lib/storage/rust/src/ |
D | transaction.rs | 85 buf: &'buf mut [u8], in read_all() 86 ) -> Result<&'buf [u8], Error> { in read_all() 108 buf: &'buf mut [u8], in read_at() 109 ) -> Result<&'buf [u8], Error> { in read_at() 131 buf: &[u8], in write_at()
|
D | lib.rs | 301 pub fn read<'buf>(&mut self, path: &str, buf: &'buf mut [u8]) -> Result<&'buf [u8], Error> { in read() 346 buf: &'buf mut [u8], in read_all() 347 ) -> Result<&'buf [u8], Error> { in read_all() 377 buf: &'buf mut [u8], in read_at() 378 ) -> Result<&'buf [u8], Error> { in read_at() 412 buf: &[u8], in write_all_impl() 439 buf: &[u8], in write_at() 451 buf: &[u8], in write_at_impl()
|
/trusty/user/base/lib/tipc/rust/src/ |
D | serialization.rs | 29 let ptr = obj as *const _ as *const u8; in serialize_as_bytes() constant 96 fn deserialize(bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error>; in deserialize() 104 fn deserialize(_bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
|
D | handle.rs | 150 buffers: &mut [&mut [u8]], in recv_vectored() 209 pub fn send_vectored(&self, buffers: &[&[u8]], handles: &[Handle]) -> crate::Result<()> { in send_vectored() 443 pub fn ptr(&self) -> *mut u8 { in ptr()
|
/trusty/user/base/lib/hwkey/rust/src/ |
D | lib.rs | 110 keyslot_data: &'a mut [u8], in get_keyslot_data() 111 ) -> Result<&'a [u8], HwkeyError> { in get_keyslot_data() 176 src: &[u8], in derive() 177 key_buf: &mut [u8], in derive() 509 pub fn derive(self, src: &[u8], key_buf: &mut [u8]) -> Result<DeriveResult, HwkeyError> { in derive() 586 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() 623 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
|
/trusty/user/app/keymint/keys/ |
D | legacy.rs | 46 ) -> Result<Vec<u8>, Error> { in build_derivation_info() 91 keyblob: &[u8], in convert_key() 308 keyblob: &[u8], in convert_legacy_key()
|
/trusty/user/app/sample/memref-test/rust/ |
D | memref_test.rs | 162 fn deserialize(_bytes: &[u8], handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() 178 fn deserialize(bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize() 209 fn deserialize(_bytes: &[u8], _handles: &mut [Option<Handle>]) -> Result<Self, Self::Error> { in deserialize()
|
/trusty/user/app/secretkeeper/ |
D | store.rs | 67 fn store(&mut self, key: &[u8], val: &[u8]) -> Result<(), Error> { in store() 79 fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Error> { in get()
|