Home
last modified time | relevance | path

Searched refs:HwkeyError (Results 1 – 3 of 3) sorted by relevance

/trusty/user/base/lib/hwkey/rust/src/
Derr.rs25 pub enum HwkeyError { enum
39 impl HwkeyError { implementation
55 impl From<TipcError> for HwkeyError { implementation
61 impl From<Error> for HwkeyError { implementation
67 impl From<TryFromIntError> for HwkeyError { implementation
69 HwkeyError::OutOfBounds in from()
73 impl From<AllocError> for HwkeyError { implementation
79 impl From<FromBytesWithNulError> for HwkeyError { implementation
Dlib.rs36 pub use err::HwkeyError;
111 ) -> Result<&'a [u8], HwkeyError> { in get_keyslot_data() argument
118 return Err(HwkeyError::NotValid); in get_keyslot_data()
123 return Err(HwkeyError::NotValid); in get_keyslot_data()
141 return Err(HwkeyError::InvalidCmdResponse); in get_keyslot_data()
144 HwkeyError::from_hwkey_rc(response.status)?; in get_keyslot_data()
152 return Err(HwkeyError::BadLen); in get_keyslot_data()
179 ) -> Result<DeriveResult, HwkeyError> { in derive() argument
182 return Err(HwkeyError::NotValid); in derive()
190 return Err(HwkeyError::BadLen); in derive()
[all …]
Dtest.rs446 assert_eq!(err, HwkeyError::BadLen); in test_hwkey_derive_large_payload()
456 assert_eq!(err, HwkeyError::BadLen); in test_hwkey_derive_large_payload()
482 assert_eq!(err, HwkeyError::NotFound); in test_get_keyslot_storage_auth()
586 assert_eq!(err, HwkeyError::NotFound); in test_get_multiple_opaque_keys()
597 assert_eq!(err, HwkeyError::NotFound); in test_get_multiple_opaque_keys()
603 assert_eq!(err, HwkeyError::NotFound); in test_get_multiple_opaque_keys()