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

public Class ECElGamalEncryptor

extends Object
implements ECEncryptor
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.ec.ECEncryptor
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 ECPair

Returns:

the result of the Elgamal process.
encrypt
(ECPoint
the EC point to process.
point
)

Implements org.bouncycastle.crypto.ec.ECEncryptor.encrypt.

Process a single EC point using the basic ElGamal algorithm.

public void
init(CipherParameters
the necessary EC key parameters.
param
)

Implements org.bouncycastle.crypto.ec.ECEncryptor.init.

initialise the encryptor.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

ECElGamalEncryptorback to summary
public ECElGamalEncryptor()

Method Detail

createBasePointMultiplierback to summary
protected ECMultiplier createBasePointMultiplier()
encryptback to summary
public ECPair encrypt(ECPoint point)

Implements org.bouncycastle.crypto.ec.ECEncryptor.encrypt.

Process a single EC point using the basic ElGamal algorithm.

Parameters
point:ECPoint

the EC point to process.

Returns:ECPair

the result of the Elgamal process.

initback to summary
public void init(CipherParameters param)

Implements org.bouncycastle.crypto.ec.ECEncryptor.init.

initialise the encryptor.

Parameters
param:CipherParameters

the necessary EC key parameters.