Class SlhDsaKeyGenBuilder
java.lang.Object
zeroecho.core.alg.slhdsa.SlhDsaKeyGenBuilder
- All Implemented Interfaces:
AsymmetricKeyPairGenerator<SlhDsaKeyGenSpec>
public final class SlhDsaKeyGenBuilder
extends Object
implements AsymmetricKeyPairGenerator<SlhDsaKeyGenSpec>
Key pair builder for SLH-DSA (FIPS 205) using the Bouncy Castle PQC provider.
This builder maps SlhDsaKeyGenSpec to the appropriate
org.bouncycastle.jcajce.spec.SLHDSAParameterSpec constant. Reflection
is used to avoid a hard dependency on any particular set of parameter
constants across provider versions.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates a key pair.
-
Constructor Details
-
SlhDsaKeyGenBuilder
public SlhDsaKeyGenBuilder()Creates a stateless SLH-DSA key-pair generator.
-
-
Method Details
-
generateKeyPair
Description copied from interface:AsymmetricKeyPairGeneratorGenerates a key pair.- Specified by:
generateKeyPairin interfaceAsymmetricKeyPairGenerator<SlhDsaKeyGenSpec>- Parameters:
spec- generation parameters- Returns:
- generated key pair
- Throws:
GeneralSecurityException- if generation fails
-