Top Inners Fields Constructors Methods
org.bouncycastle.jcajce.provider.asymmetric.slhdsa

public Class HashSignatureSpi

extends BaseDeterministicOrRandomSignature
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jcajce.provider.asymmetric.slhdsa.HashSignatureSpi.Direct
Imports
java.security.InvalidKeyException, .PrivateKey, .PublicKey, .SecureRandom, .SignatureException, org.bouncycastle.crypto.CipherParameters, org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature, org.bouncycastle.pqc.crypto.slhdsa.HashSLHDSASigner, .SLHDSAPrivateKeyParameters, .SLHDSAPublicKeyParameters

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final HashSLHDSASigner
Inherited from org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature:
engineParamsisInitStatekeyParamsparamSpec

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected byte[]
engineSign()

Implements abstract java.security.SignatureSpi.engineSign.

Returns the signature bytes of all the data updated so far.

protected boolean
engineVerify(byte[]
the signature bytes to be verified.
sigBytes
)

Implements abstract java.security.SignatureSpi.engineVerify.

Verifies the passed-in signature.

protected void
protected void
protected void
protected void
protected void
Inherited from org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature:
engineGetParameterengineGetParametersengineInitSignengineInitSignengineInitVerifyengineSetParameterengineSetParameterengineUpdateengineUpdate

Field Detail

signerback to summary
private final HashSLHDSASigner signer

Constructor Detail

HashSignatureSpiback to summary
protected HashSignatureSpi(HashSLHDSASigner signer)

Method Detail

engineSignback to summary
protected byte[] engineSign() throws SignatureException

Implements abstract java.security.SignatureSpi.engineSign.

Doc from java.security.SignatureSpi.engineSign.

Returns the signature bytes of all the data updated so far. The format of the signature depends on the underlying signature scheme.

Returns:byte[]

the signature bytes of the signing operation's result.

Exceptions
SignatureException:
if the engine is not initialized properly or if this signature algorithm is unable to process the input data provided.
engineVerifyback to summary
protected boolean engineVerify(byte[] sigBytes) throws SignatureException

Implements abstract java.security.SignatureSpi.engineVerify.

Doc from java.security.SignatureSpi.engineVerify.

Verifies the passed-in signature.

Parameters
sigBytes:byte[]

the signature bytes to be verified.

Returns:boolean

true if the signature was verified, false if not.

Exceptions
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.
reInitializeback to summary
protected void reInitialize(boolean forSigning, CipherParameters params)

Implements abstract org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature.reInitialize.

signInitback to summary
protected void signInit(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException

Implements abstract org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature.signInit.

updateEngineback to summary
protected void updateEngine(byte b) throws SignatureException

Implements abstract org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature.updateEngine.

updateEngineback to summary
protected void updateEngine(byte[] buf, int off, int len) throws SignatureException

Implements abstract org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature.updateEngine.

verifyInitback to summary
protected void verifyInit(PublicKey publicKey) throws InvalidKeyException

Implements abstract org.bouncycastle.jcajce.provider.asymmetric.util.BaseDeterministicOrRandomSignature.verifyInit.

org.bouncycastle.jcajce.provider.asymmetric.slhdsa back to summary

public Class HashSignatureSpi.Direct

extends HashSignatureSpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.asymmetric.slhdsa.HashSignatureSpi:
engineSignengineVerifyreInitializesignInitupdateEngineupdateEngineverifyInit

Constructor Detail

Directback to summary
public Direct()