Function lair_keystore::dependencies::sodoken::crypto_box::curve25519xchacha20poly1305::seal
[−]pub async fn seal<C, M, P>(
cipher: C,
message: M,
dest_pub_key: P
) -> Result<(), OneErr> where
C: 'static + Into<BufWrite> + Send,
M: 'static + Into<BufRead> + Send,
P: 'static + Into<BufReadSized<{_: usize}>> + Send,
Expand description
seal (encrypt) a message with an ephemeral key that can’t even be decrypted by this sender.