GMSSSigner
| Modifier and Type | Field and Description |
|---|---|
| private byte[][] | currentRootSigs
An array of the RootSignatures |
| private byte[][] | currentSeeds
An array of the seeds for the PRGN (for main tree, and all current subtrees) |
| private GMSSDigestProvider | digestProvider
Class of hash function to use |
| private GMSSKeyGenerationParameters | |
| private GMSSParameters | gmssPS
Instance of GMSSParameterset |
| private GMSSRandom | gmssRandom
The source of randomness for OTS private key generation |
| private int[] | heightOfTrees
An array of the heights of the authentication trees of each layer |
| private boolean | initialized
Flag indicating if the class already has been initialized |
| private int[] | K
The parameter K needed for the authentication path computation |
| private int | mdLength
The length of the seed for the PRNG |
| private Digest | messDigestTree
The hash function used for the construction of the authentication trees |
| private byte[][] | nextNextSeeds
An array of seeds for the PRGN (for all subtrees after next) |
| private int | numLayer
the number of Layers |
| public static final String | OID
The GMSS OID. |
| private int[] | otsIndex
An array of the Winternitz parameter 'w' of each layer |
| Access | Constructor and Description |
|---|---|
| public | GMSSKeyPairGenerator(GMSSDigestProvider
provider for digest implementations. digestProvider)The standard constructor tries to generate the GMSS algorithm identifier with the corresponding OID. |
| Modifier and Type | Method and Description |
|---|---|
| private GMSSRootCalc | generateCurrentAuthpathAndRoot(byte[]
stores the root of the lower tree lowerRoot, Vector<E> stack used for the treehash instance created by this method currentStack, byte[] starting seeds seed, int actual layer h)calculates the authpath for tree in layer h which starts with seed[h] additionally computes the rootSignature of underlaying root |
| public AsymmetricCipherKeyPair | generateKeyPair()
Implements org. return an AsymmetricCipherKeyPair containing the generated keys. |
| private GMSSRootCalc | generateNextAuthpathAndRoot(Vector<E>
stack used for the treehash instance created by this method nextStack, byte[] starting seeds seed, int actual layer h)calculates the authpath and root for tree in layer h which starts with seed[h] |
| private AsymmetricCipherKeyPair | Returns: Key pair containing a JDKGMSSPublicKey and a JDKGMSSPrivateKeyGenerates the GMSS key pair. |
| public void | init(KeyGenerationParameters
the parameters the key pair is to be initialised with. param)Implements org. intialise the key pair generator. |
| public void | initialize(int
Assigns the parameters used for the GMSS signatures. There are
3 choices: keySize, SecureRandom 1. keysize <= 10: creates 2^10 signatures using the parameterset P = (2, (5, 5), (3, 3), (3, 3)) 2. keysize > 10 and <= 20: creates 2^20 signatures using the parameterset P = (2, (10, 10), (5, 4), (2, 2)) 3. keysize > 20: creates 2^40 signatures using the parameterset P = (2, (10, 10, 10, 10), (9, 9, 9, 3), (2, 2, 2, 2)) not used by GMSS, the SHA1PRNG of the SUN Provider is always
used secureRandom)This method initializes the GMSS KeyPairGenerator using an integer value
|
| public void | initialize(KeyGenerationParameters param)
Initalizes the key pair generator using a parameter set as input |
| private void | initializeDefault()
This method is called by generateKeyPair() in case that no other initialization method has been called by the user |
| currentRootSigs | back to summary |
|---|---|
| private byte[][] currentRootSigs An array of the RootSignatures | |
| currentSeeds | back to summary |
|---|---|
| private byte[][] currentSeeds An array of the seeds for the PRGN (for main tree, and all current subtrees) | |
| digestProvider | back to summary |
|---|---|
| private GMSSDigestProvider digestProvider Class of hash function to use | |
| gmssParams | back to summary |
|---|---|
| private GMSSKeyGenerationParameters gmssParams | |
| gmssPS | back to summary |
|---|---|
| private GMSSParameters gmssPS Instance of GMSSParameterset | |
| gmssRandom | back to summary |
|---|---|
| private GMSSRandom gmssRandom The source of randomness for OTS private key generation | |
| heightOfTrees | back to summary |
|---|---|
| private int[] heightOfTrees An array of the heights of the authentication trees of each layer | |
| initialized | back to summary |
|---|---|
| private boolean initialized Flag indicating if the class already has been initialized | |
| K | back to summary |
|---|---|
| private int[] K The parameter K needed for the authentication path computation | |
| mdLength | back to summary |
|---|---|
| private int mdLength The length of the seed for the PRNG | |
| messDigestTree | back to summary |
|---|---|
| private Digest messDigestTree The hash function used for the construction of the authentication trees | |
| nextNextSeeds | back to summary |
|---|---|
| private byte[][] nextNextSeeds An array of seeds for the PRGN (for all subtrees after next) | |
| numLayer | back to summary |
|---|---|
| private int numLayer the number of Layers | |
| OID | back to summary |
|---|---|
| public static final String OID The GMSS OID. | |
| otsIndex | back to summary |
|---|---|
| private int[] otsIndex An array of the Winternitz parameter 'w' of each layer | |
| GMSSKeyPairGenerator | back to summary |
|---|---|
| public GMSSKeyPairGenerator(GMSSDigestProvider digestProvider) The standard constructor tries to generate the GMSS algorithm identifier with the corresponding OID.
| |
| generateCurrentAuthpathAndRoot | back to summary |
|---|---|
| private GMSSRootCalc generateCurrentAuthpathAndRoot(byte[] lowerRoot, Vector<E> currentStack, byte[] seed, int h) calculates the authpath for tree in layer h which starts with seed[h] additionally computes the rootSignature of underlaying root
| |
| generateKeyPair | back to summary |
|---|---|
| public AsymmetricCipherKeyPair generateKeyPair() Implements org. Doc from org. return an AsymmetricCipherKeyPair containing the generated keys.
| |
| generateNextAuthpathAndRoot | back to summary |
|---|---|
| private GMSSRootCalc generateNextAuthpathAndRoot(Vector<E> nextStack, byte[] seed, int h) calculates the authpath and root for tree in layer h which starts with seed[h]
| |
| genKeyPair | back to summary |
|---|---|
| private AsymmetricCipherKeyPair genKeyPair() Generates the GMSS key pair. The public key is an instance of JDKGMSSPublicKey, the private key is an instance of JDKGMSSPrivateKey.
| |
| init | back to summary |
|---|---|
| public void init(KeyGenerationParameters param) Implements org. Doc from org. intialise the key pair generator.
| |
| initialize | back to summary |
|---|---|
| public void initialize(int keySize, SecureRandom secureRandom) This method initializes the GMSS KeyPairGenerator using an integer value
A given
| |
| initialize | back to summary |
|---|---|
| public void initialize(KeyGenerationParameters param) Initalizes the key pair generator using a parameter set as input | |
| initializeDefault | back to summary |
|---|---|
| private void initializeDefault() This method is called by generateKeyPair() in case that no other initialization method has been called by the user | |