pub enum RotationError {
Crypto(CryptoError),
Directory(OrgKeyDirectoryError),
Untrusted,
NonMonotonic,
WrongAlgorithm(String),
BadSignature(String),
}Expand description
Failures rotating an org key or handling a rotation floor.
Variants§
Crypto(CryptoError)
A wrap failed to construct (e.g. a low-order recipient key).
Directory(OrgKeyDirectoryError)
Publishing to the directory failed (I/O or backend authz refusal).
Untrusted
The floor signature did not verify against any trusted granter key.
NonMonotonic
The floor is not internally well-formed: floor_epoch <= prev_floor_epoch.
NOTE: this is a self-consistency check, NOT anti-rollback — see
verify_rotation_floor for why the caller still owns replay defense.
WrongAlgorithm(String)
The car_floor algorithm tag was not [ALG_ROTATION_FLOOR].
BadSignature(String)
The stored signature hex was malformed.
Trait Implementations§
Source§impl Debug for RotationError
impl Debug for RotationError
Source§impl Display for RotationError
impl Display for RotationError
Source§impl Error for RotationError
impl Error for RotationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CryptoError> for RotationError
impl From<CryptoError> for RotationError
Source§fn from(e: CryptoError) -> Self
fn from(e: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<OrgKeyDirectoryError> for RotationError
impl From<OrgKeyDirectoryError> for RotationError
Source§fn from(e: OrgKeyDirectoryError) -> Self
fn from(e: OrgKeyDirectoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RotationError
impl !UnwindSafe for RotationError
impl Freeze for RotationError
impl Send for RotationError
impl Sync for RotationError
impl Unpin for RotationError
impl UnsafeUnpin for RotationError
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