public class MLDSA extends SignatureSpi
The base signature SPI class for the ML-DSA [0] algorithm. It is responsible for signature creation and verification and contains the basic functionality to perform these operations.
References: [0] FIPS 204appRandom| Constructor and Description |
|---|
MLDSA() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
engineGetParameter(String s)
Not Supported
|
protected AlgorithmParameters |
engineGetParameters() |
protected void |
engineInitSign(PrivateKey privateKey) |
protected void |
engineInitSign(PrivateKey privateKey,
SecureRandom random) |
protected void |
engineInitVerify(PublicKey publicKey) |
protected void |
engineSetParameter(AlgorithmParameterSpec parameterSpec)
Call this to change if randomized Signing is used or not or to change the context String.
|
protected void |
engineSetParameter(String param,
Object o)
Not Supported
|
protected byte[] |
engineSign() |
protected void |
engineUpdate(byte b) |
protected void |
engineUpdate(byte[] bytes,
int off,
int len) |
protected boolean |
engineVerify(byte[] sigBytes) |
protected iaik.asn1.structures.AlgorithmID |
getOID() |
clone, engineSign, engineUpdate, engineVerifyprotected iaik.asn1.structures.AlgorithmID getOID()
protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException
engineInitVerify in class SignatureSpiInvalidKeyExceptionprotected void engineInitSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException
engineInitSign in class SignatureSpiInvalidKeyExceptionprotected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
engineInitSign in class SignatureSpiInvalidKeyExceptionprotected void engineUpdate(byte b)
engineUpdate in class SignatureSpiprotected void engineUpdate(byte[] bytes,
int off,
int len)
throws SignatureException
engineUpdate in class SignatureSpiSignatureExceptionprotected byte[] engineSign()
throws SignatureException
engineSign in class SignatureSpiSignatureExceptionprotected boolean engineVerify(byte[] sigBytes)
throws SignatureException
engineVerify in class SignatureSpiSignatureExceptionprotected void engineSetParameter(String param, Object o) throws InvalidParameterException
engineSetParameter in class SignatureSpiInvalidParameterExceptionprotected void engineSetParameter(AlgorithmParameterSpec parameterSpec) throws InvalidAlgorithmParameterException
engineSetParameter in class SignatureSpiparameterSpec - the parametersInvalidAlgorithmParameterException - when the AlgorithmParameterSpec is not an instance of
MlDsaAlgorithmParameterSpec, or when the method is called
after initialization.protected Object engineGetParameter(String s) throws InvalidParameterException
engineGetParameter in class SignatureSpiInvalidParameterExceptionprotected AlgorithmParameters engineGetParameters()
engineGetParameters in class SignatureSpiCopyright © 2020–2024 Stiftung SIC. All rights reserved.