public class SSLDHPrivateKey extends DHPrivateKey
g, p, X, Y| Constructor and Description |
|---|
SSLDHPrivateKey() |
| Modifier and Type | Method and Description |
|---|---|
void |
initPrivateKey(java.math.BigInteger g_,
java.math.BigInteger p_,
java.security.SecureRandom rand_) |
void |
initPrivateKey(java.security.SecureRandom rand_,
int keylength,
boolean sg)
Generate a DH private key.
|
byte[] |
keyAgree(DHPublicKey pub,
boolean check) |
getAlgorithm, getEncoded, getFormat, getg, getgBytes, getInstance, getp, getpBytes, getX, getY, getYBytes, toBytespublic void initPrivateKey(java.math.BigInteger g_,
java.math.BigInteger p_,
java.security.SecureRandom rand_)
initPrivateKey in class DHPrivateKeypublic void initPrivateKey(java.security.SecureRandom rand_,
int keylength,
boolean sg)
initPrivateKey in class DHPrivateKeypublic byte[] keyAgree(DHPublicKey pub, boolean check)
keyAgree in class DHPrivateKeyCopyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.