public class ElGamalGenParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
This class represents a ElGamal generation parameter specification to be used by a central authority for generating ElGamal parameters, which subsequently are sent to the entities involved in the key agreement procedure.
This class specifies the ElGamal generation parameters length of the prime modulus and length of the exponent (private value).
AlgorithmParameterSpec
,
ElGamalParameterSpec
Constructor and Description |
---|
ElGamalGenParameterSpec(int primeSize,
int exponentSize)
Creates an ElGamal generation parameter specification, based on given prime size and
exponent size.
|
Modifier and Type | Method and Description |
---|---|
int |
getExponentSize()
Returns the random exponent size in bits.
|
int |
getPrimeSize()
Returns the prime modulus size in bits.
|