Searched refs:CStr (Results 1 – 12 of 12) sorted by relevance
476 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 …]
34 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
22 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()
20 use core::ffi::CStr;25 const RUST_SERVICE_PORT: &CStr = c"com.android.trusty.rust.hwcryptohal.V1";
18 use core::ffi::CStr;39 CStr::from_bytes_with_nul(KEYBOX_PORT).expect("KEYBOX_PORT was not null terminated"); in new()
18 use core::ffi::CStr;36 let port = CStr::from_bytes_with_nul(HWWSK_PORT).expect("HWWSK_PORT was not null terminated"); in hwwsk_session()
19 use core::ffi::CStr;273 let keyslot = CStr::from_bytes_with_nul(KM_KAK_SLOT_ID) in kak()
4 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()
43 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()
17 use core::ffi::CStr;25 const STORAGE_AIDL_PORT_NAME: &CStr = c"com.android.hardware.security.see.storage"; in connect()
29 use core::ffi::CStr;114 let port = CStr::from_bytes_with_nul(SYSTEM_STATE_PORT) in try_connect()
21 use core::ffi::CStr;85 pub fn connect(port: &CStr) -> crate::Result<Self> { in connect()