public class XMSSSignatureSpi extends Signature implements StateAwareSignature
Modifier and Type | Class and Description |
---|---|
static class |
XMSSSignatureSpi.withSha256 |
static class |
XMSSSignatureSpi.withSha512 |
static class |
XMSSSignatureSpi.withShake128 |
static class |
XMSSSignatureSpi.withShake256 |
SIGN, state, UNINITIALIZED, VERIFY
appRandom
Modifier | Constructor and Description |
---|---|
protected |
XMSSSignatureSpi(String algorithm) |
protected |
XMSSSignatureSpi(String sigName,
Digest digest,
XMSSSigner signer) |
Modifier and Type | Method and Description |
---|---|
protected 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(AlgorithmParameterSpec params) |
protected void |
engineSetParameter(String param,
Object value)
Deprecated.
replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)
|
protected byte[] |
engineSign() |
protected void |
engineUpdate(byte b) |
protected void |
engineUpdate(byte[] b,
int off,
int len) |
protected boolean |
engineVerify(byte[] sigBytes) |
PrivateKey |
getUpdatedPrivateKey()
Return the current version of the private key with the updated state.
|
boolean |
isSigningCapable()
Return true if this Signature object can be used for signing.
|
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verify
engineGetParameters, engineSign, engineUpdate, engineVerify
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAlgorithm, initSign, initSign, initVerify, initVerify, sign, sign, update, update, update, update, verify, verify
protected XMSSSignatureSpi(String algorithm)
protected XMSSSignatureSpi(String sigName, Digest digest, XMSSSigner signer)
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) throws SignatureException
engineUpdate
in class SignatureSpi
SignatureException
protected void engineUpdate(byte[] b, int off, int len) throws SignatureException
engineUpdate
in class SignatureSpi
SignatureException
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 params)
engineSetParameter
in class SignatureSpi
protected void engineSetParameter(String param, Object value)
engineSetParameter
in class SignatureSpi
protected Object engineGetParameter(String param)
engineGetParameter
in class SignatureSpi
public boolean isSigningCapable()
StateAwareSignature
isSigningCapable
in interface StateAwareSignature
public PrivateKey getUpdatedPrivateKey()
StateAwareSignature
Note: calling this method will effectively disable the Signature object from being used for further signature generation without another call to initSign().
getUpdatedPrivateKey
in interface StateAwareSignature
Copyright © 2020 BouncyCastle.org. All rights reserved.