Package net.i2p.crypto.elgamal.impl
Class ElGamalPublicKeyImpl
java.lang.Object
net.i2p.crypto.elgamal.impl.ElGamalPublicKeyImpl
- All Implemented Interfaces:
Serializable
,Key
,PublicKey
,DHKey
,DHPublicKey
,ElGamalKey
,ElGamalPublicKey
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ElGamalPublicKeyImpl
-
ElGamalPublicKeyImpl
-
ElGamalPublicKeyImpl
-
ElGamalPublicKeyImpl
-
ElGamalPublicKeyImpl
-
ElGamalPublicKeyImpl
- Throws:
InvalidKeySpecException
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
spaceFor
static int spaceFor(int val) - Parameters:
val
- the length of the value, 65535 max- Returns:
- the length of the TLV
-
getParameters
- Specified by:
getParameters
in interfaceElGamalKey
-
getParams
-
getY
- Specified by:
getY
in interfaceDHPublicKey
- Specified by:
getY
in interfaceElGamalPublicKey
-