Function lair_keystore::dependencies::hc_seed_bundle::dependencies::sodoken::crypto_box::curve25519xsalsa20poly1305::easy
[−]pub async fn easy<N, M, P, S>(
nonce: N,
message: M,
dest_pub_key: P,
src_sec_key: S
) -> Result<BufRead, OneErr> where
N: 'static + Into<BufReadSized<{_: usize}>> + Send,
M: 'static + Into<BufRead> + Send,
P: 'static + Into<BufReadSized<{_: usize}>> + Send,
S: 'static + Into<BufReadSized<{_: usize}>> + Send,
Expand description
encrypt data with box_curve25519xsalsa20poly1305_easy