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, engineVerify
public 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 SignatureSpi
InvalidKeyException
protected void engineInitSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException
engineInitSign
in class SignatureSpi
InvalidKeyException
protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
engineInitSign
in class SignatureSpi
InvalidKeyException
protected void engineUpdate(byte b)
engineUpdate
in class SignatureSpi
protected void engineUpdate(byte[] b, int off, int len)
engineUpdate
in class SignatureSpi
protected byte[] engineSign() throws SignatureException
engineSign
in class SignatureSpi
SignatureException
protected boolean engineVerify(byte[] sigBytes) throws SignatureException
engineVerify
in class SignatureSpi
SignatureException
protected void engineSetParameter(AlgorithmParameterSpec parameterSpec) throws InvalidAlgorithmParameterException
engineSetParameter
in class SignatureSpi
parameterSpec
- 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 SignatureSpi
InvalidParameterException
@Deprecated protected Object engineGetParameter(String param) throws InvalidParameterException
engineGetParameter
in class SignatureSpi
InvalidParameterException
protected AlgorithmParameters engineGetParameters() throws InvalidParameterException
engineGetParameters
in class SignatureSpi
InvalidParameterException
Copyright © 2020–2025 Stiftung SIC. All rights reserved.