public class HMacDSAKCalculator extends Object implements DSAKCalculator
Constructor and Description |
---|
HMacDSAKCalculator(Digest digest)
Base constructor.
|
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 HMacDSAKCalculator(Digest digest)
digest
- digest to build the HMAC on.public boolean isDeterministic()
DSAKCalculator
isDeterministic
in interface DSAKCalculator
public void init(BigInteger n, SecureRandom random)
DSAKCalculator
init
in interface DSAKCalculator
n
- the order of the DSA group.random
- a source of randomness.public void init(BigInteger n, BigInteger d, byte[] message)
DSAKCalculator
init
in interface DSAKCalculator
n
- the order of the DSA group.d
- the DSA private value.message
- the message being signed.public BigInteger nextK()
DSAKCalculator
nextK
in interface DSAKCalculator
Copyright © 2017 BouncyCastle.org. All rights reserved.