Function box_stream::crypto::decrypt_header [] [src]

#[must_use]
pub unsafe fn decrypt_header(
    out: &mut PlainHeader,
    cypher_header: &[u8; 34],
    decryption_key: &[u8; 32],
    nonce: &mut [u8; 24]
) -> bool

If this returns true, it decrypts a received header into out. Returns false if the cyper_header was invalid.