Top Description Methods
org.bouncycastle.crypto

public Interface Signer

Known Direct Subinterfaces
org.bouncycastle.crypto.SignerWithRecovery
Known Direct Implementers
org.bouncycastle.crypto.signers.DSADigestSigner, org.bouncycastle.crypto.signers.Ed25519ctxSigner, org.bouncycastle.crypto.signers.Ed25519phSigner, org.bouncycastle.crypto.signers.Ed25519Signer, org.bouncycastle.crypto.signers.Ed448phSigner, org.bouncycastle.crypto.signers.Ed448Signer, org.bouncycastle.crypto.signers.GenericSigner, org.bouncycastle.crypto.signers.PSSSigner, org.bouncycastle.crypto.signers.RSADigestSigner, org.bouncycastle.crypto.signers.SM2Signer, org.bouncycastle.crypto.signers.X931Signer, org.bouncycastle.pqc.crypto.DigestingMessageSigner, org.bouncycastle.pqc.crypto.mldsa.HashMLDSASigner, org.bouncycastle.pqc.crypto.mldsa.MLDSASigner, org.bouncycastle.pqc.crypto.slhdsa.HashSLHDSASigner

Generic signer interface for hash based and message recovery signers.

Method Summary

Modifier and TypeMethod and Description
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
true if for signing, false otherwise
forSigning
,
CipherParameters
necessary parameters.
param
)

Initialise the signer for signing or verification.

public void
reset()

reset the internal state

public void
update(byte b)

update the internal digest with the byte b

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

update the internal digest with the byte array in

public boolean
verifySignature(byte[] signature)

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

Method Detail

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

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 param)

Initialise the signer for signing or verification.

Parameters
forSigning:boolean

true if for signing, false otherwise

param:CipherParameters

necessary parameters.

resetback to summary
public void reset()

reset the internal state

updateback to summary
public void update(byte b)

update the internal digest with the byte b

updateback to summary
public void update(byte[] in, int off, int len)

update the internal digest with the byte array in

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

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