Function libsignal_protocol::sealed_sender_encrypt
source ยท pub async fn sealed_sender_encrypt<R: Rng + CryptoRng>(
destination: &ProtocolAddress,
sender_cert: &SenderCertificate,
ptext: &[u8],
session_store: &mut dyn SessionStore,
identity_store: &mut dyn IdentityKeyStore,
now: SystemTime,
rng: &mut R,
) -> Result<Vec<u8>>
Expand description
Encrypt the plaintext message ptext
, generate an UnidentifiedSenderMessageContent
, then
pass the result to sealed_sender_encrypt_from_usmc
.
This is a simple way to encrypt a message in a 1:1 using Sealed Sender v1.