#[non_exhaustive]pub enum KeyType {
Reserved = 0,
OKP = 1,
EC2 = 2,
RSA = 3,
Symmetric = 4,
HSS_LMS = 5,
WalnutDSA = 6,
}
Expand description
IANA-registered COSE key types.
From IANA registry https://www.iana.org/assignments/cose/cose.xhtml#key-type as of 2021-03-19.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Reserved = 0
This value is reserved
OKP = 1
Octet Key Pair
EC2 = 2
Elliptic Curve Keys w/ x- and y-coordinate pair
RSA = 3
RSA Key
Symmetric = 4
Symmetric Keys
HSS_LMS = 5
Public key for HSS/LMS hash-based digital signature
WalnutDSA = 6
WalnutDSA public key
Trait Implementations§
source§impl Ord for KeyType
impl Ord for KeyType
source§impl PartialEq for KeyType
impl PartialEq for KeyType
source§impl PartialOrd for KeyType
impl PartialOrd for KeyType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for KeyType
impl Eq for KeyType
impl StructuralPartialEq for KeyType
Auto Trait Implementations§
impl Freeze for KeyType
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnwindSafe for KeyType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more