java.lang.Object
net.i2p.crypto.elgamal.spec.ElGamalGenParameterSpec
- All Implemented Interfaces:
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 Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionElGamalGenParameterSpec(int primeSize) Parameter set for ElGamal key generation.Method Summary
All Methods
Field Details
primeSize
private final int primeSizeBit 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