pub enum OperationError {
KeyExpansionFailed(KeyExpansionError),
EmptyTarget,
InvalidTargetSize,
}
Expand description
An error produced during an encryption/decryption.
Variants§
KeyExpansionFailed(KeyExpansionError)
The key expansion failed.
EmptyTarget
The provided target had no data.
InvalidTargetSize
The given target’s data is less than the block size for AES, and thus cannot be fed to the encryption/decryption algorithm.
For decryption, the target’s data is most likely not a result of an AES encryption.
For encryption, consider applying pkcs5_padding to the target’s data before using encrypt.
Trait Implementations§
Source§impl Debug for OperationError
impl Debug for OperationError
Source§impl PartialEq for OperationError
impl PartialEq for OperationError
impl StructuralPartialEq for OperationError
Auto Trait Implementations§
impl Freeze for OperationError
impl RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnwindSafe for OperationError
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