#[non_exhaustive]pub enum Error {
Show 16 variants
Format(FormatError),
Random,
KeyCommitment,
Authentication,
SegmentId,
Signature,
Compression(&'static str),
Limit(&'static str),
Io(ErrorKind),
SignerNotAccepted,
RosterVersionAhead,
Mismatch(&'static str),
Roster(&'static str),
IdentityNotInRoster,
Keyring(&'static str),
Identity(&'static str),
}Expand description
Why a cryptographic operation failed. Variants never carry secret material.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Format(FormatError)
The bytes are not a valid frame of the format.
Random
The operating system’s random generator failed.
KeyCommitment
The key commitment in the header differs from the one derived from the key.
Authentication
An authentication tag did not verify: the bytes were altered, truncated or reordered, or the key is wrong.
SegmentId
The BLAKE3 of the sealed segment differs from the expected segment id.
Signature
An Ed25519 signature or public key did not verify.
Compression(&'static str)
The compressed stream is invalid or does not meet the rules of the format.
Limit(&'static str)
A size or count exceeds a limit.
Io(ErrorKind)
A reader or writer failed.
SignerNotAccepted
A record’s signer is not accepted for its namespace under the current roster.
RosterVersionAhead
A record names a roster version newer than the current roster.
Mismatch(&'static str)
A record does not belong with the segment or dictionary it is opened against.
Roster(&'static str)
A roster failed verification or is malformed.
IdentityNotInRoster
The identity is not a member of the roster.
Keyring(&'static str)
The keyring does not unwrap to a root key for this roster.
Identity(&'static str)
An identity string or file is invalid or could not be unlocked.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()