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

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 value for a RSA Key

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

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

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

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

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

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.

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

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

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

Trait Implementations

impl Clone for RSAKeyParameters
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for RSAKeyParameters
[src]

impl PartialEq for RSAKeyParameters
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for RSAKeyParameters
[src]

[src]

Returns the "default value" for a type. Read more