public class RandomDSAKCalculator extends Object implements DSAKCalculator
| Constructor and Description |
|---|
RandomDSAKCalculator() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(BigInteger n,
BigInteger d,
byte[] message)
Deterministic initialiser.
|
void |
init(BigInteger n,
SecureRandom random)
Non-deterministic initialiser.
|
boolean |
isDeterministic()
Return true if this calculator is deterministic, false otherwise.
|
BigInteger |
nextK()
Return the next valid value of K.
|
public boolean isDeterministic()
DSAKCalculatorisDeterministic in interface DSAKCalculatorpublic void init(BigInteger n, SecureRandom random)
DSAKCalculatorinit in interface DSAKCalculatorn - the order of the DSA group.random - a source of randomness.public void init(BigInteger n, BigInteger d, byte[] message)
DSAKCalculatorinit in interface DSAKCalculatorn - the order of the DSA group.d - the DSA private value.message - the message being signed.public BigInteger nextK()
DSAKCalculatornextK in interface DSAKCalculatorCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.