Class XMSSSignatureSpi
java.lang.Object
java.security.SignatureSpi
java.security.Signature
org.bouncycastle.pqc.jcajce.provider.xmss.XMSSSignatureSpi
- All Implemented Interfaces:
StateAwareSignature
- Direct Known Subclasses:
XMSSSignatureSpi.generic
,XMSSSignatureSpi.withSha256
,XMSSSignatureSpi.withSha256andPrehash
,XMSSSignatureSpi.withSha512
,XMSSSignatureSpi.withSha512andPrehash
,XMSSSignatureSpi.withShake128
,XMSSSignatureSpi.withShake128_512andPrehash
,XMSSSignatureSpi.withShake128andPrehash
,XMSSSignatureSpi.withShake256
,XMSSSignatureSpi.withShake256_1024andPrehash
,XMSSSignatureSpi.withShake256andPrehash
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
Fields inherited from class java.security.Signature
SIGN, state, UNINITIALIZED, VERIFY
Fields inherited from class java.security.SignatureSpi
appRandom
-
Constructor Summary
ModifierConstructorDescriptionprotected
XMSSSignatureSpi
(String algorithm) protected
XMSSSignatureSpi
(String sigName, Digest digest, XMSSSigner signer) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
engineGetParameter
(String param) Deprecated.protected void
engineInitSign
(PrivateKey privateKey) protected void
engineInitSign
(PrivateKey privateKey, SecureRandom random) protected void
engineInitVerify
(PublicKey publicKey) protected void
engineSetParameter
(String param, Object value) Deprecated.replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)protected void
protected byte[]
protected void
engineUpdate
(byte b) protected void
engineUpdate
(byte[] b, int off, int len) protected boolean
engineVerify
(byte[] sigBytes) Return the current version of the private key with the updated state.boolean
Return true if this Signature object can be used for signing.Methods inherited from class java.security.Signature
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verify
Methods inherited from class java.security.SignatureSpi
engineGetParameters, engineSign, engineUpdate, engineVerify
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bouncycastle.pqc.jcajce.interfaces.StateAwareSignature
getAlgorithm, initSign, initSign, initVerify, initVerify, sign, sign, update, update, update, update, verify, verify
-
Constructor Details
-
XMSSSignatureSpi
-
XMSSSignatureSpi
-
-
Method Details
-
engineInitVerify
- Specified by:
engineInitVerify
in classSignatureSpi
- Throws:
InvalidKeyException
-
engineInitSign
protected void engineInitSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException - Overrides:
engineInitSign
in classSignatureSpi
- Throws:
InvalidKeyException
-
engineInitSign
- Specified by:
engineInitSign
in classSignatureSpi
- Throws:
InvalidKeyException
-
engineUpdate
- Specified by:
engineUpdate
in classSignatureSpi
- Throws:
SignatureException
-
engineUpdate
- Specified by:
engineUpdate
in classSignatureSpi
- Throws:
SignatureException
-
engineSign
- Specified by:
engineSign
in classSignatureSpi
- Throws:
SignatureException
-
engineVerify
- Specified by:
engineVerify
in classSignatureSpi
- Throws:
SignatureException
-
engineSetParameter
- Overrides:
engineSetParameter
in classSignatureSpi
-
engineSetParameter
Deprecated.replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)- Specified by:
engineSetParameter
in classSignatureSpi
-
engineGetParameter
Deprecated.- Specified by:
engineGetParameter
in classSignatureSpi
-
isSigningCapable
public boolean isSigningCapable()Description copied from interface:StateAwareSignature
Return true if this Signature object can be used for signing. False otherwise.- Specified by:
isSigningCapable
in interfaceStateAwareSignature
- Returns:
- true if we are capable of making signatures.
-
getUpdatedPrivateKey
Description copied from interface:StateAwareSignature
Return the current version of the private key with the updated state.Note: calling this method will effectively disable the Signature object from being used for further signature generation without another call to initSign().
- Specified by:
getUpdatedPrivateKey
in interfaceStateAwareSignature
- Returns:
- an updated private key object, which can be used for later signature generation.
-