pub fn pkcs1v15_encrypt(
pk: &RsaPublicKey,
msg: &[u8],
rng: &mut dyn FnMut(&mut [u8]),
) -> Vec<u8> ⓘExpand description
PKCS#1 v1.5 encryption.
Pads msg and encrypts with pk. rng fills buffers with random bytes.
Returns the ciphertext as a byte vector of length equal to the modulus.