pub struct CoseMac0 {
pub protected: ProtectedHeader,
pub unprotected: Header,
pub payload: Option<Vec<u8>>,
pub tag: Vec<u8>,
}
Expand description
Structure representing a message with authentication code (MAC) where the relevant key is implicit.
COSE_Mac0 = [
Headers,
payload : bstr / nil,
tag : bstr,
]
Fields§
§protected: ProtectedHeader
§unprotected: Header
§payload: Option<Vec<u8>>
§tag: Vec<u8>
Implementations§
source§impl CoseMac0
impl CoseMac0
Trait Implementations§
source§impl AsCborValue for CoseMac0
impl AsCborValue for CoseMac0
source§impl CborSerializable for CoseMac0
impl CborSerializable for CoseMac0
source§fn from_slice(slice: &[u8]) -> Result<Self>
fn from_slice(slice: &[u8]) -> Result<Self>
Create an object instance from serialized CBOR data in a slice. This method will fail (with
CoseError::ExtraneousData
) if there is additional CBOR data after the object.source§impl PartialEq for CoseMac0
impl PartialEq for CoseMac0
source§impl TaggedCborSerializable for CoseMac0
impl TaggedCborSerializable for CoseMac0
source§fn from_tagged_slice(slice: &[u8]) -> Result<Self>
fn from_tagged_slice(slice: &[u8]) -> Result<Self>
Create an object instance from serialized CBOR data in a slice, expecting an initial
tag value.
impl StructuralPartialEq for CoseMac0
Auto Trait Implementations§
impl Freeze for CoseMac0
impl RefUnwindSafe for CoseMac0
impl Send for CoseMac0
impl Sync for CoseMac0
impl Unpin for CoseMac0
impl UnwindSafe for CoseMac0
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)