generateBlindingFactor
Generates a random blinding factor for RSA.
The blinding factor must be:
- In the range [2, n-1]
- Coprime to n (which is guaranteed for random values with overwhelming probability
since n = p * q and both p, q are large primes)
Parameters
n | RSA modulus. |
random | Random number generator. |
Returns
A random blinding factor r where 1 < r < n.