Function crypt4gh::encrypt_header[][src]

pub fn encrypt_header(
    recipient_keys: &HashSet<Keys>,
    session_key: &Option<[u8; 32]>
) -> Result<Vec<u8>>

Builds a header with a random session key

Returns the encrypted header bytes