Enum coset::iana::HeaderAlgorithmParameter
source · #[non_exhaustive]pub enum HeaderAlgorithmParameter {
PartyVOther = -26,
PartyVNonce = -25,
PartyVIdentity = -24,
PartyUOther = -23,
PartyUNonce = -22,
PartyUIdentity = -21,
Salt = -20,
StaticKeyId = -3,
StaticKey = -2,
EphemeralKey = -1,
}
Expand description
IANA-registered COSE header algorithm parameters.
From IANA registry https://www.iana.org/assignments/cose/cose.xhtml#header-algorithm-parameters as of 2021-03-19.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PartyVOther = -26
Party V other provided information
Associated value of type bstr
PartyVNonce = -25
Party V provided nonce
Associated value of type bstr / int
PartyVIdentity = -24
Party V identity information
Associated value of type bstr
PartyUOther = -23
Party U other provided information
Associated value of type bstr
PartyUNonce = -22
Party U provided nonce
Associated value of type bstr / int
PartyUIdentity = -21
Party U identity information
Associated value of type bstr
Salt = -20
Random salt
Associated value of type bstr
StaticKeyId = -3
Static public key identifier for the sender
Associated value of type bstr
StaticKey = -2
Static public key for the sender
Associated value of type COSE_Key
EphemeralKey = -1
Ephemeral public key for the sender
Associated value of type COSE_Key
Trait Implementations§
source§impl Clone for HeaderAlgorithmParameter
impl Clone for HeaderAlgorithmParameter
source§fn clone(&self) -> HeaderAlgorithmParameter
fn clone(&self) -> HeaderAlgorithmParameter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HeaderAlgorithmParameter
impl Debug for HeaderAlgorithmParameter
source§impl EnumI64 for HeaderAlgorithmParameter
impl EnumI64 for HeaderAlgorithmParameter
source§impl Ord for HeaderAlgorithmParameter
impl Ord for HeaderAlgorithmParameter
source§fn cmp(&self, other: &HeaderAlgorithmParameter) -> Ordering
fn cmp(&self, other: &HeaderAlgorithmParameter) -> 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 HeaderAlgorithmParameter
impl PartialEq for HeaderAlgorithmParameter
source§fn eq(&self, other: &HeaderAlgorithmParameter) -> bool
fn eq(&self, other: &HeaderAlgorithmParameter) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HeaderAlgorithmParameter
impl PartialOrd for HeaderAlgorithmParameter
source§fn partial_cmp(&self, other: &HeaderAlgorithmParameter) -> Option<Ordering>
fn partial_cmp(&self, other: &HeaderAlgorithmParameter) -> 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