Package org.bouncycastle.pqc.jcajce.spec

## Class SPHINCS256KeyGenParameterSpec

- java.lang.Object
- - org.bouncycastle.pqc.jcajce.spec.SPHINCS256KeyGenParameterSpec

- All Implemented Interfaces:
    `java.security.spec.AlgorithmParameterSpec`

      public class SPHINCS256KeyGenParameterSpec
      extends java.lang.Object
      implements java.security.spec.AlgorithmParameterSpec

  Key generation spec for SPHINCS-256 to allow specifying of tree hash.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static java.lang.String` | `SHA3_256` | Use SHA3-256 for the tree generation function.
    `static java.lang.String` | `SHA512_256` | Use SHA512-256 for the tree generation function.

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SPHINCS256KeyGenParameterSpec()` | Default constructor SHA512-256
    `SPHINCS256KeyGenParameterSpec​(java.lang.String treeHash)` | Specify the treehash, one of SHA512-256, or SHA3-256.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getTreeDigest()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### SHA512_256

          public static final java.lang.String SHA512_256

      Use SHA512-256 for the tree generation function.
      See Also:
        Constant Field Values

    - #### SHA3_256

          public static final java.lang.String SHA3_256

      Use SHA3-256 for the tree generation function.
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### SPHINCS256KeyGenParameterSpec

          public SPHINCS256KeyGenParameterSpec()

      Default constructor SHA512-256

    - #### SPHINCS256KeyGenParameterSpec

          public SPHINCS256KeyGenParameterSpec​(java.lang.String treeHash)

      Specify the treehash, one of SHA512-256, or SHA3-256.
      Parameters:
        `treeHash` - the hash for building the public key tree.

  - ### Method Detail

    - #### getTreeDigest

          public java.lang.String getTreeDigest()