Enum coset::iana::HeaderAlgorithmParameter
source · #[non_exhaustive]pub enum HeaderAlgorithmParameter {
PartyVOther,
PartyVNonce,
PartyVIdentity,
PartyUOther,
PartyUNonce,
PartyUIdentity,
Salt,
StaticKeyId,
StaticKey,
EphemeralKey,
}
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
Party V other provided information
Associated value of type bstr
PartyVNonce
Party V provided nonce
Associated value of type bstr / int
PartyVIdentity
Party V identity information
Associated value of type bstr
PartyUOther
Party U other provided information
Associated value of type bstr
PartyUNonce
Party U provided nonce
Associated value of type bstr / int
PartyUIdentity
Party U identity information
Associated value of type bstr
Salt
Random salt
Associated value of type bstr
StaticKeyId
Static public key identifier for the sender
Associated value of type bstr
StaticKey
Static public key for the sender
Associated value of type COSE_Key
EphemeralKey
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<HeaderAlgorithmParameter> for HeaderAlgorithmParameter
impl PartialEq<HeaderAlgorithmParameter> 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<HeaderAlgorithmParameter> for HeaderAlgorithmParameter
impl PartialOrd<HeaderAlgorithmParameter> 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