| Modifier and Type | Field and Description |
|---|---|
| private final HMac | |
| private final byte[] | |
| private BigInteger | |
| private final byte[] | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private BigInteger | |
| public void | init(BigInteger
the order of the DSA group. n, SecureRandom a source of randomness. random)Implements org. |
| public void | init(BigInteger
the order of the DSA group. n, BigInteger the DSA private value. d, byte[] the message being signed. message)Implements org. |
| protected void | initAdditionalInput0(HMac
the hmac0)HMac to which the additional input should be added.RFC 6979 3.6. |
| public boolean | isDeterministic()
Implements org. |
| public BigInteger | nextK()
Implements org. |
| hMac | back to summary |
|---|---|
| private final HMac hMac | |
| K | back to summary |
|---|---|
| private final byte[] K | |
| n | back to summary |
|---|---|
| private BigInteger n | |
| V | back to summary |
|---|---|
| private final byte[] V | |
| ZERO | back to summary |
|---|---|
| private static final BigInteger ZERO | |
| HMacDSAKCalculator | back to summary |
|---|---|
| public HMacDSAKCalculator(Digest digest) Base constructor.
| |
| bitsToInt | back to summary |
|---|---|
| private BigInteger bitsToInt(byte[] t) | |
| init | back to summary |
|---|---|
| public void init(BigInteger n, SecureRandom random) Implements org. Doc from org. Non-deterministic initialiser.
| |
| init | back to summary |
|---|---|
| public void init(BigInteger n, BigInteger d, byte[] message) Implements org. Doc from org. Deterministic initialiser.
| |
| initAdditionalInput0 | back to summary |
|---|---|
| protected void initAdditionalInput0(HMac hmac0) RFC 6979 3.6. Additional data may be added to the input of HMAC [..]. A use case may be a protocol that requires a non-deterministic signature algorithm on a system that does not have access to a high-quality random source. It suffices that the additional data [..] is non-repeating (e.g., a signature counter or a monotonic clock) to ensure "random-looking" signatures are indistinguishable, in a cryptographic way, from plain (EC)DSA signatures. By default there is no additional input. Override this method to supply additional input, bearing in mind that this calculator may be used for many signatures. | |
| isDeterministic | back to summary |
|---|---|
| public boolean isDeterministic() Implements org. Doc from org. Return true if this calculator is deterministic, false otherwise.
| |
| nextK | back to summary |
|---|---|
| public BigInteger nextK() Implements org. Doc from org. Return the next valid value of K.
| |