Enum coset::iana::RsaKeyParameter
source · #[non_exhaustive]pub enum RsaKeyParameter {
N = -1,
E = -2,
D = -3,
P = -4,
Q = -5,
DP = -6,
DQ = -7,
QInv = -8,
Other = -9,
RI = -10,
DI = -11,
TI = -12,
}
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 = -1
The RSA modulus n
Associated value of type bstr
E = -2
The RSA public exponent e
Associated value of type bstr
D = -3
The RSA private exponent d
Associated value of type bstr
P = -4
The prime factor p of n
Associated value of type bstr
Q = -5
The prime factor q of n
Associated value of type bstr
DP = -6
dP is d mod (p - 1)
Associated value of type bstr
DQ = -7
dQ is d mod (q - 1)
Associated value of type bstr
QInv = -8
qInv is the CRT coefficient q^(-1) mod p
Associated value of type bstr
Other = -9
Other prime infos, an array
Associated value of type array
RI = -10
a prime factor r_i of n, where i >= 3
Associated value of type bstr
DI = -11
d_i = d mod (r_i - 1)
Associated value of type bstr
TI = -12
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 for RsaKeyParameter
impl PartialEq 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 for RsaKeyParameter
impl PartialOrd 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