pub enum RsaKeyError {
Io(Error),
Parse(String),
WrongSize(usize),
Crypto(String),
MissingComponent(&'static str),
}Expand description
Why obtaining RSA key parts failed. The Display strings are user-facing.
Variants§
Io(Error)
Reading the key file failed.
Parse(String)
The key could not be parsed as PKCS#1 or PKCS#8 (PEM or DER).
WrongSize(usize)
The key is not RSA-2048 (carries the actual modulus bit length).
Crypto(String)
Key generation or CRT precompute failed inside the rsa crate.
MissingComponent(&'static str)
A required component was missing after CRT precompute.
Trait Implementations§
Source§impl Debug for RsaKeyError
impl Debug for RsaKeyError
Source§impl Display for RsaKeyError
impl Display for RsaKeyError
Source§impl Error for RsaKeyError
impl Error for RsaKeyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl !RefUnwindSafe for RsaKeyError
impl !UnwindSafe for RsaKeyError
impl Freeze for RsaKeyError
impl Send for RsaKeyError
impl Sync for RsaKeyError
impl Unpin for RsaKeyError
impl UnsafeUnpin for RsaKeyError
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