Function lair_keystore::dependencies::sodoken::secretbox::xsalsa20poly1305::easy
[−]pub async fn easy<N, M, K>(
nonce: N,
message: M,
shared_key: K
) -> Result<BufRead, OneErr> where
N: 'static + Into<BufReadSized<{_: usize}>> + Send,
M: 'static + Into<BufRead> + Send,
K: 'static + Into<BufReadSized<{_: usize}>> + Send,
Expand description
encrypt data with crytpo_secretbox_xsalsa20poly1305_easy