Package org.bouncycastle.crypto.ec
Class ECElGamalEncryptor
java.lang.Object
org.bouncycastle.crypto.ec.ECElGamalEncryptor
- All Implemented Interfaces:
ECEncryptor
this does your basic ElGamal encryption algorithm using EC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ECMultiplierProcess a single EC point using the basic ElGamal algorithm.voidinit(CipherParameters param) initialise the encryptor.
-
Constructor Details
-
ECElGamalEncryptor
public ECElGamalEncryptor()
-
-
Method Details
-
init
initialise the encryptor.- Specified by:
initin interfaceECEncryptor- Parameters:
param- the necessary EC key parameters.
-
encrypt
Process a single EC point using the basic ElGamal algorithm.- Specified by:
encryptin interfaceECEncryptor- Parameters:
point- the EC point to process.- Returns:
- the result of the Elgamal process.
-
createBasePointMultiplier
-