Top Fields Constructors Methods
org.bouncycastle.pqc.crypto.rainbow

public Class RainbowSigner

extends Object
implements MessageSigner
Class Inheritance
All Implemented Interfaces
org.bouncycastle.pqc.crypto.MessageSigner
Imports
java.security.SecureRandom, org.bouncycastle.crypto.CipherParameters, .CryptoServicesRegistrar, .Digest, org.bouncycastle.crypto.params.ParametersWithRandom, org.bouncycastle.pqc.crypto.MessageSigner, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private ComputeInField
private Digest
private RainbowKeyParameters
private static final int
private SecureRandom
pack-priv int
private Version

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateSignature(byte[]
the message to be signed.
message
)

Implements org.bouncycastle.pqc.crypto.MessageSigner.generateSignature.

sign the passed in message (usually the output of a hash function).
private byte[]
genSignature(byte[] message)

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

Implements org.bouncycastle.pqc.crypto.MessageSigner.init.

initialise the signer for signature generation or signature verification.
private short[]

Returns:

message representative
makeMessageRepresentative
(byte[]
the message
message
)

This function creates the representative of the message which gets signed or verified.

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

Implements org.bouncycastle.pqc.crypto.MessageSigner.verifySignature.

verify the message message against the signature value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cfback to summary
private ComputeInField cf
hashAlgoback to summary
private Digest hashAlgo
keyback to summary
private RainbowKeyParameters key
MAXITSback to summary
private static final int MAXITS
randomback to summary
private SecureRandom random
signableDocumentLengthback to summary
pack-priv int signableDocumentLength
versionback to summary
private Version version

Constructor Detail

RainbowSignerback to summary
public RainbowSigner()

Method Detail

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

Implements org.bouncycastle.pqc.crypto.MessageSigner.generateSignature.

Doc from org.bouncycastle.pqc.crypto.MessageSigner.generateSignature.

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

genSignatureback to summary
private byte[] genSignature(byte[] message)
initback to summary
public void init(boolean forSigning, CipherParameters param)

Implements org.bouncycastle.pqc.crypto.MessageSigner.init.

Doc from org.bouncycastle.pqc.crypto.MessageSigner.init.

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.

makeMessageRepresentativeback to summary
private short[] makeMessageRepresentative(byte[] message)

This function creates the representative of the message which gets signed or verified.

Parameters
message:byte[]

the message

Returns:short[]

message representative

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

Implements org.bouncycastle.pqc.crypto.MessageSigner.verifySignature.

Doc from org.bouncycastle.pqc.crypto.MessageSigner.verifySignature.

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