pub fn oaep_encrypt(
pk: &RsaPublicKey,
msg: &[u8],
label: &[u8],
rng: &mut dyn FnMut(&mut [u8]),
) -> Vec<u8> ⓘExpand description
OAEP encrypt a message with RSA using SHA-256 for both the label hash
and MGF1 (convenience wrapper over oaep_encrypt_with).
label can be empty (common case). rng fills buffers with random bytes.