Struct biscuit::jwk::OtherPrimesInfo
source · pub struct OtherPrimesInfo {
pub r: BigUint,
pub d: BigUint,
pub t: BigUint,
}
Expand description
The “oth” (other primes info) parameter contains an array of
information about any third and subsequent primes, should they exist.
When only two primes have been used (the normal case), this parameter
MUST be omitted. When three or more primes have been used, the
number of array elements MUST be the number of primes used minus two.
For more information on this case, see the description of the
OtherPrimeInfo
parameters in Appendix A.1.2 of RFC 3447,
upon which the following parameters are modeled. If the consumer of
a JWK does not support private keys with more than two primes and it
encounters a private key that includes the “oth” parameter, then it
MUST NOT use the key.
Fields§
§r: BigUint
The “r” (prime factor) parameter represents the value of a subsequent prime factor. It is serialized as a Base64urlUInt-encoded value.
d: BigUint
The “d” (factor CRT exponent) parameter represents the CRT exponent of the corresponding prime factor. It is serialized as a Base64urlUInt-encoded value.
t: BigUint
The “t” (factor CRT coefficient) parameter member represents the CRT coefficient of the corresponding prime factor.
Trait Implementations§
source§impl Clone for OtherPrimesInfo
impl Clone for OtherPrimesInfo
source§fn clone(&self) -> OtherPrimesInfo
fn clone(&self) -> OtherPrimesInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for OtherPrimesInfo
impl<'de> Deserialize<'de> for OtherPrimesInfo
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>,
source§impl PartialEq<OtherPrimesInfo> for OtherPrimesInfo
impl PartialEq<OtherPrimesInfo> for OtherPrimesInfo
source§fn eq(&self, other: &OtherPrimesInfo) -> bool
fn eq(&self, other: &OtherPrimesInfo) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for OtherPrimesInfo
impl Serialize for OtherPrimesInfo
impl Eq for OtherPrimesInfo
impl StructuralEq for OtherPrimesInfo
impl StructuralPartialEq for OtherPrimesInfo
Auto Trait Implementations§
impl RefUnwindSafe for OtherPrimesInfo
impl Send for OtherPrimesInfo
impl Sync for OtherPrimesInfo
impl Unpin for OtherPrimesInfo
impl UnwindSafe for OtherPrimesInfo
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.