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

public Class ECNewRandomnessTransform

extends Object
implements ECPairFactorTransform
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.ec.ECPairFactorTransform, org.bouncycastle.crypto.ec.ECPairTransform
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.crypto.CipherParameters, .CryptoServicesRegistrar, org.bouncycastle.crypto.params.ECDomainParameters, .ECPublicKeyParameters, .ParametersWithRandom, org.bouncycastle.math.ec.ECAlgorithms, .ECMultiplier, .ECPoint, .FixedPointCombMultiplier

this transforms the original randomness used for an ElGamal encryption.

Field Summary

Modifier and TypeField and Description
private ECPublicKeyParameters
private BigInteger
private SecureRandom

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ECMultiplier
public BigInteger

Returns:

a BigInteger representing the last random value.
getTransformValue
()

Implements org.bouncycastle.crypto.ec.ECPairFactorTransform.getTransformValue.

Return the last random value generated for a transform
public void
init(CipherParameters
the necessary EC key parameters.
param
)

Implements org.bouncycastle.crypto.ec.ECPairTransform.init.

initialise the underlying EC ElGamal engine.
public ECPair

Returns:

returns a new ECPair representing the result of the process.
transform
(ECPair
the EC point to process.
cipherText
)

Implements org.bouncycastle.crypto.ec.ECPairTransform.transform.

Transform an existing cipher test pair using the ElGamal algorithm.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
private ECPublicKeyParameters key
lastKback to summary
private BigInteger lastK
randomback to summary
private SecureRandom random

Constructor Detail

ECNewRandomnessTransformback to summary
public ECNewRandomnessTransform()

Method Detail

createBasePointMultiplierback to summary
protected ECMultiplier createBasePointMultiplier()
getTransformValueback to summary
public BigInteger getTransformValue()

Implements org.bouncycastle.crypto.ec.ECPairFactorTransform.getTransformValue.

Return the last random value generated for a transform

Returns:BigInteger

a BigInteger representing the last random value.

initback to summary
public void init(CipherParameters param)

Implements org.bouncycastle.crypto.ec.ECPairTransform.init.

initialise the underlying EC ElGamal engine.

Parameters
param:CipherParameters

the necessary EC key parameters.

transformback to summary
public ECPair transform(ECPair cipherText)

Implements org.bouncycastle.crypto.ec.ECPairTransform.transform.

Transform an existing cipher test pair using the ElGamal algorithm.

Note

it is assumed this transform has been initialised with the same public key that was used to create the original cipher text.

Parameters
cipherText:ECPair

the EC point to process.

Returns:ECPair

returns a new ECPair representing the result of the process.