Enum coset::iana::HeaderParameter
source · #[non_exhaustive]pub enum HeaderParameter {
Show 16 variants
Reserved = 0,
Alg = 1,
Crit = 2,
ContentType = 3,
Kid = 4,
Iv = 5,
PartialIv = 6,
CounterSignature = 7,
CounterSignature0 = 9,
KidContext = 10,
X5Bag = 32,
X5Chain = 33,
X5T = 34,
X5U = 35,
CuphNonce = 256,
CuphOwnerPubKey = 257,
}
Expand description
IANA-registered COSE header parameters.
From IANA registry https://www.iana.org/assignments/cose/cose.xhtml#header-parameters as of 2021-03-19.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Reserved = 0
Reserved
Alg = 1
Cryptographic algorithm to use
Associated value of type int / tstr
Crit = 2
Critical headers to be understood
Associated value of type [+ label]
ContentType = 3
Content type of the payload
Associated value of type tstr / uint
Kid = 4
Key identifier
Associated value of type bstr
Iv = 5
Full Initialization Vector
Associated value of type bstr
PartialIv = 6
Partial Initialization Vector
Associated value of type bstr
CounterSignature = 7
CBOR-encoded signature structure
Associated value of type COSE_Signature / [+ COSE_Signature ]
CounterSignature0 = 9
Counter signature with implied signer and headers
Associated value of type bstr
KidContext = 10
Identifies the context for the key identifier
Associated value of type bstr
X5Bag = 32
An unordered bag of X.509 certificates
Associated value of type COSE_X509
X5Chain = 33
An ordered chain of X.509 certificates
Associated value of type COSE_X509
X5T = 34
Hash of an X.509 certificate
Associated value of type COSE_CertHash
X5U = 35
URI pointing to an X.509 certificate
Associated value of type uri
CuphNonce = 256
Challenge Nonce
Associated value of type bstr
CuphOwnerPubKey = 257
Public Key
Associated value of type array
Trait Implementations§
source§impl Clone for HeaderParameter
impl Clone for HeaderParameter
source§fn clone(&self) -> HeaderParameter
fn clone(&self) -> HeaderParameter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HeaderParameter
impl Debug for HeaderParameter
source§impl EnumI64 for HeaderParameter
impl EnumI64 for HeaderParameter
source§impl Ord for HeaderParameter
impl Ord for HeaderParameter
source§fn cmp(&self, other: &HeaderParameter) -> Ordering
fn cmp(&self, other: &HeaderParameter) -> 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 HeaderParameter
impl PartialEq for HeaderParameter
source§fn eq(&self, other: &HeaderParameter) -> bool
fn eq(&self, other: &HeaderParameter) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HeaderParameter
impl PartialOrd for HeaderParameter
source§fn partial_cmp(&self, other: &HeaderParameter) -> Option<Ordering>
fn partial_cmp(&self, other: &HeaderParameter) -> 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