Top Description Methods
org.bouncycastle.pqc.crypto

public Interface MessageSigner

Known Direct Subinterfaces
org.bouncycastle.pqc.crypto.StateAwareMessageSigner
Known Direct Implementers
org.bouncycastle.pqc.crypto.crystals.dilithium.DilithiumSigner, org.bouncycastle.pqc.crypto.falcon.FalconSigner, org.bouncycastle.pqc.crypto.gemss.GeMSSSigner, org.bouncycastle.pqc.crypto.lms.HSSSigner, org.bouncycastle.pqc.crypto.lms.LMSSigner, org.bouncycastle.pqc.crypto.picnic.PicnicSigner, org.bouncycastle.pqc.crypto.rainbow.RainbowSigner, org.bouncycastle.pqc.crypto.sphincs.SPHINCS256Signer, org.bouncycastle.pqc.crypto.sphincsplus.SPHINCSPlusSigner, org.bouncycastle.pqc.legacy.crypto.gmss.GMSSSigner, org.bouncycastle.pqc.legacy.crypto.qtesla.QTESLASigner, org.bouncycastle.pqc.legacy.crypto.rainbow.RainbowSigner
Imports
org.bouncycastle.crypto.CipherParameters

Base interface for a PQC signing algorithm.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the signature of the message
generateSignature
(byte[]
the message to be signed.
message
)

sign the passed in message (usually the output of a hash function).

public void
init(boolean
true if we are generating a signature, false otherwise.
forSigning
,
CipherParameters
key parameters for signature generation.
param
)

initialise the signer for signature generation or signature verification.

public boolean
verifySignature(byte[]
the message that was supposed to have been signed.
message
,
byte[]
the signature of the message
signature
)

verify the message message against the signature value.

Method Detail

generateSignatureback to summary
public byte[] generateSignature(byte[] message)

sign the passed in message (usually the output of a hash function).

Parameters
message:byte[]

the message to be signed.

Returns:byte[]

the signature of the message

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

initialise the signer for signature generation or signature verification.

Parameters
forSigning:boolean

true if we are generating a signature, false otherwise.

param:CipherParameters

key parameters for signature generation.

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

verify the message message against the signature value.

Parameters
message:byte[]

the message that was supposed to have been signed.

signature:byte[]

the signature of the message