Function coset::sig_structure_data
source · pub fn sig_structure_data(
context: SignatureContext,
body: ProtectedHeader,
sign: Option<ProtectedHeader>,
aad: &[u8],
payload: &[u8]
) -> Vec<u8>
Expand description
Create a binary blob that will be signed.
Sig_structure = [
context : "Signature" / "Signature1" / "CounterSignature",
body_protected : empty_or_serialized_map,
? sign_protected : empty_or_serialized_map,
external_aad : bstr,
payload : bstr
]