Top Fields Constructors Methods
org.bouncycastle.crypto.general

pack-priv Class RandomDsaKCalculator

extends Object
implements DsaKCalculator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.general.DsaKCalculator
Imports
java.math.BigInteger, java.security.SecureRandom

Field Summary

Modifier and TypeField and Description
private BigInteger
q

private SecureRandom
private static final BigInteger

Constructor Summary

AccessConstructor and Description
pack-priv

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.general.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.general.DsaKCalculator.init.

Deterministic initialiser.
public boolean
isDeterministic()

Implements org.bouncycastle.crypto.general.DsaKCalculator.isDeterministic.

Return true if this calculator is deterministic, false otherwise.
public BigInteger
nextK()

Implements org.bouncycastle.crypto.general.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
pack-priv RandomDsaKCalculator()

Method Detail

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

Implements org.bouncycastle.crypto.general.DsaKCalculator.init.

Doc from org.bouncycastle.crypto.general.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.general.DsaKCalculator.init.

Doc from org.bouncycastle.crypto.general.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.general.DsaKCalculator.isDeterministic.

Doc from org.bouncycastle.crypto.general.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.general.DsaKCalculator.nextK.

Doc from org.bouncycastle.crypto.general.DsaKCalculator.nextK.

Return the next valid value of K.

Returns:BigInteger

a K value.