pkcs1v15_encrypt_unpad

Function pkcs1v15_encrypt_unpad 

Source
pub(crate) fn pkcs1v15_encrypt_unpad(em: Vec<u8>, k: usize) -> Result<Vec<u8>>
Expand description

Removes the encryption padding scheme from PKCS#1 v1.5.

Note that whether this function returns an error or not discloses secret information. If an attacker can cause this function to run repeatedly and learn whether each instance returned an error then they can decrypt and forge signatures as if they had the private key. See decrypt_session_key for a way of solving this problem.