Class HqcKeyGenSpec

java.lang.Object
zeroecho.core.alg.hqc.HqcKeyGenSpec
All Implemented Interfaces:
Describable, AlgorithmKeySpec

public final class HqcKeyGenSpec extends Object implements AlgorithmKeySpec, Describable

HQC Key Generation Specification

Algorithm-specific AlgorithmKeySpec for generating HQC (Hamming Quasi-Cyclic) key pairs. HQC is a post-quantum key encapsulation mechanism based on error-correcting codes and provides IND-CCA2 security.

An HqcKeyGenSpec selects one of the parameter sets standardized for HQC: 128-, 192-, or 256-bit security. The chosen variant determines key sizes, ciphertext lengths, and shared secret size.

Variants

Usage

// Create a spec for HQC-256 key generation
HqcKeyGenSpec spec = HqcKeyGenSpec.hqc256();

// Generate a key pair via HqcAlgorithm
HqcAlgorithm hqc = new HqcAlgorithm();
KeyPair kp = hqc.asymmetricKeyPairGenerator(HqcKeyGenSpec.class).generateKeyPair(spec);
Since:
1.0