Skip to main content

rsa_encrypt

Function rsa_encrypt 

Source
pub fn rsa_encrypt<K: PublicKeyParts>(key: &K, m: &BigUint) -> Result<BigUint>
Expand description

⚠️ Raw RSA encryption of m with the public key. No padding is performed.

§☢️️ 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.