pkcs1v15_encrypt_pad

Function pkcs1v15_encrypt_pad 

Source
pub(crate) fn pkcs1v15_encrypt_pad<R>(
    rng: &mut R,
    msg: &[u8],
    k: usize,
) -> Result<Zeroizing<Vec<u8>>>
where R: CryptoRngCore + ?Sized,
Expand description

Applied the padding scheme from PKCS#1 v1.5 for encryption. The message must be no longer than the length of the public modulus minus 11 bytes.