Lines Matching refs:OsRollbackVersion

21 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()
384 OsRollbackVersion::Version(n) => n, in kek_with_different_context_return_different_keys()
392 Some(OsRollbackVersion::Version(context2_version)), in kek_with_different_context_return_different_keys()
414 TrustyKekContext::new(true, Some(KdfVersion::Best), Some(OsRollbackVersion::Current)) in legacy_kek_is_different_than_non_legacy()
452 os_rollback_version_to_u32(OsRollbackVersion::Version(version)).unwrap(); in os_version_to_u32()
462 let curr_version = os_rollback_version_to_u32(OsRollbackVersion::Current).unwrap(); in current_version_to_u32()
471 TrustyKekContext::new(true, Some(KdfVersion::Best), Some(OsRollbackVersion::Current)) in deserializing_bad_kek_context_fails()
492 Some(OsRollbackVersion::Version(2)), in test_kek_context_serialization()
505 let non_legacy_ctx = TrustyKekContext::new(true, None, Some(OsRollbackVersion::Version(2))); in test_kek_context_creation()
518 Some(OsRollbackVersion::Version(2)), in test_kek_context_creation()
525 Some(OsRollbackVersion::Version(2)), in test_kek_context_creation()
531 let legacy_ctx = TrustyKekContext::new(false, None, Some(OsRollbackVersion::Version(2))); in test_kek_context_creation()