Class RandomDSAKCalculator

java.lang.Object
org.bouncycastle.crypto.signers.RandomDSAKCalculator
All Implemented Interfaces:
DSAKCalculator

public class RandomDSAKCalculator extends Object implements DSAKCalculator
  • Constructor Details

    • RandomDSAKCalculator

      public RandomDSAKCalculator()
  • Method Details

    • isDeterministic

      public boolean isDeterministic()
      Description copied from interface: DSAKCalculator
      Return true if this calculator is deterministic, false otherwise.
      Specified by:
      isDeterministic in interface DSAKCalculator
      Returns:
      true if deterministic, otherwise false.
    • init

      public void init(BigInteger n, SecureRandom random)
      Description copied from interface: DSAKCalculator
      Non-deterministic initialiser.
      Specified by:
      init in interface DSAKCalculator
      Parameters:
      n - the order of the DSA group.
      random - a source of randomness.
    • init

      public void init(BigInteger n, BigInteger d, byte[] message)
      Description copied from interface: DSAKCalculator
      Deterministic initialiser.
      Specified by:
      init in interface DSAKCalculator
      Parameters:
      n - the order of the DSA group.
      d - the DSA private value.
      message - the message being signed.
    • nextK

      public BigInteger nextK()
      Description copied from interface: DSAKCalculator
      Return the next valid value of K.
      Specified by:
      nextK in interface DSAKCalculator
      Returns:
      a K value.