pub struct CoseMac {
pub protected: ProtectedHeader,
pub unprotected: Header,
pub payload: Option<Vec<u8>>,
pub tag: Vec<u8>,
pub recipients: Vec<CoseRecipient>,
}
Expand description
Structure representing a message with authentication code (MAC).
COSE_Mac = [
Headers,
payload : bstr / nil,
tag : bstr,
recipients :[+COSE_recipient]
]
Fields§
§protected: ProtectedHeader
§unprotected: Header
§payload: Option<Vec<u8>>
§tag: Vec<u8>
§recipients: Vec<CoseRecipient>
Implementations§
Trait Implementations§
Source§impl AsCborValue for CoseMac
impl AsCborValue for CoseMac
Source§impl CborSerializable for CoseMac
impl CborSerializable for CoseMac
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 TaggedCborSerializable for CoseMac
impl TaggedCborSerializable for CoseMac
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 CoseMac
Auto Trait Implementations§
impl Freeze for CoseMac
impl RefUnwindSafe for CoseMac
impl Send for CoseMac
impl Sync for CoseMac
impl Unpin for CoseMac
impl UnwindSafe for CoseMac
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