Top Fields Constructors Methods
org.bouncycastle.crypto.signers

public Class GenericSigner

extends Object
implements Signer
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.Signer
Imports
org.bouncycastle.crypto.AsymmetricBlockCipher, .CipherParameters, .CryptoException, .DataLengthException, .Digest, .Signer, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .ParametersWithRandom, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private final Digest
private final AsymmetricBlockCipher
private boolean

Constructor Summary

AccessConstructor and Description
public

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.

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
engineback to summary
private final AsymmetricBlockCipher engine
forSigningback to summary
private boolean forSigning

Constructor Detail

GenericSignerback to summary
public GenericSigner(AsymmetricBlockCipher engine, Digest digest)

Method Detail

generateSignatureback to summary
public byte[] generateSignature() throws CryptoException, DataLengthException

Implements org.bouncycastle.crypto.Signer.generateSignature.

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

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

Implements 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.

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