Class ECElGamalEncryptor

java.lang.Object
org.bouncycastle.crypto.ec.ECElGamalEncryptor
All Implemented Interfaces:
ECEncryptor

public class ECElGamalEncryptor extends Object implements ECEncryptor
this does your basic ElGamal encryption algorithm using EC
  • Constructor Details

    • ECElGamalEncryptor

      public ECElGamalEncryptor()
  • Method Details

    • init

      public void init(CipherParameters param)
      initialise the encryptor.
      Specified by:
      init in interface ECEncryptor
      Parameters:
      param - the necessary EC key parameters.
    • encrypt

      public ECPair encrypt(ECPoint point)
      Process a single EC point using the basic ElGamal algorithm.
      Specified by:
      encrypt in interface ECEncryptor
      Parameters:
      point - the EC point to process.
      Returns:
      the result of the Elgamal process.
    • createBasePointMultiplier

      protected ECMultiplier createBasePointMultiplier()