#[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§impl PartialOrd for HeaderAlgorithmParameter
impl PartialOrd for HeaderAlgorithmParameter
impl Copy for HeaderAlgorithmParameter
impl Eq for HeaderAlgorithmParameter
impl StructuralPartialEq for HeaderAlgorithmParameter
Auto Trait Implementations§
impl Freeze for HeaderAlgorithmParameter
impl RefUnwindSafe for HeaderAlgorithmParameter
impl Send for HeaderAlgorithmParameter
impl Sync for HeaderAlgorithmParameter
impl Unpin for HeaderAlgorithmParameter
impl UnwindSafe for HeaderAlgorithmParameter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.