Top Fields Constructors Methods
org.bouncycastle.crypto.signers

public Class DSADigestSigner

extends Object
implements Signer
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.Signer
Imports
java.math.BigInteger, org.bouncycastle.crypto.CipherParameters, .DSA, .DSAExt, .Digest, .Signer, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .ParametersWithRandom

Field Summary

Modifier and TypeField and Description
private final Digest
private final DSA
private final DSAEncoding
private boolean

Constructor Summary

AccessConstructor and Description
public
DSADigestSigner(DSA dsa, Digest digest)

public
DSADigestSigner(DSAExt dsa, Digest digest, DSAEncoding encoding)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateSignature()

Implements org.bouncycastle.crypto.Signer.generateSignature.

Generate a signature for the message we've been loaded with using the key we were initialised with.
protected BigInteger
public void
init(boolean
true if for signing, false otherwise
forSigning
,
CipherParameters
necessary parameters.
parameters
)

Implements org.bouncycastle.crypto.Signer.init.

Initialise the signer for signing or verification.
public void
reset()

Implements org.bouncycastle.crypto.Signer.reset.

reset the internal state
public void
update(byte input)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte b
public void
update(byte[] input, int inOff, int length)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte array in
public boolean
verifySignature(byte[] signature)

Implements org.bouncycastle.crypto.Signer.verifySignature.

return true if the internal state represents the signature described in the passed in array.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestback to summary
private final Digest digest
dsaback to summary
private final DSA dsa
encodingback to summary
private final DSAEncoding encoding
forSigningback to summary
private boolean forSigning

Constructor Detail

DSADigestSignerback to summary
public DSADigestSigner(DSA dsa, Digest digest)
DSADigestSignerback to summary
public DSADigestSigner(DSAExt dsa, Digest digest, DSAEncoding encoding)

Method Detail

generateSignatureback to summary
public byte[] generateSignature()

Implements org.bouncycastle.crypto.Signer.generateSignature.

Generate a signature for the message we've been loaded with using the key we were initialised with.

getOrderback to summary
protected BigInteger getOrder()
initback to summary
public void init(boolean forSigning, CipherParameters parameters)

Implements org.bouncycastle.crypto.Signer.init.

Doc from org.bouncycastle.crypto.Signer.init.

Initialise the signer for signing or verification.

Parameters
forSigning:boolean

true if for signing, false otherwise

parameters:CipherParameters

necessary parameters.

resetback to summary
public void reset()

Implements org.bouncycastle.crypto.Signer.reset.

Doc from org.bouncycastle.crypto.Signer.reset.

reset the internal state

updateback to summary
public void update(byte input)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte b

updateback to summary
public void update(byte[] input, int inOff, int length)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte array in

verifySignatureback to summary
public boolean verifySignature(byte[] signature)

Implements org.bouncycastle.crypto.Signer.verifySignature.

Doc from org.bouncycastle.crypto.Signer.verifySignature.

return true if the internal state represents the signature described in the passed in array.