Function sodoken::crypto_box::curve25519xchacha20poly1305::easy
source · pub async fn easy<N, M, P, S>(
nonce: N,
message: M,
dest_pub_key: P,
src_sec_key: S
) -> SodokenResult<BufRead>where
N: Into<BufReadSized<NONCEBYTES>> + 'static + Send,
M: Into<BufRead> + 'static + Send,
P: Into<BufReadSized<PUBLICKEYBYTES>> + 'static + Send,
S: Into<BufReadSized<SECRETKEYBYTES>> + 'static + Send,
Expand description
encrypt data with box_curve25519xchacha20poly1305_easy