| org.bouncycastle.crypto.Signer
All known Subclasses: org.bouncycastle.crypto.signers.PSSSigner,
Signer | public interface Signer (Code) | | Generic signer interface for hash based and message recovery signers.
|
Method Summary | |
public byte[] | generateSignature() generate a signature for the message we've been loaded with using
the key we were initialised with. | public void | init(boolean forSigning, CipherParameters param) Initialise the signer for signing or verification. | public void | reset() | public void | update(byte b) | public void | update(byte[] in, int off, int len) | public boolean | verifySignature(byte[] signature) return true if the internal state represents the signature described
in the passed in array. |
generateSignature | public byte[] generateSignature() throws CryptoException, DataLengthException(Code) | | generate a signature for the message we've been loaded with using
the key we were initialised with.
|
init | public void init(boolean forSigning, CipherParameters param)(Code) | | Initialise the signer for signing or verification.
Parameters: forSigning - true if for signing, false otherwise Parameters: param - necessary parameters. |
reset | public void reset()(Code) | | reset the internal state
|
update | public void update(byte b)(Code) | | update the internal digest with the byte b
|
update | public void update(byte[] in, int off, int len)(Code) | | update the internal digest with the byte array in
|
verifySignature | public boolean verifySignature(byte[] signature)(Code) | | return true if the internal state represents the signature described
in the passed in array.
|
|
|