Class MLDSASignatureAlgorithmFactory
java.lang.Object
tech.kwik.agent15.pqc.MLDSASignatureAlgorithmFactory
- All Implemented Interfaces:
SignatureAlgorithmFactory
Provides the ML-DSA (FIPS 204) post-quantum signature
schemes. Registered as a
SignatureAlgorithmFactory service, so core Agent15 picks these schemes up
whenever this module is on the class path.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforSignatureScheme(TlsConstants.SignatureScheme signatureScheme) Creates a signature algorithm for the given signature scheme.Returns the signature schemes this factory can create a signature algorithm for; exactly for these schemesSignatureAlgorithmFactory.forSignatureScheme(TlsConstants.SignatureScheme)returns a non-null value.voidinit()Performs any one-time initialization this factory's signature algorithms need (e.g.
-
Constructor Details
-
MLDSASignatureAlgorithmFactory
public MLDSASignatureAlgorithmFactory()
-
-
Method Details
-
forSignatureScheme
Description copied from interface:SignatureAlgorithmFactoryCreates a signature algorithm for the given signature scheme.- Specified by:
forSignatureSchemein interfaceSignatureAlgorithmFactory- Parameters:
signatureScheme-- Returns:
- the signature algorithm, or null when this factory does not support the given scheme
-
getSupportedSignatureSchemes
Description copied from interface:SignatureAlgorithmFactoryReturns the signature schemes this factory can create a signature algorithm for; exactly for these schemesSignatureAlgorithmFactory.forSignatureScheme(TlsConstants.SignatureScheme)returns a non-null value.- Specified by:
getSupportedSignatureSchemesin interfaceSignatureAlgorithmFactory- Returns:
-
init
public void init()Description copied from interface:SignatureAlgorithmFactoryPerforms any one-time initialization this factory's signature algorithms need (e.g. warming up a lazily derived value), so that cost is paid here rather than during a handshake. Optional to call; implementations that need no warm-up may leave this empty.- Specified by:
initin interfaceSignatureAlgorithmFactory
-