Enum coset::iana::RsaKeyParameter
source · #[non_exhaustive]pub enum RsaKeyParameter {
N,
E,
D,
P,
Q,
DP,
DQ,
QInv,
Other,
RI,
DI,
TI,
}
Expand description
IANA-registered COSE key parameters for keys of type KeyType::RSA
.
From IANA registry https://www.iana.org/assignments/cose/cose.xhtml#key-type-parameters as of 2021-03-19.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
N
The RSA modulus n
Associated value of type bstr
E
The RSA public exponent e
Associated value of type bstr
D
The RSA private exponent d
Associated value of type bstr
P
The prime factor p of n
Associated value of type bstr
Q
The prime factor q of n
Associated value of type bstr
DP
dP is d mod (p - 1)
Associated value of type bstr
DQ
dQ is d mod (q - 1)
Associated value of type bstr
QInv
qInv is the CRT coefficient q^(-1) mod p
Associated value of type bstr
Other
Other prime infos, an array
Associated value of type array
RI
a prime factor r_i of n, where i >= 3
Associated value of type bstr
DI
d_i = d mod (r_i - 1)
Associated value of type bstr
TI
The CRT coefficient t_i = (r_1 * r_2 * … * r_(i-1))^(-1) mod r_i
Associated value of type bstr
Trait Implementations§
source§impl Clone for RsaKeyParameter
impl Clone for RsaKeyParameter
source§fn clone(&self) -> RsaKeyParameter
fn clone(&self) -> RsaKeyParameter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RsaKeyParameter
impl Debug for RsaKeyParameter
source§impl EnumI64 for RsaKeyParameter
impl EnumI64 for RsaKeyParameter
source§impl Ord for RsaKeyParameter
impl Ord for RsaKeyParameter
source§fn cmp(&self, other: &RsaKeyParameter) -> Ordering
fn cmp(&self, other: &RsaKeyParameter) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<RsaKeyParameter> for RsaKeyParameter
impl PartialEq<RsaKeyParameter> for RsaKeyParameter
source§fn eq(&self, other: &RsaKeyParameter) -> bool
fn eq(&self, other: &RsaKeyParameter) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RsaKeyParameter> for RsaKeyParameter
impl PartialOrd<RsaKeyParameter> for RsaKeyParameter
source§fn partial_cmp(&self, other: &RsaKeyParameter) -> Option<Ordering>
fn partial_cmp(&self, other: &RsaKeyParameter) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more