Bouncy Castle Cryptography Library 1.81

org.bouncycastle.pqc.jcajce.spec
Class SPHINCS256KeyGenParameterSpec

java.lang.Object
  extended byorg.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
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
SPHINCS256KeyGenParameterSpec()
          Default constructor SHA512-256
SPHINCS256KeyGenParameterSpec(java.lang.String treeHash)
          Specify the treehash, one of SHA512-256, or SHA3-256.
 
Method Summary
 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()

Bouncy Castle Cryptography Library 1.81