Package org.bouncycastle.crypto.ec
Class ECNewPublicKeyTransform
java.lang.Object
org.bouncycastle.crypto.ec.ECNewPublicKeyTransform
- All Implemented Interfaces:
ECPairTransform
this does your basic Elgamal encryption algorithm using EC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ECMultiplier
void
init
(CipherParameters param) initialise the EC Elgamal engine.Transform an existing cipher text pair using the ElGamal algorithm.
-
Constructor Details
-
ECNewPublicKeyTransform
public ECNewPublicKeyTransform()
-
-
Method Details
-
init
initialise the EC Elgamal engine.- Specified by:
init
in interfaceECPairTransform
- Parameters:
param
- the necessary EC key parameters.
-
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.- Specified by:
transform
in interfaceECPairTransform
- Parameters:
cipherText
- the EC point to process.- Returns:
- returns a new ECPair representing the result of the process.
-
createBasePointMultiplier
-