public interface

Signer

org.bouncycastle.crypto.Signer
Known Indirect Subclasses

Class Overview

Generic signer interface for hash based and message recovery signers.

Summary

Public Methods
abstract byte[] generateSignature()
generate a signature for the message we've been loaded with using the key we were initialised with.
abstract void init(boolean forSigning, CipherParameters param)
Initialise the signer for signing or verification.
abstract void reset()
reset the internal state
abstract void update(byte[] in, int off, int len)
update the internal digest with the byte array in
abstract void update(byte b)
update the internal digest with the byte b
abstract boolean verifySignature(byte[] signature)
return true if the internal state represents the signature described in the passed in array.

Public Methods

public abstract byte[] generateSignature ()

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

public abstract void init (boolean forSigning, CipherParameters param)

Initialise the signer for signing or verification.

Parameters
forSigning true if for signing, false otherwise
param necessary parameters.

public abstract void reset ()

reset the internal state

public abstract void update (byte[] in, int off, int len)

update the internal digest with the byte array in

public abstract void update (byte b)

update the internal digest with the byte b

public abstract boolean verifySignature (byte[] signature)

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