Package org.bouncycastle.crypto.ec
Class ECFixedTransform
java.lang.Object
org.bouncycastle.crypto.ec.ECFixedTransform
- All Implemented Interfaces:
ECPairFactorTransform,ECPairTransform
this transforms the original randomness used for an ElGamal encryption by a fixed value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ECMultiplierReturn the last transform value used by the transformvoidinit(CipherParameters param) initialise the underlying EC ElGamal engine.Transform an existing cipher text pair using the ElGamal algorithm.
-
Constructor Details
-
ECFixedTransform
-
-
Method Details
-
init
initialise the underlying EC ElGamal engine.- Specified by:
initin interfaceECPairTransform- Parameters:
param- the necessary EC key parameters.
-
transform
Transform an existing cipher text 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.- Specified by:
transformin interfaceECPairTransform- Parameters:
cipherText- the EC point to process.- Returns:
- returns a new ECPair representing the result of the process.
-
getTransformValue
Return the last transform value used by the transform- Specified by:
getTransformValuein interfaceECPairFactorTransform- Returns:
- a BigInteger representing k value.
-
createBasePointMultiplier
-