Struct coset::CoseKey [−][src]
pub struct CoseKey {
pub kty: KeyType,
pub key_id: Vec<u8>,
pub alg: Option<Algorithm>,
pub key_ops: BTreeSet<KeyOperation>,
pub base_iv: Vec<u8>,
pub params: BTreeMap<Label, Value>,
}
Expand description
Structure representing a cryptographic key.
COSE_Key = {
1 => tstr / int, ; kty
? 2 => bstr, ; kid
? 3 => tstr / int, ; alg
? 4 => [+ (tstr / int) ], ; key_ops
? 5 => bstr, ; Base IV
* label => values
}
Fields
kty: KeyType
Key type identification.
key_id: Vec<u8>
Key identification.
alg: Option<Algorithm>
Key use restriction to this algorithm.
key_ops: BTreeSet<KeyOperation>
Restrict set of possible operations.
base_iv: Vec<u8>
Base IV to be xor-ed with partial IVs.
params: BTreeMap<Label, Value>
Any additional parameter values.
Trait Implementations
Create an object instance by reading serialized CBOR data from std::io::Read
instance.
Create an object instance from serialized CBOR data in a slice.
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CoseKey
impl UnwindSafe for CoseKey
Blanket Implementations
Mutably borrows from an owned value. Read more