pub fn reencrypt(
header_packets: Vec<Vec<u8>>,
keys: &[Keys],
recipient_keys: &HashSet<Keys>,
trim: bool
) -> Result<Vec<Vec<u8>>, Crypt4GHError>
Expand description
Reencrypts the header.
Decrypts the header using the keys
and then, encrypts the content again for every
key in recipient_keys
. If trim is specified, the packets that cannot be decrypted are discarded.