Top Description Fields Constructors Methods
org.bouncycastle.crypto.general

pack-priv Class EcGost3410Signer

extends Object
implements DSA
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.internal.DSA
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.crypto.internal.CipherParameters, org.bouncycastle.crypto.internal.params.EcDomainParameters, .EcKeyParameters, .EcPrivateKeyParameters, .EcPublicKeyParameters, .ParametersWithRandom, org.bouncycastle.math.ec.ECAlgorithms, .ECConstants, .ECMultiplier, .ECPoint, .FixedPointCombMultiplier

GOST R 34.10-2001 Signature Algorithm

Field Summary

Modifier and TypeField and Description
pack-priv EcKeyParameters
pack-priv SecureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected ECMultiplier
public BigInteger[]
generateSignature(byte[]
the message that will be verified later.
message
)

Implements org.bouncycastle.crypto.internal.DSA.generateSignature.

generate a signature for the given message using the key we were initialised with.
public void
init(boolean
true if we are generating a signature, false otherwise.
forSigning
,
CipherParameters
key parameters for signature generation.
param
)

Implements org.bouncycastle.crypto.internal.DSA.init.

initialise the signer for signature generation or signature verification.
public boolean
verifySignature(byte[]
the message that was supposed to have been signed.
message
,
BigInteger
the r signature value.
r
,
BigInteger
the s signature value.
s
)

Implements org.bouncycastle.crypto.internal.DSA.verifySignature.

return true if the value r and s represent a GOST3410 signature for the passed in message (for standard GOST3410 the message should be a GOST3411 hash of the real message to be verified).
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
pack-priv EcKeyParameters key
randomback to summary
pack-priv SecureRandom random

Constructor Detail

EcGost3410Signerback to summary
pack-priv EcGost3410Signer()

Method Detail

createBasePointMultiplierback to summary
protected ECMultiplier createBasePointMultiplier()
generateSignatureback to summary
public BigInteger[] generateSignature(byte[] message)

Implements org.bouncycastle.crypto.internal.DSA.generateSignature.

generate a signature for the given message using the key we were initialised with. For conventional GOST3410 the message should be a GOST3411 hash of the message of interest.

Parameters
message:byte[]

the message that will be verified later.

Returns:BigInteger[]

Doc from org.bouncycastle.crypto.internal.DSA.generateSignature.

two big integers representing the r and s values respectively.

initback to summary
public void init(boolean forSigning, CipherParameters param)

Implements org.bouncycastle.crypto.internal.DSA.init.

Doc from org.bouncycastle.crypto.internal.DSA.init.

initialise the signer for signature generation or signature verification.

Parameters
forSigning:boolean

true if we are generating a signature, false otherwise.

param:CipherParameters

key parameters for signature generation.

verifySignatureback to summary
public boolean verifySignature(byte[] message, BigInteger r, BigInteger s)

Implements org.bouncycastle.crypto.internal.DSA.verifySignature.

return true if the value r and s represent a GOST3410 signature for the passed in message (for standard GOST3410 the message should be a GOST3411 hash of the real message to be verified).

Parameters
message:byte[]

Doc from org.bouncycastle.crypto.internal.DSA.verifySignature.

the message that was supposed to have been signed.

r:BigInteger

Doc from org.bouncycastle.crypto.internal.DSA.verifySignature.

the r signature value.

s:BigInteger

Doc from org.bouncycastle.crypto.internal.DSA.verifySignature.

the s signature value.