Struct biscuit::jwk::OtherPrimesInfo
[−]
[src]
pub struct OtherPrimesInfo { pub r: BigUint, pub d: BigUint, pub t: BigUint, }
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
impl Clone for OtherPrimesInfo
[src]
fn clone(&self) -> OtherPrimesInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for OtherPrimesInfo
[src]
impl PartialEq for OtherPrimesInfo
[src]
fn eq(&self, __arg_0: &OtherPrimesInfo) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OtherPrimesInfo) -> bool
This method tests for !=
.