logo
pub struct OtherPrimeInfo<'a> {
    pub prime: UIntRef<'a>,
    pub exponent: UIntRef<'a>,
    pub coefficient: UIntRef<'a>,
}
Available on crate feature alloc only.
Expand description

PKCS#1 OtherPrimeInfo as defined in RFC 8017 Appendix 1.2.

ASN.1 structure containing an additional prime in a multi-prime RSA key.

OtherPrimeInfo ::= SEQUENCE {
    prime             INTEGER,  -- ri
    exponent          INTEGER,  -- di
    coefficient       INTEGER   -- ti
}

Fields

prime: UIntRef<'a>

Prime factor r_i of n, where i >= 3.

exponent: UIntRef<'a>

Exponent: d_i = d mod (r_i - 1).

coefficient: UIntRef<'a>

CRT coefficient: t_i = (r_1 * r_2 * ... * r_(i-1))^(-1) mod r_i.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Attempt to decode this message using the provided Decoder.

Call the provided function with a slice of Encode trait objects representing the fields of this SEQUENCE. 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

Is the provided Tag decodable as a variant of this CHOICE?

Attempt to decode this message using the provided decoder.

Parse Self from the provided DER-encoded byte slice.

Compute the length of this value in bytes when encoded as ASN.1 DER.

Encode this value as ASN.1 DER using the provided Encoder.

Encode this value to the provided byte slice, returning a sub-slice containing the encoded message. Read more

Encode this message as ASN.1 DER, appending it to the provided byte vector. Read more

Serialize this message as a byte vector.

Compute the length of this value (sans [Tag]+Length header) when encoded as ASN.1 DER. Read more

Encode value (sans [Tag]+Length header) as ASN.1 DER using the provided Encoder. Read more

Get the Header used to encode this value.

ASN.1 tag

Returns the argument unchanged.

Calls U::from(self).

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

Get the ASN.1 tag that this type is encoded with.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.