Top Description Inners Fields Constructors Methods
sun.security.provider

public final Class HSS

extends SignatureSpi
Class Inheritance
Imports
sun.security.util.*, sun.security.x509.AlgorithmId, .X509Key, java.io.*, java.security.*, .SecureRandom, java.security.spec.*, java.util.Arrays

Implementation of the Hierarchical Signature System using the Leighton-Micali Signatures (HSS/LMS) as described in RFC 8554 and NIST Special publication 800-208.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
public static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private ByteArrayOutputStream
private HSS.HSSPublicKey
Inherited from java.security.SignatureSpi:
appRandom

Constructor Summary

AccessConstructor and Description
public
HSS()

Method Summary

Modifier and TypeMethod and Description
protected AlgorithmParameters
engineGetParameter(String
the string name of the parameter.
param
)

Implements abstract java.security.SignatureSpi.engineGetParameter.

Deprecated

Gets the value of the specified algorithm parameter.

protected AlgorithmParameters
engineGetParameters()

Overrides java.security.SignatureSpi.engineGetParameters.

Returns the parameters used with this Signature object.

protected void
engineInitSign(PrivateKey
the private key of the identity whose signature will be generated.
privateKey
)

Implements abstract java.security.SignatureSpi.engineInitSign.

Initializes this Signature object with the specified private key for signing operations.

protected void
engineInitSign(PrivateKey
the private key of the identity whose signature will be generated.
prk
,
SecureRandom
the source of randomness
sr
)

Overrides java.security.SignatureSpi.engineInitSign.

Initializes this Signature object with the specified private key and source of randomness for signing operations.

protected void
engineInitVerify(PublicKey
the public key of the identity whose signature is going to be verified.
publicKey
)

Implements abstract java.security.SignatureSpi.engineInitVerify.

Initializes this Signature object with the specified public key for verification operations.

protected void
engineSetParameter(String
the string identifier of the parameter.
param
,
Object
the parameter value.
value
)

Implements abstract java.security.SignatureSpi.engineSetParameter.

Deprecated

Sets the specified algorithm parameter to the specified value.

protected void
engineSetParameter(AlgorithmParameterSpec
the parameters
params
)

Overrides java.security.SignatureSpi.engineSetParameter.

Initializes this Signature object with the specified parameter values.

protected byte[]
engineSign()

Implements abstract java.security.SignatureSpi.engineSign.

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

protected void
engineUpdate(byte
the byte to use for the update.
data
)

Implements abstract java.security.SignatureSpi.engineUpdate.

Updates the data to be signed or verified using the specified byte.

protected void
engineUpdate(byte[]
the array of bytes
data
,
int
the offset to start from in the array of bytes
off
,
int
the number of bytes to use, starting at offset
len
)

Implements abstract java.security.SignatureSpi.engineUpdate.

Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset.

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

Implements abstract java.security.SignatureSpi.engineVerify.

Verifies the passed-in signature.

Inherited from java.security.SignatureSpi:
cloneengineSignengineUpdateengineVerify