Home
last modified time | relevance | path

Searched refs:OsRollbackVersion (Results 1 – 5 of 5) sorted by relevance

/trusty/user/base/lib/hwkey/rust/src/
Dtest.rs56 .os_rollback_version(OsRollbackVersion::Version(0)) in test_hwkey_derive_repeatable_versioned()
105 OsRollbackVersion::Version(v) if v > 0 => { in test_hwkey_derive_repeatable_versioned()
109 OsRollbackVersion::Version(_) => { in test_hwkey_derive_repeatable_versioned()
113 assert_ne!(os_rollback_version, OsRollbackVersion::Current); in test_hwkey_derive_repeatable_versioned()
156 .os_rollback_version(OsRollbackVersion::Current) in test_hwkey_derive_different_specified()
166 OsRollbackVersion::Version(n) if n >= 1 => { in test_hwkey_derive_different_specified()
171 .os_rollback_version(OsRollbackVersion::Version(n - 1)) in test_hwkey_derive_different_specified()
181 OsRollbackVersion::Version(_) => (), in test_hwkey_derive_different_specified()
183 assert_ne!(os_rollback_version, OsRollbackVersion::Current); in test_hwkey_derive_different_specified()
193 .os_rollback_version(OsRollbackVersion::Current) in test_hwkey_derive_different_specified()
[all …]
Dlib.rs249 os_rollback_version: OsRollbackVersion::try_from(response.os_rollback_version)?, in derive()
271 ) -> Result<OsRollbackVersion, HwkeyError> { in query_current_os_version() argument
275 .os_rollback_version(OsRollbackVersion::Current); in query_current_os_version()
313 pub enum OsRollbackVersion { enum
320 impl TryInto<i32> for OsRollbackVersion { implementation
325 OsRollbackVersion::Current => Ok(HWKEY_ROLLBACK_VERSION_CURRENT), in try_into()
326 OsRollbackVersion::Version(version) => Ok(version.try_into()?), in try_into()
331 impl TryFrom<i32> for OsRollbackVersion { implementation
334 fn try_from(v: i32) -> Result<OsRollbackVersion, HwkeyError> { in try_from() argument
336 HWKEY_ROLLBACK_VERSION_CURRENT => Ok(OsRollbackVersion::Current), in try_from()
[all …]
/trusty/user/app/keymint/
Dkeys.rs21 use hwkey::{Hwkey, KdfVersion, OsRollbackVersion, RollbackVersionSource};
55 fn os_rollback_version_to_u32(os_rollback_version: OsRollbackVersion) -> Result<u32, Error> { in os_rollback_version_to_u32()
59 OsRollbackVersion::Current => { in os_rollback_version_to_u32()
67 Ok(OsRollbackVersion::Version(n)) => Ok(n), in os_rollback_version_to_u32()
74 OsRollbackVersion::Version(n) => Ok(n), in os_rollback_version_to_u32()
82 os_rollback_version: OsRollbackVersion,
119 os_rollback_version: Option<OsRollbackVersion>, in new() argument
185 let os_rollback_version = OsRollbackVersion::Version(os_rollback_version); in from_raw()
264 TrustyKekContext::new(true, Some(KdfVersion::Best), Some(OsRollbackVersion::Current))? in kek_context()
376 TrustyKekContext::new(true, Some(KdfVersion::Best), Some(OsRollbackVersion::Current)); in kek_with_different_context_return_different_keys()
[all …]
/trusty/user/app/sample/hwcryptohal/server/
Dservice_encryption_key.rs23 use hwkey::{Hwkey, OsRollbackVersion, RollbackVersionSource};
218 .os_rollback_version(OsRollbackVersion::Version(header_version)) in get_encryption_key()
283 Ok(OsRollbackVersion::Version(n)) => Ok(n), in get_service_current_version()
/trusty/user/app/keymint/keys/
Dlegacy.rs154 hwkey::OsRollbackVersion::try_from(v) in convert_key()