public class RSABlindingFactorGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RSAKeyParameters |
key |
private static java.math.BigInteger |
ONE |
private java.security.SecureRandom |
random |
private static java.math.BigInteger |
ZERO |
Constructor and Description |
---|
RSABlindingFactorGenerator() |
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
generateBlindingFactor()
Generate a suitable blind factor for the public key the generator was initialised with.
|
void |
init(CipherParameters param)
Initialise the factor generator
|
private static java.math.BigInteger ZERO
private static java.math.BigInteger ONE
private RSAKeyParameters key
private java.security.SecureRandom random
public void init(CipherParameters param)
param
- the necessary RSA key parameters.public java.math.BigInteger generateBlindingFactor()