Function coset::mac_structure_data
source · pub fn mac_structure_data(
context: MacContext,
protected: ProtectedHeader,
external_aad: &[u8],
payload: &[u8]
) -> Vec<u8>
Expand description
Create a binary blob that will be signed.
MAC_structure = [
context : "MAC" / "MAC0",
protected : empty_or_serialized_map,
external_aad : bstr,
payload : bstr
]