public class DHG extends AbstractDH
k| Constructor and Description |
|---|
DHG(Factory<? extends Digest> digestFactory) |
DHG(Factory<? extends Digest> digestFactory,
BigInteger pValue,
BigInteger gValue) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
calculateK() |
byte[] |
getE() |
BigInteger |
getG() |
Digest |
getHash() |
BigInteger |
getP() |
void |
setF(BigInteger f) |
void |
setF(byte[] f) |
void |
setG(BigInteger g) |
void |
setG(byte[] g) |
void |
setP(BigInteger p) |
void |
setP(byte[] p) |
getK, stripLeadingZeroespublic DHG(Factory<? extends Digest> digestFactory, BigInteger pValue, BigInteger gValue) throws Exception
Exceptionpublic byte[] getE()
throws Exception
getE in class AbstractDHExceptionprotected byte[] calculateK()
throws Exception
calculateK in class AbstractDHExceptionpublic void setP(byte[] p)
public void setG(byte[] g)
public void setF(byte[] f)
setF in class AbstractDHpublic BigInteger getP()
public void setP(BigInteger p)
public BigInteger getG()
public void setG(BigInteger g)
public void setF(BigInteger f)
public Digest getHash() throws Exception
getHash in class AbstractDHExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.