|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.signers.HMacDSAKCalculator
public class HMacDSAKCalculator
A deterministic K calculator based on the algorithm in section 3.2 of RFC 6979.
| Constructor Summary | |
|---|---|
HMacDSAKCalculator(Digest digest)
Base constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HMacDSAKCalculator(Digest digest)
digest - digest to build the HMAC on.| Method Detail |
|---|
public boolean isDeterministic()
DSAKCalculator
isDeterministic in interface DSAKCalculator
public void init(java.math.BigInteger n,
java.security.SecureRandom random)
DSAKCalculator
init 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)
DSAKCalculator
init in interface DSAKCalculatorn - the order of the DSA group.d - the DSA private value.message - the message being signed.public java.math.BigInteger nextK()
DSAKCalculator
nextK in interface DSAKCalculator
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||