COM.claymoresystems.crypto
Class DHPrivateKey
java.lang.Object
COM.claymoresystems.crypto.DHPrivateKey
- All Implemented Interfaces:
- java.io.Serializable, java.security.Key, java.security.PrivateKey
- Direct Known Subclasses:
- SSLDHPrivateKey
public abstract class DHPrivateKey
- extends java.lang.Object
- implements java.security.PrivateKey
- See Also:
- Serialized Form
Field Summary |
protected java.math.BigInteger |
g
|
protected java.math.BigInteger |
p
|
protected java.math.BigInteger |
X
|
protected java.math.BigInteger |
Y
|
Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X
protected java.math.BigInteger X
Y
protected java.math.BigInteger Y
g
protected java.math.BigInteger g
p
protected java.math.BigInteger p
DHPrivateKey
public DHPrivateKey()
initPrivateKey
public abstract void initPrivateKey(java.math.BigInteger g_,
java.math.BigInteger p_,
java.security.SecureRandom rand_)
initPrivateKey
public abstract void initPrivateKey(java.security.SecureRandom rand_,
int keylength,
boolean sophiegermain)
keyAgree
public abstract byte[] keyAgree(DHPublicKey pub,
boolean check)
getInstance
public static DHPrivateKey getInstance()
toBytes
protected byte[] toBytes(java.math.BigInteger num)
getX
public java.math.BigInteger getX()
getY
public java.math.BigInteger getY()
getYBytes
public byte[] getYBytes()
getg
public java.math.BigInteger getg()
getgBytes
public byte[] getgBytes()
getp
public java.math.BigInteger getp()
getpBytes
public byte[] getpBytes()
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interface java.security.Key
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interface java.security.Key
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interface java.security.Key
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.