Home
last modified time | relevance | path

Searched refs:CStr (Results 1 – 12 of 12) sorted by relevance

/trusty/user/base/lib/hwkey/rust/src/
Dtest.rs476 let keyslot = CStr::from_bytes_with_nul(RPMB_STORAGE_AUTH_KEY_ID).unwrap(); in test_get_keyslot_storage_auth()
487 let keyslot = CStr::from_bytes_with_nul(HWCRYPTO_UNITTEST_KEYBOX_ID).unwrap(); in test_get_keybox()
500 let keyslot = CStr::from_bytes_with_nul(HWCRYPTO_UNITTEST_DERIVED_KEYBOX_ID).unwrap(); in test_get_derived_keybox()
513 let keyslot = CStr::from_bytes_with_nul(HWCRYPTO_UNITTEST_OPAQUE_HANDLE_ID).unwrap(); in test_get_opaque_handle()
531 let keyslot = CStr::from_bytes_with_nul(HWCRYPTO_UNITTEST_OPAQUE_HANDLE_ID).unwrap(); in test_get_opaque_key()
540 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle).unwrap(), key_buf) in test_get_opaque_key()
557 let keyslot = CStr::from_bytes_with_nul(HWCRYPTO_UNITTEST_OPAQUE_HANDLE_ID).unwrap(); in test_get_multiple_opaque_keys()
565 CStr::from_bytes_with_nul(HWCRYPTO_UNITTEST_OPAQUE_HANDLE_NOACCESS_ID).unwrap(); in test_get_multiple_opaque_keys()
577 .get_keyslot_data(CStr::from_bytes_with_nul(handle).unwrap(), key_buf) in test_get_multiple_opaque_keys()
584 .get_keyslot_data(CStr::from_bytes_with_nul(no_access_handle).unwrap(), key_buf) in test_get_multiple_opaque_keys()
[all …]
Dlib.rs34 use core::ffi::CStr;
59 CStr::from_bytes_with_nul(HWKEY_PORT).expect("HWKEY_PORT was not null terminated"); in open()
109 slot_id: &CStr, in get_keyslot_data() argument
/trusty/user/base/lib/hwwsk/rust/src/
Dtest.rs22 use core::ffi::CStr;
28 let port = CStr::from_bytes_with_nul(HWWSK_PORT).expect("HWKEY_PORT was not null terminated"); in open_hwwsk_session()
/trusty/user/app/sample/hwcryptohal/server/
Dhwcrypto_ipc_server.rs20 use core::ffi::CStr;
25 const RUST_SERVICE_PORT: &CStr = c"com.android.trusty.rust.hwcryptohal.V1";
/trusty/user/app/keymint/
Dkeybox.rs18 use core::ffi::CStr;
39 CStr::from_bytes_with_nul(KEYBOX_PORT).expect("KEYBOX_PORT was not null terminated"); in new()
Dkey_wrapper.rs18 use core::ffi::CStr;
36 let port = CStr::from_bytes_with_nul(HWWSK_PORT).expect("HWWSK_PORT was not null terminated"); in hwwsk_session()
Dkeys.rs19 use core::ffi::CStr;
273 let keyslot = CStr::from_bytes_with_nul(KM_KAK_SLOT_ID) in kak()
/trusty/user/app/sample/memref-test/rust/
Dmemref_test.rs4 use core::ffi::CStr;
21 let port = CStr::from_bytes_with_nul(LENDER_PORT).unwrap(); in recv_ref()
43 let port = CStr::from_bytes_with_nul(LENDER_PORT).unwrap(); in drop_shared_buf_handle()
/trusty/user/base/lib/hwbcc/rust/src/
Dlib.rs43 use core::ffi::CStr;
277 let port = CStr::from_bytes_with_nul(HWBCC_PORT).expect("HWBCC_PORT was not null terminated"); in get_dice_artifacts()
308 let port = CStr::from_bytes_with_nul(HWBCC_PORT).expect("HWBCC_PORT was not null terminated"); in ns_deprivilege()
340 let port = CStr::from_bytes_with_nul(HWBCC_PORT).expect("HWBCC_PORT was not null terminated"); in get_bcc()
387 let port = CStr::from_bytes_with_nul(HWBCC_PORT).expect("HWBCC_PORT was not null terminated"); in sign_data()
/trusty/user/app/storage/test/storage-unittest-aidl/
Dlib.rs17 use core::ffi::CStr;
25 const STORAGE_AIDL_PORT_NAME: &CStr = c"com.android.hardware.security.see.storage"; in connect()
/trusty/user/base/lib/system_state/rust/src/
Dlib.rs29 use core::ffi::CStr;
114 let port = CStr::from_bytes_with_nul(SYSTEM_STATE_PORT) in try_connect()
/trusty/user/base/lib/tipc/rust/src/
Dhandle.rs21 use core::ffi::CStr;
85 pub fn connect(port: &CStr) -> crate::Result<Self> { in connect()