Class ECElGamalDecryptor

  • All Implemented Interfaces:
    ECDecryptor

    public class ECElGamalDecryptor
    extends Object
    implements ECDecryptor
    this does your basic decryption ElGamal style using EC
    • Constructor Detail

      • ECElGamalDecryptor

        public ECElGamalDecryptor()
    • Method Detail

      • init

        public void init​(CipherParameters param)
        initialise the decryptor.
        Specified by:
        init in interface ECDecryptor
        Parameters:
        param - the necessary EC key parameters.
      • decrypt

        public ECPoint decrypt​(ECPair pair)
        Decrypt an EC pair producing the original EC point.
        Specified by:
        decrypt in interface ECDecryptor
        Parameters:
        pair - the EC point pair to process.
        Returns:
        the result of the Elgamal process.