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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields inherited from class java.security.Signature
SIGN, state, UNINITIALIZED, VERIFYFields inherited from class java.security.SignatureSpi
appRandom -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXMSSSignatureSpi(String algorithm) protectedXMSSSignatureSpi(String sigName, Digest digest, XMSSSigner signer) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectengineGetParameter(String param) Deprecated.protected voidengineInitSign(PrivateKey privateKey) protected voidengineInitSign(PrivateKey privateKey, SecureRandom random) protected voidengineInitVerify(PublicKey publicKey) protected voidengineSetParameter(String param, Object value) Deprecated.replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)protected voidprotected byte[]protected voidengineUpdate(byte b) protected voidengineUpdate(byte[] b, int off, int len) protected booleanengineVerify(byte[] sigBytes) Return the current version of the private key with the updated state.booleanReturn 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, verifyMethods inherited from class java.security.SignatureSpi
engineGetParameters, engineSign, engineUpdate, engineVerifyMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
engineInitVerifyin classSignatureSpi- Throws:
InvalidKeyException
-
engineInitSign
protected void engineInitSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException - Overrides:
engineInitSignin classSignatureSpi- Throws:
InvalidKeyException
-
engineInitSign
- Specified by:
engineInitSignin classSignatureSpi- Throws:
InvalidKeyException
-
engineUpdate
- Specified by:
engineUpdatein classSignatureSpi- Throws:
SignatureException
-
engineUpdate
- Specified by:
engineUpdatein classSignatureSpi- Throws:
SignatureException
-
engineSign
- Specified by:
engineSignin classSignatureSpi- Throws:
SignatureException
-
engineVerify
- Specified by:
engineVerifyin classSignatureSpi- Throws:
SignatureException
-
engineSetParameter
- Overrides:
engineSetParameterin classSignatureSpi
-
engineSetParameter
Deprecated.replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)- Specified by:
engineSetParameterin classSignatureSpi
-
engineGetParameter
Deprecated.- Specified by:
engineGetParameterin classSignatureSpi
-
isSigningCapable
public boolean isSigningCapable()Description copied from interface:StateAwareSignatureReturn true if this Signature object can be used for signing. False otherwise.- Specified by:
isSigningCapablein interfaceStateAwareSignature- Returns:
- true if we are capable of making signatures.
-
getUpdatedPrivateKey
Description copied from interface:StateAwareSignatureReturn 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:
getUpdatedPrivateKeyin interfaceStateAwareSignature- Returns:
- an updated private key object, which can be used for later signature generation.
-