Package org.bouncycastle.pqc.jcajce.spec
Class SPHINCS256KeyGenParameterSpec
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.spec.SPHINCS256KeyGenParameterSpec
-
- All Implemented Interfaces:
AlgorithmParameterSpec
public class SPHINCS256KeyGenParameterSpec extends Object implements AlgorithmParameterSpec
Key generation spec for SPHINCS-256 to allow specifying of tree hash.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SHA3_256
Use SHA3-256 for the tree generation function.static String
SHA512_256
Use SHA512-256 for the tree generation function.
-
Constructor Summary
Constructors Constructor Description SPHINCS256KeyGenParameterSpec()
Default constructor SHA512-256SPHINCS256KeyGenParameterSpec(String treeHash)
Specify the treehash, one of SHA512-256, or SHA3-256.
-
-
-
Field Detail
-
SHA512_256
public static final String SHA512_256
Use SHA512-256 for the tree generation function.- See Also:
- Constant Field Values
-
SHA3_256
public static final 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(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 String getTreeDigest()
-
-