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>>,
}
Expand description

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.

Implementations

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

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.