| Modifier and Type | Field and Description |
|---|---|
| private byte[][][] | currentAuthPaths
Array of the authentication paths for the current trees of all layers |
| private GMSSDigestProvider | digestProvider
Array of strings containing the name of the hash function used by the OTS and the corresponding provider name |
| private GMSSParameters | gmssPS
The GMSSParameterset |
| private GMSSRandom | gmssRandom
The PRNG |
| private GMSSUtil | gmssUtil
Instance of GMSSUtilities |
| private int[] | index
The current main tree and subtree indices |
| pack-priv GMSSKeyParameters | |
| private int | mdLength
The length of the hash function output |
| private Digest | messDigestOTS
The hash function used by the OTS |
| private Digest | messDigestTrees
Hash function for the construction of the authentication trees |
| private int | numLayer
The number of tree layers |
| private WinternitzOTSignature | ots
An instance of the Winternitz one-time signature |
| private byte[] | pubKeyBytes
The raw GMSS public key |
| private SecureRandom | |
| private byte[][] | subtreeRootSig
The one-time signature of the roots of the current subtrees |
| Access | Constructor and Description |
|---|---|
| public | GMSSSigner(GMSSDigestProvider
the digest to use digest)The standard constructor tries to generate the MerkleTree Algorithm identifier with the corresponding OID. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the signature.the message to be signed. message)Implements org. |
| public void | init(boolean
true if we are generating a signature, false
otherwise. forSigning, CipherParameters key parameters for signature generation. param)Implements org. |
| private void | |
| private void | |
| public boolean | Returns: true if the signature has been verified, false otherwise.the message message, byte[] the signature associated with the message signature)Implements org. |
| currentAuthPaths | back to summary |
|---|---|
| private byte[][][] currentAuthPaths Array of the authentication paths for the current trees of all layers | |
| digestProvider | back to summary |
|---|---|
| private GMSSDigestProvider digestProvider Array of strings containing the name of the hash function used by the OTS and the corresponding provider name | |
| gmssPS | back to summary |
|---|---|
| private GMSSParameters gmssPS The GMSSParameterset | |
| gmssRandom | back to summary |
|---|---|
| private GMSSRandom gmssRandom The PRNG | |
| gmssUtil | back to summary |
|---|---|
| private GMSSUtil gmssUtil Instance of GMSSUtilities | |
| index | back to summary |
|---|---|
| private int[] index The current main tree and subtree indices | |
| key | back to summary |
|---|---|
| pack-priv GMSSKeyParameters key | |
| mdLength | back to summary |
|---|---|
| private int mdLength The length of the hash function output | |
| messDigestOTS | back to summary |
|---|---|
| private Digest messDigestOTS The hash function used by the OTS | |
| messDigestTrees | back to summary |
|---|---|
| private Digest messDigestTrees Hash function for the construction of the authentication trees | |
| numLayer | back to summary |
|---|---|
| private int numLayer The number of tree layers | |
| ots | back to summary |
|---|---|
| private WinternitzOTSignature ots An instance of the Winternitz one-time signature | |
| pubKeyBytes | back to summary |
|---|---|
| private byte[] pubKeyBytes The raw GMSS public key | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| subtreeRootSig | back to summary |
|---|---|
| private byte[][] subtreeRootSig The one-time signature of the roots of the current subtrees | |
| GMSSSigner | back to summary |
|---|---|
| public GMSSSigner(GMSSDigestProvider digest) The standard constructor tries to generate the MerkleTree Algorithm identifier with the corresponding OID.
| |
| generateSignature | back to summary |
|---|---|
| public byte[] generateSignature(byte[] message) Implements org. Signs a message.
| |
| init | back to summary |
|---|---|
| public void init(boolean forSigning, CipherParameters param) Implements org. Doc from org. initialise the signer for signature generation or signature verification.
| |
| initSign | back to summary |
|---|---|
| private void initSign() Initializes the signature algorithm for signing a message. | |
| initVerify | back to summary |
|---|---|
| private void initVerify() Initializes the signature algorithm for verifying a signature. | |
| verifySignature | back to summary |
|---|---|
| public boolean verifySignature(byte[] message, byte[] signature) Implements org. This function verifies the signature of the message that has been updated, with the aid of the public key.
| |