FileDocCategorySizeDatePackage
Signer.javaAPI DocAndroid 1.5 API1100Wed May 06 22:41:06 BST 2009org.bouncycastle.crypto

Signer

public interface Signer
Generic signer interface for hash based and message recovery signers.

Fields Summary
Constructors Summary
Methods Summary
public byte[]generateSignature()
generate a signature for the message we've been loaded with using the key we were initialised with.

public voidinit(boolean forSigning, CipherParameters param)
Initialise the signer for signing or verification.

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

public voidreset()
reset the internal state

public voidupdate(byte b)
update the internal digest with the byte b

public voidupdate(byte[] in, int off, int len)
update the internal digest with the byte array in

public booleanverifySignature(byte[] signature)
return true if the internal state represents the signature described in the passed in array.