pub enum ArxKwError {
InvalidLength(InvalidLengthError),
ChaChaError(String),
BadTags,
InvalidBlobLength(usize),
AllocationFailed,
InvalidEnvelope,
ContextTooLong,
KeyDerivationFailed,
}Expand description
The error type used by this crate.
Variants§
InvalidLength(InvalidLengthError)
ChaChaError(String)
Occurs if a function using either ChaCha8 or XChaCha8 reaches the end of the stream
BadTags
Returns if an authentication tag mismatch occurs during decryption
InvalidBlobLength(usize)
A blob must contain at least its 16-byte authentication tag.
AllocationFailed
The allocator rejected an output buffer request.
InvalidEnvelope
Envelope magic, version, variant, or reserved bytes are invalid.
ContextTooLong
Application context exceeds the documented maximum.
KeyDerivationFailed
HKDF could not produce a key of the requested size.
Trait Implementations§
Source§impl Debug for ArxKwError
impl Debug for ArxKwError
Source§impl Display for ArxKwError
impl Display for ArxKwError
Source§impl Error for ArxKwError
impl Error for ArxKwError
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<InvalidLengthError> for ArxKwError
impl From<InvalidLengthError> for ArxKwError
Source§fn from(source: InvalidLengthError) -> Self
fn from(source: InvalidLengthError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArxKwError
impl RefUnwindSafe for ArxKwError
impl Send for ArxKwError
impl Sync for ArxKwError
impl Unpin for ArxKwError
impl UnsafeUnpin for ArxKwError
impl UnwindSafe for ArxKwError
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