pub struct EncProtectedHeader {
pub algorithm: i64,
pub kid: Fingerprint,
}Available on crate feature
cose only.Expand description
Protected header for CoseEncrypt0.
Fields§
§algorithm: i64Algorithm identifier (COSE header label 1)
kid: FingerprintKey identifier - recipient’s fingerprint (COSE header label 4)
Trait Implementations§
Source§impl Clone for EncProtectedHeader
impl Clone for EncProtectedHeader
Source§impl Debug for EncProtectedHeader
impl Debug for EncProtectedHeader
Source§impl Decode for EncProtectedHeader
impl Decode for EncProtectedHeader
Source§impl Encode for EncProtectedHeader
impl Encode for EncProtectedHeader
impl Eq for EncProtectedHeader
Source§impl MapDecode for EncProtectedHeader
impl MapDecode for EncProtectedHeader
Source§fn cbor_map_keys() -> &'static [i64]
fn cbor_map_keys() -> &'static [i64]
Available on crate feature
cbor only.Returns the map keys this type consumes, sorted by
cbor_key_cmp.Source§fn decode_map<'a, E: MapEntryAccess<'a>>(entries: &mut E) -> Result<Self, Error>
fn decode_map<'a, E: MapEntryAccess<'a>>(entries: &mut E) -> Result<Self, Error>
Available on crate feature
cbor only.Builds the value from the entries it claims, leaving the rest in place.
Source§impl MapEncode for EncProtectedHeader
impl MapEncode for EncProtectedHeader
Source§fn encode_map(&self, enc: &mut MapEncodeBuffer) -> Result<(), Error>
fn encode_map(&self, enc: &mut MapEncodeBuffer) -> Result<(), Error>
Available on crate feature
cbor only.Appends this value’s map entries to the shared buffer, key by key.
Source§impl PartialEq for EncProtectedHeader
impl PartialEq for EncProtectedHeader
impl StructuralPartialEq for EncProtectedHeader
Auto Trait Implementations§
impl Freeze for EncProtectedHeader
impl RefUnwindSafe for EncProtectedHeader
impl Send for EncProtectedHeader
impl Sync for EncProtectedHeader
impl Unpin for EncProtectedHeader
impl UnsafeUnpin for EncProtectedHeader
impl UnwindSafe for EncProtectedHeader
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
Mutably borrows from an owned value. Read more