pub enum KeyResolution {
Current,
Rekeyed(u32),
}Expand description
How a chained file’s key epoch was resolved during verification (FR-008): distinguishes a legitimate rotation from tamper so callers can report the two differently rather than misleading an operator into believing a re-keyed (but otherwise intact) file was tampered with.
Variants§
Current
The file verifies under the current epoch’s key — the common case.
Rekeyed(u32)
The file verifies under a previous epoch’s key still held in the rotation window — a legitimate rotation, not tamper.
Trait Implementations§
Source§impl Clone for KeyResolution
impl Clone for KeyResolution
Source§fn clone(&self) -> KeyResolution
fn clone(&self) -> KeyResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyResolution
Source§impl Debug for KeyResolution
impl Debug for KeyResolution
impl Eq for KeyResolution
Source§impl PartialEq for KeyResolution
impl PartialEq for KeyResolution
impl StructuralPartialEq for KeyResolution
Auto Trait Implementations§
impl Freeze for KeyResolution
impl RefUnwindSafe for KeyResolution
impl Send for KeyResolution
impl Sync for KeyResolution
impl Unpin for KeyResolution
impl UnsafeUnpin for KeyResolution
impl UnwindSafe for KeyResolution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more