Class HashSignatureSpi
- java.lang.Object
-
- java.security.SignatureSpi
-
- java.security.Signature
-
- org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature
-
- org.bouncycastle.jcajce.provider.asymmetric.mldsa.HashSignatureSpi
-
- Direct Known Subclasses:
HashSignatureSpi.MLDSA
,HashSignatureSpi.MLDSA44
,HashSignatureSpi.MLDSA65
,HashSignatureSpi.MLDSA87
public class HashSignatureSpi extends BaseDeterministicOrRandomSignature
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HashSignatureSpi.MLDSA
static class
HashSignatureSpi.MLDSA44
static class
HashSignatureSpi.MLDSA65
static class
HashSignatureSpi.MLDSA87
-
Field Summary
-
Fields inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature
engineParams, isInitState, keyParams, paramSpec
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HashSignatureSpi(HashMLDSASigner signer)
protected
HashSignatureSpi(HashMLDSASigner signer, MLDSAParameters parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
engineSign()
protected boolean
engineVerify(byte[] sigBytes)
protected void
reInitialize(boolean forSigning, CipherParameters params)
protected void
signInit(java.security.PrivateKey privateKey, java.security.SecureRandom random)
protected void
updateEngine(byte b)
protected void
updateEngine(byte[] buf, int off, int len)
protected void
verifyInit(java.security.PublicKey publicKey)
-
Methods inherited from class org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature
engineGetParameter, engineGetParameters, engineInitSign, engineInitSign, engineInitVerify, engineSetParameter, engineSetParameter, engineUpdate, engineUpdate
-
-
-
-
Constructor Detail
-
HashSignatureSpi
protected HashSignatureSpi(HashMLDSASigner signer)
-
HashSignatureSpi
protected HashSignatureSpi(HashMLDSASigner signer, MLDSAParameters parameters)
-
-
Method Detail
-
verifyInit
protected void verifyInit(java.security.PublicKey publicKey) throws java.security.InvalidKeyException
- Specified by:
verifyInit
in classBaseDeterministicOrRandomSignature
- Throws:
java.security.InvalidKeyException
-
signInit
protected void signInit(java.security.PrivateKey privateKey, java.security.SecureRandom random) throws java.security.InvalidKeyException
- Specified by:
signInit
in classBaseDeterministicOrRandomSignature
- Throws:
java.security.InvalidKeyException
-
updateEngine
protected void updateEngine(byte b) throws java.security.SignatureException
- Specified by:
updateEngine
in classBaseDeterministicOrRandomSignature
- Throws:
java.security.SignatureException
-
updateEngine
protected void updateEngine(byte[] buf, int off, int len) throws java.security.SignatureException
- Specified by:
updateEngine
in classBaseDeterministicOrRandomSignature
- Throws:
java.security.SignatureException
-
engineSign
protected byte[] engineSign() throws java.security.SignatureException
- Specified by:
engineSign
in classjava.security.SignatureSpi
- Throws:
java.security.SignatureException
-
engineVerify
protected boolean engineVerify(byte[] sigBytes) throws java.security.SignatureException
- Specified by:
engineVerify
in classjava.security.SignatureSpi
- Throws:
java.security.SignatureException
-
reInitialize
protected void reInitialize(boolean forSigning, CipherParameters params)
- Specified by:
reInitialize
in classBaseDeterministicOrRandomSignature
-
-