Function sodoken::crypto_box::curve25519xsalsa20poly1305::open_easy
source · pub async fn open_easy<N, M, C, P, S>(
nonce: N,
message: M,
cipher: C,
src_pub_key: P,
dest_sec_key: S
) -> SodokenResult<()>where
N: Into<BufReadSized<NONCEBYTES>> + 'static + Send,
M: Into<BufWrite> + 'static + Send,
C: Into<BufRead> + 'static + Send,
P: Into<BufReadSized<PUBLICKEYBYTES>> + 'static + Send,
S: Into<BufReadSized<SECRETKEYBYTES>> + 'static + Send,
Expand description
decrypt data with box_curve25519xsalsa20poly1305_open_easy