pub fn encrypt_stream_frames_with_rng<R>(
plaintext: &[u8],
stream_id: Uuid,
sender_public_key: PublicKey<33>,
recipient_public_key: PublicKey<33>,
max_plaintext_frame_len: usize,
rng: R,
) -> Result<E2eStreamFrames<'_, R>, Error>where
R: RngCore,Expand description
Encrypt a byte slice lazily into direct-ElGamal E2E stream frames.