pub enum CryptoCoreError {
Show 20 variants
CiphertextTooSmallError {
ciphertext_len: usize,
min: u64,
},
CiphertextTooBigError {
ciphertext_len: usize,
max: u64,
},
ConversionError(String),
DecryptionError,
DeserializationEmptyError,
DeserializationSizeError {
given: usize,
expected: usize,
},
EllipticCurveError(String),
EncryptionError,
GenericDeserializationError(String),
InvalidBytesLength(String, usize, Option<usize>),
PlaintextTooBigError {
plaintext_len: usize,
max: u64,
},
Certificate(String),
Pkcs8Error(String),
ReadLeb128Error(Error),
RsaError(String),
SerializationIoError {
bytes_len: usize,
error: Error,
},
SignatureError(String),
StreamCipherError(String),
TryFromSliceError(TryFromSliceError),
WriteLeb128Error {
value: u64,
error: Error,
},
}
Expand description
Error type for this crate.
Variants§
CiphertextTooSmallError
CiphertextTooBigError
ConversionError(String)
DecryptionError
DeserializationEmptyError
DeserializationSizeError
EllipticCurveError(String)
EncryptionError
GenericDeserializationError(String)
InvalidBytesLength(String, usize, Option<usize>)
PlaintextTooBigError
Certificate(String)
Pkcs8Error(String)
ReadLeb128Error(Error)
RsaError(String)
SerializationIoError
SignatureError(String)
StreamCipherError(String)
TryFromSliceError(TryFromSliceError)
WriteLeb128Error
Trait Implementations§
source§impl Debug for CryptoCoreError
impl Debug for CryptoCoreError
source§impl Display for CryptoCoreError
impl Display for CryptoCoreError
source§impl Error for CryptoCoreError
impl Error for CryptoCoreError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for CryptoCoreError
impl From<Error> for CryptoCoreError
source§impl From<Error> for CryptoCoreError
impl From<Error> for CryptoCoreError
source§impl From<Error> for CryptoCoreError
impl From<Error> for CryptoCoreError
source§impl From<Error> for CryptoCoreError
impl From<Error> for CryptoCoreError
source§impl From<Error> for CryptoCoreError
impl From<Error> for CryptoCoreError
source§impl From<Error> for CryptoCoreError
impl From<Error> for CryptoCoreError
source§impl From<Error> for CryptoCoreError
impl From<Error> for CryptoCoreError
source§impl From<Error> for CryptoCoreError
impl From<Error> for CryptoCoreError
source§impl From<TryFromSliceError> for CryptoCoreError
impl From<TryFromSliceError> for CryptoCoreError
source§fn from(e: TryFromSliceError) -> Self
fn from(e: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CryptoCoreError
impl !RefUnwindSafe for CryptoCoreError
impl Send for CryptoCoreError
impl Sync for CryptoCoreError
impl Unpin for CryptoCoreError
impl !UnwindSafe for CryptoCoreError
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