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, stripLeadingZeroes
public DHG(Factory<? extends Digest> digestFactory, BigInteger pValue, BigInteger gValue) throws Exception
Exception
public byte[] getE() throws Exception
getE
in class AbstractDH
Exception
protected byte[] calculateK() throws Exception
calculateK
in class AbstractDH
Exception
public void setP(byte[] p)
public void setG(byte[] g)
public void setF(byte[] f)
setF
in class AbstractDH
public 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 AbstractDH
Exception
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.