pub struct PrivateComponents {
pub n: Vec<u8>,
pub e: Vec<u8>,
pub d: Zeroizing<Vec<u8>>,
pub p: Zeroizing<Vec<u8>>,
pub q: Zeroizing<Vec<u8>>,
pub iqmp: Zeroizing<Vec<u8>>,
}Expand description
Big-endian, minimal-length private key components. Secret parts are zeroized on drop.
Fields§
§n: Vec<u8>Modulus.
e: Vec<u8>Public exponent.
d: Zeroizing<Vec<u8>>Private exponent.
p: Zeroizing<Vec<u8>>First prime.
q: Zeroizing<Vec<u8>>Second prime.
iqmp: Zeroizing<Vec<u8>>CRT coefficient q^-1 mod p.
Auto Trait Implementations§
impl Freeze for PrivateComponents
impl RefUnwindSafe for PrivateComponents
impl Send for PrivateComponents
impl Sync for PrivateComponents
impl Unpin for PrivateComponents
impl UnsafeUnpin for PrivateComponents
impl UnwindSafe for PrivateComponents
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more