gnu.crypto.key.dh
Class GnuDHPublicKey
- DHKey, DHPublicKey, Key
public class GnuDHPublicKey
implements DHPublicKey
Version:
GnuDHPublicKey(BigInteger q, BigInteger p, BigInteger g, BigInteger y)
|
byte[] | getEncoded() - see getEncoded(int).
|
byte[] | getEncoded(int format) - Returns the encoded form of this public key according to the designated
format.
|
BigInteger | getY()
|
static GnuDHPublicKey | valueOf(byte[] k) - A class method that takes the output of the
encodePublicKey()
method of a DH keypair codec object (an instance implementing
IKeyPairCodec for DSS keys, and re-constructs an instance of this
object.
|
GnuDHPublicKey
public GnuDHPublicKey(BigInteger q,
BigInteger p,
BigInteger g,
BigInteger y)
getEncoded
public byte[] getEncoded()
see getEncoded(int).
getEncoded
public byte[] getEncoded(int format)
Returns the encoded form of this public key according to the designated
format.
format
- the desired format identifier of the resulting encoding.
- the byte sequence encoding this key according to the designated
format.
DHKeyPairRawCodec
getY
public BigInteger getY()
valueOf
public static GnuDHPublicKey valueOf(byte[] k)
A class method that takes the output of the
encodePublicKey()
method of a DH keypair codec object (an instance implementing
IKeyPairCodec
for DSS keys, and re-constructs an instance of this
object.
k
- the contents of a previously encoded instance of this object.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.