[][src]Struct biscuit::jwk::OtherPrimesInfo

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]

impl<'de> Deserialize<'de> for OtherPrimesInfo[src]

impl Eq for OtherPrimesInfo[src]

impl PartialEq<OtherPrimesInfo> for OtherPrimesInfo[src]

impl Serialize for OtherPrimesInfo[src]

impl StructuralEq for OtherPrimesInfo[src]

impl StructuralPartialEq for OtherPrimesInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.