pub enum SecurityError {
AuthorMismatch,
InvalidAuthor,
InvalidSignature,
EncryptionFailed,
DecryptionFailed,
KeyDerivationFailed,
RandomnessUnavailable,
KeyProviderIo(String),
InvalidKeyProviderData,
InsecureKeyPermissions,
CommitCodec(CommitCodecError),
}Expand description
Cryptographic validation or commit protection failure.
Variants§
AuthorMismatch
The header author did not match the supplied endpoint signer.
InvalidAuthor
The encoded endpoint public key was invalid.
InvalidSignature
The commit signature was invalid.
EncryptionFailed
Authenticated encryption could not be completed.
DecryptionFailed
Ciphertext authentication or decryption failed.
KeyDerivationFailed
The commit sub-key could not be derived.
The operating system random source was unavailable.
KeyProviderIo(String)
Local key-provider I/O failed without exposing key material.
InvalidKeyProviderData
Local key-provider bytes failed format or authentication checks.
InsecureKeyPermissions
Secret key files were accessible by group or other users.
CommitCodec(CommitCodecError)
The canonical commit representation was invalid.
Trait Implementations§
Source§impl Clone for SecurityError
impl Clone for SecurityError
Source§fn clone(&self) -> SecurityError
fn clone(&self) -> SecurityError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityError
impl Debug for SecurityError
Source§impl Display for SecurityError
impl Display for SecurityError
Source§impl Error for SecurityError
impl Error for SecurityError
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<CommitCodecError> for SecurityError
impl From<CommitCodecError> for SecurityError
Source§impl PartialEq for SecurityError
impl PartialEq for SecurityError
impl Eq for SecurityError
impl StructuralPartialEq for SecurityError
Auto Trait Implementations§
impl Freeze for SecurityError
impl RefUnwindSafe for SecurityError
impl Send for SecurityError
impl Sync for SecurityError
impl Unpin for SecurityError
impl UnwindSafe for SecurityError
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