public abstract class DHPrivateKey
extends java.lang.Object
implements java.security.PrivateKey
| Modifier and Type | Field and Description |
|---|---|
protected java.math.BigInteger |
g |
protected java.math.BigInteger |
p |
protected java.math.BigInteger |
X |
protected java.math.BigInteger |
Y |
| Constructor and Description |
|---|
DHPrivateKey() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
java.math.BigInteger |
getg() |
byte[] |
getgBytes() |
static DHPrivateKey |
getInstance() |
java.math.BigInteger |
getp() |
byte[] |
getpBytes() |
java.math.BigInteger |
getX() |
java.math.BigInteger |
getY() |
byte[] |
getYBytes() |
abstract void |
initPrivateKey(java.math.BigInteger g_,
java.math.BigInteger p_,
java.security.SecureRandom rand_) |
abstract void |
initPrivateKey(java.security.SecureRandom rand_,
int keylength,
boolean sophiegermain) |
abstract byte[] |
keyAgree(DHPublicKey pub,
boolean check) |
protected byte[] |
toBytes(java.math.BigInteger num) |
protected java.math.BigInteger X
protected java.math.BigInteger Y
protected java.math.BigInteger g
protected java.math.BigInteger p
public abstract void initPrivateKey(java.math.BigInteger g_,
java.math.BigInteger p_,
java.security.SecureRandom rand_)
public abstract void initPrivateKey(java.security.SecureRandom rand_,
int keylength,
boolean sophiegermain)
public abstract byte[] keyAgree(DHPublicKey pub, boolean check)
public static DHPrivateKey getInstance()
protected byte[] toBytes(java.math.BigInteger num)
public java.math.BigInteger getX()
public java.math.BigInteger getY()
public byte[] getYBytes()
public java.math.BigInteger getg()
public byte[] getgBytes()
public java.math.BigInteger getp()
public byte[] getpBytes()
public java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.KeyCopyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.