public class RandomDSAKCalculator extends java.lang.Object implements DSAKCalculator
| Constructor and Description | 
|---|
RandomDSAKCalculator()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
init(java.math.BigInteger n,
    java.math.BigInteger d,
    byte[] message)
Deterministic initialiser. 
 | 
void | 
init(java.math.BigInteger n,
    java.security.SecureRandom random)
Non-deterministic initialiser. 
 | 
boolean | 
isDeterministic()
Return true if this calculator is deterministic, false otherwise. 
 | 
java.math.BigInteger | 
nextK()
Return the next valid value of K. 
 | 
public boolean isDeterministic()
DSAKCalculatorisDeterministic in interface DSAKCalculatorpublic void init(java.math.BigInteger n,
                 java.security.SecureRandom random)
DSAKCalculatorinit in interface DSAKCalculatorn - the order of the DSA group.random - a source of randomness.public void init(java.math.BigInteger n,
                 java.math.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 java.math.BigInteger nextK()
DSAKCalculatornextK in interface DSAKCalculator