Class ElGamalParameterSpec

  • All Implemented Interfaces:
    AlgorithmParameterSpec

    public class ElGamalParameterSpec
    extends Object
    implements AlgorithmParameterSpec
    Copied from org.bouncycastle.jce.spec This can't actually be passed to the BC provider, we would have to use reflection to create a "real" org.bouncycasle.jce.spec.ElGamalParameterSpec.
    Since:
    0.9.18, moved from net.i2p.crypto in 0.9.25
    • Constructor Detail

      • ElGamalParameterSpec

        public ElGamalParameterSpec​(BigInteger p,
                                    BigInteger g)
        Constructs a parameter set for Diffie-Hellman, using a prime modulus p and a base generator g.
        Parameters:
        p - the prime modulus
        g - the base generator
    • Method Detail

      • getP

        public BigInteger getP()
        Returns the prime modulus p.
        Returns:
        the prime modulus p
      • getG

        public BigInteger getG()
        Returns the base generator g.
        Returns:
        the base generator g
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
        Since:
        0.9.25
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Object
        Since:
        0.9.25