java.lang.Object
net.i2p.crypto.elgamal.spec.ElGamalKeySpec
- All Implemented Interfaces:
KeySpec
- Direct Known Subclasses:
ElGamalPrivateKeySpec, ElGamalPublicKeySpec
Base key specification for ElGamal keys.
This class provides a foundation for ElGamal key specifications by encapsulating the ElGamal parameters (prime p and generator g). It serves as a base class for more specific key specifications used in key generation and conversion operations.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ElGamalParameterSpecThe p and g parameters the key was made from.Constructor Summary
ConstructorsConstructorDescriptionElGamal key specification with the given parameters.Method Summary
All MethodsModifier and TypeMethodDescriptionReturns the ElGamal parameter specification.
Field Details
spec
The p and g parameters the key was made from.
Constructor Details
ElGamalKeySpec
ElGamal key specification with the given parameters.- Parameters:
spec- The ElGamal parameter specification containing prime p and generator g.
Method Details
getParams
Returns the ElGamal parameter specification.- Returns:
- the ElGamal parameter specification