java.lang.Object
java.security.SignatureSpi
com.ibm.crypto.hdwrCCA.provider.DilithiumSignature
@Deprecated(since="21.0.11.0",
forRemoval=true)
public class DilithiumSignature
extends SignatureSpi
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by ML-DSA implementation. This CRYSTALS-Dilithium implementation is
deprecated and will be removed in a future release, in alignment with NIST's
latest recommendations for post-quantum cryptography modernization.
Users should transition to the finalized ML-DSA standards.
This class is a concrete implementation for CRYSTALS-Dilithium signing.
- See Also:
-
Field Summary
Fields inherited from class java.security.SignatureSpi
appRandom -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectengineGetParameter(String param) Deprecated, for removal: This API element is subject to removal in a future version.Gets the value of the specified algorithm parameter.protected voidengineInitSign(PrivateKey privateKey) Deprecated, for removal: This API element is subject to removal in a future version.Initialize the signature object with a CRYSTALS-Dilithium private key.protected voidengineInitVerify(PublicKey publicKey) Deprecated, for removal: This API element is subject to removal in a future version.Initialize the signature object with a Dilithium public key.protected voidengineSetParameter(String param, Object value) Deprecated, for removal: This API element is subject to removal in a future version.Sets the specified algorithm parameter to the specified value.protected byte[]Deprecated, for removal: This API element is subject to removal in a future version.Returns the signature bytes of all the data updated so far.protected voidengineUpdate(byte b) Deprecated, for removal: This API element is subject to removal in a future version.Updates the data to be signed or verified using the specified byte.protected voidengineUpdate(byte[] b, int off, int len) Deprecated, for removal: This API element is subject to removal in a future version.Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset.protected booleanengineVerify(byte[] sigBytes) Deprecated, for removal: This API element is subject to removal in a future version.Verifies the passed-in signature.Methods inherited from class java.security.SignatureSpi
clone, engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerify
-
Constructor Details
-
DilithiumSignature
public DilithiumSignature()Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of this class.
-
-
Method Details
-
engineInitVerify
Deprecated, for removal: This API element is subject to removal in a future version.Initialize the signature object with a Dilithium public key.- Specified by:
engineInitVerifyin classSignatureSpi- Parameters:
publicKey- the Dilithium public key- Throws:
InvalidKeyException- ifpublicKeyis not a valid CRYSTALS-Dilithium public key.
-
engineInitSign
Deprecated, for removal: This API element is subject to removal in a future version.Initialize the signature object with a CRYSTALS-Dilithium private key.- Specified by:
engineInitSignin classSignatureSpi- Parameters:
privateKey- the Dilithium private key- Throws:
InvalidKeyException- ifprivateKeyis not a valid CRYSTALS-Dilithium private key.
-
engineUpdate
Deprecated, for removal: This API element is subject to removal in a future version.Updates the data to be signed or verified using the specified byte.- Specified by:
engineUpdatein classSignatureSpi- Parameters:
b- the byte to use for the update- Throws:
SignatureException
-
engineUpdate
Deprecated, for removal: This API element is subject to removal in a future version.Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset.- Specified by:
engineUpdatein classSignatureSpi- Parameters:
buff- the array of bytesoff- the offset to start from in the array of byteslen- the number of bytes to use, starting at offset- Throws:
SignatureException
-
engineSign
Deprecated, for removal: This API element is subject to removal in a future version.Returns the signature bytes of all the data updated so far.- Specified by:
engineSignin classSignatureSpi- Returns:
- the signature bytes of the signing operation's result.
- Throws:
SignatureException- if the engine is not initialized properly or if this signature algorithm is unable to process the input data provided.
-
engineVerify
Deprecated, for removal: This API element is subject to removal in a future version.Verifies the passed-in signature.- Specified by:
engineVerifyin classSignatureSpi- Parameters:
signature- the signature bytes to be verified- Returns:
- true if the signature was verified, false if not.
- Throws:
SignatureException- if the engine is not initialized properly, the passed-in signature is improperly encoded or of the wrong type, if this signature algorithm is unable to process the input data provided, etc.
-
engineSetParameter
Deprecated, for removal: This API element is subject to removal in a future version.Sets the specified algorithm parameter to the specified value. Please note that this method has no meaning for this provider and has been deprecated.- Specified by:
engineSetParameterin classSignatureSpi- Parameters:
key- the string identifier of the parameterparam- the parameter value- Throws:
UnsupportedOperationException- is always thrown.InvalidParameterException
-
engineGetParameter
Deprecated, for removal: This API element is subject to removal in a future version.Gets the value of the specified algorithm parameter. Please note that this method has no meaning for this provider, and has been deprecated.- Specified by:
engineGetParameterin classSignatureSpi- Parameters:
key- the string name of the parameter- Throws:
UnsupportedOperationException- is always thrown.InvalidParameterException
-