Struct jwt_compact::jwk::RsaPrivateParts
source · pub struct RsaPrivateParts<'a> {
pub private_exponent: SecretBytes<'a>,
pub prime_factor_p: SecretBytes<'a>,
pub prime_factor_q: SecretBytes<'a>,
pub p_crt_exponent: Option<SecretBytes<'a>>,
pub q_crt_exponent: Option<SecretBytes<'a>>,
pub q_crt_coefficient: Option<SecretBytes<'a>>,
pub other_prime_factors: Vec<RsaPrimeFactor<'a>>,
}
Expand description
Parts of JsonWebKey::Rsa
that are specific to private keys.
§Serialization
Fields of this struct are serialized using the big endian presentation
with the minimum necessary number of bytes. See JsonWebKey
notes
on encoding.
Fields§
§private_exponent: SecretBytes<'a>
Private exponent (d
).
prime_factor_p: SecretBytes<'a>
First prime factor (p
).
prime_factor_q: SecretBytes<'a>
Second prime factor (q
).
p_crt_exponent: Option<SecretBytes<'a>>
First factor CRT exponent (dp
).
q_crt_exponent: Option<SecretBytes<'a>>
Second factor CRT exponent (dq
).
q_crt_coefficient: Option<SecretBytes<'a>>
CRT coefficient of the second factor (qi
).
other_prime_factors: Vec<RsaPrimeFactor<'a>>
Other prime factors.
Trait Implementations§
source§impl<'a> Clone for RsaPrivateParts<'a>
impl<'a> Clone for RsaPrivateParts<'a>
source§fn clone(&self) -> RsaPrivateParts<'a>
fn clone(&self) -> RsaPrivateParts<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for RsaPrivateParts<'a>
impl<'a> Debug for RsaPrivateParts<'a>
source§impl<'de, 'a> Deserialize<'de> for RsaPrivateParts<'a>
impl<'de, 'a> Deserialize<'de> for RsaPrivateParts<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq for RsaPrivateParts<'a>
impl<'a> PartialEq for RsaPrivateParts<'a>
source§fn eq(&self, other: &RsaPrivateParts<'a>) -> bool
fn eq(&self, other: &RsaPrivateParts<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for RsaPrivateParts<'a>
impl<'a> Serialize for RsaPrivateParts<'a>
impl<'a> StructuralPartialEq for RsaPrivateParts<'a>
Auto Trait Implementations§
impl<'a> Freeze for RsaPrivateParts<'a>
impl<'a> RefUnwindSafe for RsaPrivateParts<'a>
impl<'a> Send for RsaPrivateParts<'a>
impl<'a> Sync for RsaPrivateParts<'a>
impl<'a> Unpin for RsaPrivateParts<'a>
impl<'a> UnwindSafe for RsaPrivateParts<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)