Lines Matching refs:expect

48     let hwkey_session = Hwkey::open().expect("could not open hwkey session");  in test_hwkey_derive_repeatable_versioned()
59 .expect("could not derive key"); in test_hwkey_derive_repeatable_versioned()
71 .expect("could not derive key"); in test_hwkey_derive_repeatable_versioned()
86 .expect("could not derive key"); in test_hwkey_derive_repeatable_versioned()
102 .expect("could not derive key"); in test_hwkey_derive_repeatable_versioned()
122 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_hwkey_derive_different_default()
129 .expect("could not derive key"); in test_hwkey_derive_different_default()
135 let _ = hwkey_session.derive_key_req().derive(SRC_DATA2, buf2).expect("could not derive key"); in test_hwkey_derive_different_default()
148 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_hwkey_derive_different_specified()
159 .expect("could not derive key"); in test_hwkey_derive_different_specified()
174 .expect("could not derive key"); in test_hwkey_derive_different_specified()
196 .expect("could not derive key"); in test_hwkey_derive_different_specified()
213 .expect("could not derive key"); in test_hwkey_derive_different_specified()
231 .expect("could not derive key"); in test_hwkey_derive_different_specified()
252 .expect("could not derive key"); in test_hwkey_derive_different_specified()
272 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_hwkey_derive_different_version_source()
283 .expect("could not derive key"); in test_hwkey_derive_different_version_source()
296 .expect("could not derive key"); in test_hwkey_derive_different_version_source()
321 .expect("could not derive key"); in test_hwkey_derive_different_version_source()
338 .expect("could not derive key"); in test_hwkey_derive_different_version_source()
351 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_hwkey_derive_null_context()
362 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_hwkey_derive_newer_versions()
367 .expect("could not query version"); in test_hwkey_derive_newer_versions()
388 .expect("could not query version"); in test_hwkey_derive_newer_versions()
426 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_hwkey_derive_large_payload()
436 .expect("versioned derive with large context and key"); in test_hwkey_derive_large_payload()
461 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_query_current_os_version()
465 .expect("could not query version"); in test_query_current_os_version()
470 .expect("could not query version"); in test_query_current_os_version()
477 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_keyslot_storage_auth()
488 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_keybox()
492 assert_eq!(UNITTEST_KEYSLOT, keyslot_res.expect("could not get keyslot data")) in test_get_keybox()
501 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_derived_keybox()
505 assert_eq!(UNITTEST_DERIVED_KEYSLOT, keyslot_res.expect("could not get keyslot data")) in test_get_derived_keybox()
515 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_opaque_handle()
520 keyslot_res.expect("could not retrieve keyslot data").len() in test_get_opaque_handle()
532 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_opaque_key()
535 hwkey_session.get_keyslot_data(keyslot, buf).expect("could not retrieve keyslot data"); in test_get_opaque_key()
541 .expect("could not retrieve keyslot data"); in test_get_opaque_key()
554 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_multiple_opaque_keys()
560 .expect("could not retrieve keyslot data"); in test_get_multiple_opaque_keys()
568 .expect("could not retrieve keyslot data"); in test_get_multiple_opaque_keys()
578 .expect("could not retrieve keyslot data"); in test_get_multiple_opaque_keys()
590 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_multiple_opaque_keys()
620 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_opaque_handle_multiple_sessions()
623 .expect("get hwcrypto-unittest opaque keybox"); in test_get_opaque_handle_multiple_sessions()
628 let hwkey_session2 = Hwkey::open().expect("could not open hwkey session"); in test_get_opaque_handle_multiple_sessions()
636 .expect("get hwcrypto-unittest opaque keybox"); in test_get_opaque_handle_multiple_sessions()
642 .expect("could not retrieve keyslot data"); in test_get_opaque_handle_multiple_sessions()
648 .expect("could not retrieve keyslot data"); in test_get_opaque_handle_multiple_sessions()
655 .expect("could not retrieve keyslot data"); in test_get_opaque_handle_multiple_sessions()
661 .expect("could not retrieve keyslot data"); in test_get_opaque_handle_multiple_sessions()
670 .expect("first session handle wasn't valid"); in test_get_opaque_handle_multiple_sessions()
678 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_opaque_handle_multiple_sessions()
693 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_try_empty_opaque_handle()
706 let hwkey_session = Hwkey::open().expect("could not open hwkey session"); in test_get_opaque_derived_key()
709 hwkey_session.get_keyslot_data(keyslot, buf).expect("could not retrieve keyslot data"); in test_get_opaque_derived_key()
715 .expect("could not retrieve keyslot data"); in test_get_opaque_derived_key()