Enum jwt_compact::alg::RsaError
source · #[non_exhaustive]pub enum RsaError {
Show 20 variants
InvalidPaddingScheme,
Decryption,
Verification,
MessageTooLong,
InputNotHashed,
NprimesTooSmall,
TooFewPrimes,
InvalidPrime,
InvalidModulus,
InvalidExponent,
InvalidCoefficient,
ModulusTooLarge,
PublicExponentTooSmall,
PublicExponentTooLarge,
Pkcs1(Error),
Pkcs8(Error),
Internal,
LabelTooLong,
InvalidPadLen,
InvalidArguments,
}
Available on crate feature
rsa
only.Expand description
Error types
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidPaddingScheme
Invalid padding scheme.
Decryption
Decryption error.
Verification
Verification error.
MessageTooLong
Message too long.
InputNotHashed
Input must be hashed.
NprimesTooSmall
Number of primes must be 2 or greater.
TooFewPrimes
Too few primes of a given length to generate an RSA key.
InvalidPrime
Invalid prime value.
InvalidModulus
Invalid modulus.
InvalidExponent
Invalid exponent.
InvalidCoefficient
Invalid coefficient.
ModulusTooLarge
Modulus too large.
PublicExponentTooSmall
Public exponent too small.
PublicExponentTooLarge
Public exponent too large.
Pkcs1(Error)
PKCS#1 error.
Pkcs8(Error)
PKCS#8 error.
Internal
Internal error.
LabelTooLong
Label too long.
InvalidPadLen
Invalid padding length.
InvalidArguments
Invalid arguments.
Trait Implementations§
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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