Skip to main content

rsa_decrypt

Function rsa_decrypt 

Source
pub fn rsa_decrypt<R: CryptoRngCore + ?Sized>(
    rng: Option<&mut R>,
    priv_key: &impl PrivateKeyParts,
    c: &BigUint,
) -> Result<BigUint>
Expand description

⚠️ Performs raw RSA decryption with no padding or error checking.

Returns a plaintext BigUint. Performs RSA blinding if an Rng is passed.

§☢️️ WARNING: HAZARDOUS API ☢️

Use this function with great care! Raw RSA should never be used without an appropriate padding or signature scheme. See the module-level documentation for more information.