Function askar_crypto::encrypt::crypto_box::crypto_box [−][src]
pub fn crypto_box<B: ResizeBuffer>(
recip_pk: &X25519KeyPair,
sender_sk: &X25519KeyPair,
buffer: &mut B,
nonce: &[u8]
) -> Result<(), Error>
This is supported on crate feature
crypto_box
only.Expand description
Encrypt a message into a crypto box with a given nonce