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
public class ElGamalPublicKeyImpl extends Object implements ElGamalPublicKey, DHPublicKey
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ElGamalPublicKeyImpl(BigInteger y, ElGamalParameterSpec elSpec)ElGamalPublicKeyImpl(X509EncodedKeySpec spec)ElGamalPublicKeyImpl(DHPublicKey key)ElGamalPublicKeyImpl(DHPublicKeySpec spec)ElGamalPublicKeyImpl(ElGamalPublicKey key)ElGamalPublicKeyImpl(ElGamalPublicKeySpec spec) -
Method Summary
Modifier and Type Method Description StringgetAlgorithm()byte[]getEncoded()StringgetFormat()ElGamalParameterSpecgetParameters()DHParameterSpecgetParams()BigIntegergetY()(package private) static intspaceFor(int val)
-
Constructor Details
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin 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:
getParametersin interfaceElGamalKey
-
getParams
-
getY
- Specified by:
getYin interfaceDHPublicKey- Specified by:
getYin interfaceElGamalPublicKey
-