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

public Class ECNewPublicKeyTransform

extends Object
implements ECPairTransform
Class Inheritance
All Implemented Interfaces
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 does your basic Elgamal encryption algorithm using EC

Field Summary

Modifier and TypeField and Description
private ECPublicKeyParameters
private SecureRandom

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected ECMultiplier
public void
init(CipherParameters
the necessary EC key parameters.
param
)

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

initialise the 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 text pair using the ElGamal algorithm.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
private ECPublicKeyParameters key
randomback to summary
private SecureRandom random

Constructor Detail

ECNewPublicKeyTransformback to summary
public ECNewPublicKeyTransform()

Method Detail

createBasePointMultiplierback to summary
protected ECMultiplier createBasePointMultiplier()
initback to summary
public void init(CipherParameters param)

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

initialise the 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 text pair using the ElGamal algorithm.

Note

the input cipherText will need to be preserved in order to complete the transformation to the new public key.

Parameters
cipherText:ECPair

the EC point to process.

Returns:ECPair

returns a new ECPair representing the result of the process.