java.lang.Object
net.i2p.crypto.elgamal.spec.ElGamalGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class ElGamalGenParameterSpecextends Object implements AlgorithmParameterSpec
Parameter specification for ElGamal key generation.

This class specifies the parameters used when generating ElGamal key pairs, particularly the size of the prime modulus in bits. The prime size determines the security level of the generated keys, with larger sizes providing stronger cryptographic security at the cost of computational performance.

  • Field Details

    • primeSize

      private final int primeSize
      Bit size of the prime to generate.
  • Constructor Details

    • ElGamalGenParameterSpec

      public ElGamalGenParameterSpec(int primeSize)
      Parameter set for ElGamal key generation.
      Parameters:
      primeSize - The size (in bits) of the prime modulus.
  • Method Details

    • getPrimeSize

      public int getPrimeSize()
      Returns the size in bits of the prime modulus.
      Returns:
      the size in bits of the prime modulus