Class SPHINCSParameters

java.lang.Object
de.hda.fbi.ucs.eucrite.parameters.SPHINCSParameters
All Implemented Interfaces:
AlgorithmParameters

public class SPHINCSParameters
extends Object
implements AlgorithmParameters
The parameters required for the SPHINCS signature scheme. SPHINCS is a quantum-safe, hash-based signature scheme. Other then the hash based signature schemes XMSS and XMSSMT, it's stateless.
  • Constructor Details

    • SPHINCSParameters

      public SPHINCSParameters​(SPHINCSParameters.Mode mode)
      Creates a new SPHINCSParameters object with the given treeDigest. SPHINCS is a quantum-safe signature scheme. Compared to classical signature schemes, keys and signatures are rather big.
      Parameters:
      mode - The SPHINCS mode, optimized to be FAST or SMALL.
  • Method Details

    • getType

      public AlgorithmParameters.Type getType()
      Description copied from interface: AlgorithmParameters
      Return the type of the cryptographic scheme.
      Specified by:
      getType in interface AlgorithmParameters
      Returns:
      The type of the cryptographic scheme.
    • getMode

      public int getMode()
      Returns the treeDigest.
      Returns:
      The hash algorithm used for signing.