Package org.bouncycastle.crypto.signers
Class RandomDSAKCalculator
java.lang.Object
org.bouncycastle.crypto.signers.RandomDSAKCalculator
- All Implemented Interfaces:
DSAKCalculator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(BigInteger n, BigInteger d, byte[] message) Deterministic initialiser.voidinit(BigInteger n, SecureRandom random) Non-deterministic initialiser.booleanReturn true if this calculator is deterministic, false otherwise.nextK()Return the next valid value of K.
-
Constructor Details
-
RandomDSAKCalculator
public RandomDSAKCalculator()
-
-
Method Details
-
isDeterministic
public boolean isDeterministic()Description copied from interface:DSAKCalculatorReturn true if this calculator is deterministic, false otherwise.- Specified by:
isDeterministicin interfaceDSAKCalculator- Returns:
- true if deterministic, otherwise false.
-
init
Description copied from interface:DSAKCalculatorNon-deterministic initialiser.- Specified by:
initin interfaceDSAKCalculator- Parameters:
n- the order of the DSA group.random- a source of randomness.
-
init
Description copied from interface:DSAKCalculatorDeterministic initialiser.- Specified by:
initin interfaceDSAKCalculator- Parameters:
n- the order of the DSA group.d- the DSA private value.message- the message being signed.
-
nextK
Description copied from interface:DSAKCalculatorReturn the next valid value of K.- Specified by:
nextKin interfaceDSAKCalculator- Returns:
- a K value.
-