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

public Class ECGOST3410Signer

extends Object
implements DSAExt
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.DSAExt, org.bouncycastle.crypto.DSA
Known Direct Subclasses
org.bouncycastle.crypto.signers.ECGOST3410_2012Signer
Imports
java.math.BigInteger, java.security.SecureRandom, org.bouncycastle.crypto.CipherParameters, .CryptoServicesRegistrar, .DSAExt, org.bouncycastle.crypto.params.ECDomainParameters, .ECKeyParameters, .ECPrivateKeyParameters, .ECPublicKeyParameters, .ParametersWithRandom, org.bouncycastle.math.ec.ECAlgorithms, .ECConstants, .ECMultiplier, .ECPoint, .FixedPointCombMultiplier, org.bouncycastle.util.Arrays, .BigIntegers

GOST R 34.10-2001 and GOST R 34.10-2012 Signature Algorithm

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

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.DSA.generateSignature.

generate a signature for the given message using the key we were initialised with.
public BigInteger
getOrder()

Implements org.bouncycastle.crypto.DSAExt.getOrder.

Get the order of the group that the r, s values in signatures belong to.
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.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.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
public ECGOST3410Signer()

Method Detail

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

Implements org.bouncycastle.crypto.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.DSA.generateSignature.

two big integers representing the r and s values respectively.

getOrderback to summary
public BigInteger getOrder()

Implements org.bouncycastle.crypto.DSAExt.getOrder.

Doc from org.bouncycastle.crypto.DSAExt.getOrder.

Get the order of the group that the r, s values in signatures belong to.

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

Implements org.bouncycastle.crypto.DSA.init.

Doc from org.bouncycastle.crypto.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.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.DSA.verifySignature.

the message that was supposed to have been signed.

r:BigInteger

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

the r signature value.

s:BigInteger

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

the s signature value.