Lines Matching refs:unwrap

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()
595 .get_keyslot_data(CStr::from_bytes_with_nul(handle).unwrap(), key_buf) in test_get_multiple_opaque_keys()
601 .get_keyslot_data(CStr::from_bytes_with_nul(no_access_handle).unwrap(), key_buf) in test_get_multiple_opaque_keys()
611 let keyslot = CStr::from_bytes_with_nul(HWCRYPTO_UNITTEST_OPAQUE_HANDLE_ID).unwrap(); in test_get_opaque_handle_multiple_sessions()
633 let keyslot2 = CStr::from_bytes_with_nul(HWCRYPTO_UNITTEST_OPAQUE_HANDLE_ID2).unwrap(); in test_get_opaque_handle_multiple_sessions()
641 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle).unwrap(), key_buf) in test_get_opaque_handle_multiple_sessions()
647 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle2).unwrap(), key_buf) in test_get_opaque_handle_multiple_sessions()
654 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle).unwrap(), key_buf) in test_get_opaque_handle_multiple_sessions()
660 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle2).unwrap(), key_buf) in test_get_opaque_handle_multiple_sessions()
669 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle).unwrap(), key_buf) in test_get_opaque_handle_multiple_sessions()
673 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle2).unwrap(), key_buf) in test_get_opaque_handle_multiple_sessions()
681 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle).unwrap(), key_buf) in test_get_opaque_handle_multiple_sessions()
685 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle2).unwrap(), key_buf) in test_get_opaque_handle_multiple_sessions()
692 let keyslot = CStr::from_bytes_with_nul(b"\0").unwrap(); in test_try_empty_opaque_handle()
705 let keyslot = CStr::from_bytes_with_nul(HWCRYPTO_UNITTEST_OPAQUE_DERIVED_ID).unwrap(); in test_get_opaque_derived_key()
714 .get_keyslot_data(CStr::from_bytes_with_nul(opaque_handle).unwrap(), key_buf) in test_get_opaque_derived_key()