Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.crypto.signers
Interface DSAKCalculator

All Known Implementing Classes:
  HMacDSAKCalculator, RandomDSAKCalculator

public interface DSAKCalculator

Interface define calculators of K values for DSA/ECDSA.

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.

Method Detail

### isDeterministic

    public boolean isDeterministic()

  Return true if this calculator is deterministic, false otherwise.

  Returns:
    true if deterministic, otherwise false.

### init

    public void init(java.math.BigInteger n,
                     java.security.SecureRandom random)

  Non-deterministic initialiser.

  Parameters:
    `n` - the order of the DSA group.
    `random` - a source of randomness.

### init

    public void init(java.math.BigInteger n,
                     java.math.BigInteger d,
                     byte[] message)

  Deterministic initialiser.

  Parameters:
    `n` - the order of the DSA group.
    `d` - the DSA private value.
    `message` - the message being signed.

### nextK

    public java.math.BigInteger nextK()

  Return the next valid value of K.

  Returns:
    a K value.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.84
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD