Top Description Fields Constructors Methods
org.bouncycastle.crypto.generators

public Class RSABlindingFactorGenerator

extends Object
Class Inheritance
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.crypto.CipherParameters, .CryptoServicesRegistrar, org.bouncycastle.crypto.params.ParametersWithRandom, .RSAKeyParameters, .RSAPrivateCrtKeyParameters, org.bouncycastle.util.BigIntegers

Generate a random factor suitable for use with RSA blind signatures as outlined in Chaum's blinding and unblinding as outlined in "Handbook of Applied Cryptography", page 475.

Field Summary

Modifier and TypeField and Description
private RSAKeyParameters
private static BigInteger
private SecureRandom
private static BigInteger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BigInteger

Returns:

a random blind factor
generateBlindingFactor
()

Generate a suitable blind factor for the public key the generator was initialised with.

public void
init(CipherParameters
the necessary RSA key parameters.
param
)

Initialise the factor generator

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
private RSAKeyParameters key
ONEback to summary
private static BigInteger ONE
randomback to summary
private SecureRandom random
ZEROback to summary
private static BigInteger ZERO

Constructor Detail

RSABlindingFactorGeneratorback to summary
public RSABlindingFactorGenerator()

Method Detail

generateBlindingFactorback to summary
public BigInteger generateBlindingFactor()

Generate a suitable blind factor for the public key the generator was initialised with.

Returns:BigInteger

a random blind factor

initback to summary
public void init(CipherParameters param)

Initialise the factor generator

Parameters
param:CipherParameters

the necessary RSA key parameters.