Class AIMerSigner
java.lang.Object
org.bouncycastle.pqc.crypto.aimer.AIMerSigner
- All Implemented Interfaces:
MessageSigner
Implementation of the AIMer digital signature scheme as specified in the AIMer documentation.
This class provides low-level cryptographic operations for both signature generation and verification,
including finite field arithmetic over GF(2^128), GF(2^192), and GF(2^256), matrix generation,
MPC-based proofs, and the AIM2 block cipher.
AIMer is a selected algorithm in the Korean Post-Quantum Cryptography (KPQC) project.
References:
- AIMer Official Website
- AIMer Specification Document
- AIMer Reference Implementation (unavailable right now)
This engine supports three security levels (128, 192, and 256 bits), each with fast and small variants.
The field size is automatically selected based on the provided AIMerParameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]generateSignature(byte[] message) sign the passed in message (usually the output of a hash function).voidinit(boolean forSigning, CipherParameters param) initialise the signer for signature generation or signature verification.booleanverifySignature(byte[] message, byte[] signature) verify the message message against the signature value.
-
Constructor Details
-
AIMerSigner
public AIMerSigner()
-
-
Method Details
-
init
Description copied from interface:MessageSignerinitialise the signer for signature generation or signature verification.- Specified by:
initin interfaceMessageSigner- Parameters:
forSigning- true if we are generating a signature, false otherwise.param- key parameters for signature generation.
-
generateSignature
public byte[] generateSignature(byte[] message) Description copied from interface:MessageSignersign the passed in message (usually the output of a hash function).- Specified by:
generateSignaturein interfaceMessageSigner- Parameters:
message- the message to be signed.- Returns:
- the signature of the message
-
verifySignature
public boolean verifySignature(byte[] message, byte[] signature) Description copied from interface:MessageSignerverify the message message against the signature value.- Specified by:
verifySignaturein interfaceMessageSigner- Parameters:
message- the message that was supposed to have been signed.signature- the signature of the message
-