Top Fields Constructors Methods
org.bouncycastle.crypto.signers

public Class RandomDSAKCalculator

extends Object
implements DSAKCalculator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.signers.DSAKCalculator
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.util.BigIntegers

Field Summary

Modifier and TypeField and Description
private BigInteger
q

private SecureRandom
private static final BigInteger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
init(BigInteger
the order of the DSA group.
n
,
SecureRandom
a source of randomness.
random
)

Implements org.bouncycastle.crypto.signers.DSAKCalculator.init.

Non-deterministic initialiser.

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.bouncycastle.crypto.signers.DSAKCalculator.init.

Deterministic initialiser.

public boolean
isDeterministic()

Implements org.bouncycastle.crypto.signers.DSAKCalculator.isDeterministic.

Return true if this calculator is deterministic, false otherwise.

public BigInteger
nextK()

Implements org.bouncycastle.crypto.signers.DSAKCalculator.nextK.

Return the next valid value of K.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

qback to summary
private BigInteger q
randomback to summary
private SecureRandom random
ZEROback to summary
private static final BigInteger ZERO

Constructor Detail

RandomDSAKCalculatorback to summary
public RandomDSAKCalculator()

Method Detail

initback to summary
public void init(BigInteger n, SecureRandom random)

Implements org.bouncycastle.crypto.signers.DSAKCalculator.init.

Doc from org.bouncycastle.crypto.signers.DSAKCalculator.init.

Non-deterministic initialiser.

Parameters
n:BigInteger

the order of the DSA group.

random:SecureRandom

a source of randomness.

initback to summary
public void init(BigInteger n, BigInteger d, byte[] message)

Implements org.bouncycastle.crypto.signers.DSAKCalculator.init.

Doc from org.bouncycastle.crypto.signers.DSAKCalculator.init.

Deterministic initialiser.

Parameters
n:BigInteger

the order of the DSA group.

d:BigInteger

the DSA private value.

message:byte[]

the message being signed.

isDeterministicback to summary
public boolean isDeterministic()

Implements org.bouncycastle.crypto.signers.DSAKCalculator.isDeterministic.

Doc from org.bouncycastle.crypto.signers.DSAKCalculator.isDeterministic.

Return true if this calculator is deterministic, false otherwise.

Returns:boolean

true if deterministic, otherwise false.

nextKback to summary
public BigInteger nextK()

Implements org.bouncycastle.crypto.signers.DSAKCalculator.nextK.

Doc from org.bouncycastle.crypto.signers.DSAKCalculator.nextK.

Return the next valid value of K.

Returns:BigInteger

a K value.