pub enum EnvelopeError {
Version(u8),
Truncated(usize),
Decrypt,
NonContributory,
BadSignature,
Hex(FromHexError),
KeyLength(usize),
}Expand description
Errors from envelope operations.
Variants§
Version(u8)
Blob’s leading version byte is not one we understand.
Truncated(usize)
Blob is structurally too short for its layout.
Decrypt
AEAD decryption failed (wrong key, tampered ciphertext, or wrong AAD context).
NonContributory
The ECDH shared secret was the all-zero point (non-contributory peer key — a small-order or identity public key).
BadSignature
The embedded Ed25519 signature did not verify against the sender key and context.
Hex(FromHexError)
Hex decoding of a revealed message key failed.
KeyLength(usize)
A revealed message key had the wrong length.
Trait Implementations§
Source§impl Debug for EnvelopeError
impl Debug for EnvelopeError
Source§impl Display for EnvelopeError
impl Display for EnvelopeError
Source§impl Error for EnvelopeError
impl Error for EnvelopeError
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<FromHexError> for EnvelopeError
impl From<FromHexError> for EnvelopeError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EnvelopeError
impl RefUnwindSafe for EnvelopeError
impl Send for EnvelopeError
impl Sync for EnvelopeError
impl Unpin for EnvelopeError
impl UnsafeUnpin for EnvelopeError
impl UnwindSafe for EnvelopeError
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