Function nacl::secret_box::format_wn::pack[][src]

pub fn pack(m: &[u8], n: &[u8], k: &[u8]) -> Result<Vec<u8>, Error>
Expand description

This function packs given message into with-nonce layout, which is nonce, followed by poly1305 hash, followed by xsalsa20 cipher.