Function coset::enc_structure_data

source ·
pub fn enc_structure_data(
    context: EncryptionContext,
    protected: ProtectedHeader,
    external_aad: &[u8]
) -> Vec<u8>
Expand description

Create a binary blob that will be signed.

 Enc_structure = [
     context : "Encrypt" / "Encrypt0" / "Enc_Recipient" /
         "Mac_Recipient" / "Rec_Recipient",
     protected : empty_or_serialized_map,
     external_aad : bstr
 ]