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