Module rsa::internals[][src]

Expand description

Internal raw RSA functions.

Functions

blind

Returns the blinded c, along with the unblinding factor.

decrypt

Performs raw RSA decryption with no padding, resulting in a plaintext BigUint. Peforms RSA blinding if an Rng is passed.

decrypt_and_check

Performs RSA decryption, resulting in a plaintext BigUint. Peforms RSA blinding if an Rng is passed. This will also check for errors in the CRT computation.

encrypt

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

left_pad

Returns a new vector of the given length, with 0s left padded.

unblind

Given an m and and unblinding factor, unblind the m.