[][src]Struct biscuit::jwk::RSAKeyParameters

pub struct RSAKeyParameters {
    pub key_type: RSAKeyType,
    pub n: BigUint,
    pub e: BigUint,
    pub d: Option<BigUint>,
    pub p: Option<BigUint>,
    pub q: Option<BigUint>,
    pub dp: Option<BigUint>,
    pub dq: Option<BigUint>,
    pub qi: Option<BigUint>,
    pub other_primes_info: Option<Vec<OtherPrimesInfo>>,
}

Parameters for a RSA Key

Fields

key_type: RSAKeyType

Key type value for a RSA Key

n: BigUint

The "n" (modulus) parameter contains the modulus value for the RSA public key. It is serialized as a Base64urlUInt-encoded value.

e: BigUint

The "e" (exponent) parameter contains the exponent value for the RSA public key. It is serialized as a Base64urlUInt-encoded value.

d: Option<BigUint>

The "d" (private exponent) parameter contains the private exponent value for the RSA private key. It is serialized as a Base64urlUInt-encoded value.

p: Option<BigUint>

The "p" (first prime factor) parameter contains the first prime factor. It is serialized as a Base64urlUInt-encoded value.

q: Option<BigUint>

The "q" (second prime factor) parameter contains the second prime factor. It is serialized as a Base64urlUInt-encoded value.

dp: Option<BigUint>

The "dp" (first factor CRT exponent) parameter contains the Chinese Remainder Theorem (CRT) exponent of the first factor. It is serialized as a Base64urlUInt-encoded value.

dq: Option<BigUint>

The "dq" (second factor CRT exponent) parameter contains the CRT exponent of the second factor. It is serialized as a Base64urlUInt-encoded value.

qi: Option<BigUint>

The "qi" (first CRT coefficient) parameter contains the CRT coefficient of the second factor It is serialized as a Base64urlUInt-encoded value.

other_primes_info: Option<Vec<OtherPrimesInfo>>

The "oth" (other primes info) parameter contains an array of information about any third and subsequent primes, should they exist.

Methods

impl RSAKeyParameters[src]

pub fn jws_public_key_secret(&self) -> Secret[src]

Construct a jws::Secret RSA public key for signature verification

Trait Implementations

impl From<RSAKeyParameters> for Secret[src]

impl PartialEq<RSAKeyParameters> for RSAKeyParameters[src]

impl Clone for RSAKeyParameters[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for RSAKeyParameters[src]

impl Eq for RSAKeyParameters[src]

impl Serialize for RSAKeyParameters[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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

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

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

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

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