public class SLHDSASignature extends SignatureSpi
The base signature SPI class for the SLH-DSA [0] algorithm. It is responsible for signature creation and verification and contains the basic functionality to perform these operations.
References: [0] FIPS 205appRandom| Constructor and Description |
|---|
SLHDSASignature()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
engineGetParameter(String param)
Deprecated.
|
protected AlgorithmParameters |
engineGetParameters()
Not Supported.
|
protected void |
engineInitSign(PrivateKey privateKey) |
protected void |
engineInitSign(PrivateKey privateKey,
SecureRandom random) |
protected void |
engineInitVerify(PublicKey publicKey) |
protected void |
engineSetParameter(AlgorithmParameterSpec parameterSpec)
Changes the randomized signing option or the context String depending on the paramter specification.
|
protected void |
engineSetParameter(String param,
Object value)
Deprecated.
|
protected byte[] |
engineSign() |
protected void |
engineUpdate(byte b) |
protected void |
engineUpdate(byte[] b,
int off,
int len) |
protected boolean |
engineVerify(byte[] sigBytes) |
protected iaik.asn1.structures.AlgorithmID |
getOID()
Returns the algorithm ID (OID).
|
clone, engineSign, engineUpdate, engineVerifypublic SLHDSASignature()
Signature.getInstance("SLHDSA");
to create a new signature object.protected 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[] b,
int off,
int len)
engineUpdate in class SignatureSpiprotected byte[] engineSign()
throws SignatureException
engineSign in class SignatureSpiSignatureExceptionprotected boolean engineVerify(byte[] sigBytes)
throws SignatureException
engineVerify in class SignatureSpiSignatureExceptionprotected void engineSetParameter(AlgorithmParameterSpec parameterSpec) throws InvalidAlgorithmParameterException
engineSetParameter in class SignatureSpiparameterSpec - the parameters, which has to be an instance of SettingsSLHDSAAlgorithmParameterSpecInvalidAlgorithmParameterException - the AlgorithmParameterSpec is not an instance of
SLHDSAAlgorithmParameterSpec, or the method is called after initialization.@Deprecated protected void engineSetParameter(String param, Object value) throws InvalidParameterException
engineSetParameter in class SignatureSpiInvalidParameterException@Deprecated protected Object engineGetParameter(String param) throws InvalidParameterException
engineGetParameter in class SignatureSpiInvalidParameterExceptionprotected AlgorithmParameters engineGetParameters() throws InvalidParameterException
engineGetParameters in class SignatureSpiInvalidParameterExceptionCopyright © 2020–2025 Stiftung SIC. All rights reserved.