[−][src]Enum koibumi_core::crypto::DecryptError
This error indicates that the decryption failed.
Variants
UnsupportedCurve(u16)
Indicates that the object was encrypted by using a curve unsupported by this implementation.
Indicates that at least one of the lengths of the components of the public key was invalid. The actual lengths of the components are returned as payloads of this variant.
Fields of InvalidKeyLength
An error was caught during initialization of the MAC verifier. The actual error caught is returned as a payload of this variant.
Indicates that the secret key is invalid.
An error was caught during verification of the MAC. The actual error caught is returned as a payload of this variant.
Secp256k1Error(Error)
An error was caught during a process using secp256k1. The actual error caught is returned as a payload of this variant.
BlockModeError(BlockModeError)
An error was caught during a process using a block mode. The actual error caught is returned as a payload of this variant.
Trait Implementations
impl Clone for DecryptError
[src]
pub fn clone(&self) -> DecryptError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DecryptError
[src]
impl Display for DecryptError
[src]
impl Error for DecryptError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<BlockModeError> for DecryptError
[src]
pub fn from(err: BlockModeError) -> Self
[src]
impl From<DecryptError> for DecryptError
[src]
pub fn from(err: DecryptError) -> Self
[src]
impl From<Error> for DecryptError
[src]
impl From<InvalidKeyLength> for DecryptError
[src]
impl From<MacError> for DecryptError
[src]
Auto Trait Implementations
impl RefUnwindSafe for DecryptError
[src]
impl Send for DecryptError
[src]
impl Sync for DecryptError
[src]
impl Unpin for DecryptError
[src]
impl UnwindSafe for DecryptError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,