pub fn deconstruct_header_body(
    encrypted_packets: Vec<Vec<u8>>,
    keys: &[Keys],
    sender_pubkey: &Option<Vec<u8>>
) -> Result<DecryptedHeaderPackets, Crypt4GHError>
Expand description

Gets data packets and edit list packets from the encrypted packets.

Decrypts the encrypted packets and partitions the encrypted packets in two groups, the data packets and the edit list packets. Finally, it parses the packets.