pub enum SymmetricCipherError {
GenericError(&'static str),
AEADTagCheckFailed,
DecryptionFailed,
IncorrectOutputBufferLength(&'static str, usize),
KeyMaterialError(KeyMaterialError),
RNGError(RNGError),
StateError(&'static str),
}Expand description
Variants§
GenericError(&'static str)
AEADTagCheckFailed
DecryptionFailed
IncorrectOutputBufferLength(&'static str, usize)
Indicates that the output buffer is not large enough to hold the requested output. The usize represents the required buffer length.
KeyMaterialError(KeyMaterialError)
RNGError(RNGError)
StateError(&'static str)
Trait Implementations§
Source§impl Debug for SymmetricCipherError
impl Debug for SymmetricCipherError
Source§impl From<KeyMaterialError> for SymmetricCipherError
impl From<KeyMaterialError> for SymmetricCipherError
Source§fn from(e: KeyMaterialError) -> SymmetricCipherError
fn from(e: KeyMaterialError) -> SymmetricCipherError
Converts to this type from the input type.
Source§impl From<RNGError> for SymmetricCipherError
impl From<RNGError> for SymmetricCipherError
Source§fn from(e: RNGError) -> SymmetricCipherError
fn from(e: RNGError) -> SymmetricCipherError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SymmetricCipherError
impl RefUnwindSafe for SymmetricCipherError
impl Send for SymmetricCipherError
impl Sync for SymmetricCipherError
impl Unpin for SymmetricCipherError
impl UnsafeUnpin for SymmetricCipherError
impl UnwindSafe for SymmetricCipherError
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