Function crypto_box::seal
source · [−]pub fn seal<T>(
csprng: &mut T,
recipient_pk: &PublicKey,
plaintext: &[u8]
) -> Result<Vec<u8>, Error>where
T: RngCore + CryptoRng,
Available on crate feature
seal
only.Expand description
Implementation of crypto_box_seal
function from libsodium “sealed boxes”.
Sealed boxes are designed to anonymously send messages to a recipient given their public key.