Class ECNewPublicKeyTransform

java.lang.Object
org.bouncycastle.crypto.ec.ECNewPublicKeyTransform
All Implemented Interfaces:
ECPairTransform

public class ECNewPublicKeyTransform extends Object implements ECPairTransform
this does your basic Elgamal encryption algorithm using EC
  • Constructor Details

    • ECNewPublicKeyTransform

      public ECNewPublicKeyTransform()
  • Method Details

    • init

      public void init(CipherParameters param)
      initialise the EC Elgamal engine.
      Specified by:
      init in interface ECPairTransform
      Parameters:
      param - the necessary EC key parameters.
    • transform

      public ECPair transform(ECPair cipherText)
      Transform an existing cipher text pair using the ElGamal algorithm. Note: the input cipherText will need to be preserved in order to complete the transformation to the new public key.
      Specified by:
      transform in interface ECPairTransform
      Parameters:
      cipherText - the EC point to process.
      Returns:
      returns a new ECPair representing the result of the process.
    • createBasePointMultiplier

      protected ECMultiplier createBasePointMultiplier()