COM.claymoresystems.crypto
Class DHPrivateKey

java.lang.Object
  extended by 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
 
Constructor Summary
DHPrivateKey()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X

protected java.math.BigInteger X

Y

protected java.math.BigInteger Y

g

protected java.math.BigInteger g

p

protected java.math.BigInteger p
Constructor Detail

DHPrivateKey

public DHPrivateKey()
Method Detail

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.