org.spongycastle.pqc.jcajce.spec.XMSSMTParameterSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prov Show documentation
Show all versions of prov Show documentation
Spongy Castle is a package-rename (org.bouncycastle.* to org.spongycastle.*) of Bouncy Castle
intended for the Android platform. Android unfortunately ships with a stripped-down version of
Bouncy Castle, which prevents easy upgrades - Spongy Castle overcomes this and provides a full,
up-to-date version of the Bouncy Castle cryptographic libs.
The newest version!
package org.spongycastle.pqc.jcajce.spec;
import java.security.spec.AlgorithmParameterSpec;
public class XMSSMTParameterSpec
implements AlgorithmParameterSpec
{
/**
* Use SHA-256 for the tree generation function.
*/
public static final String SHA256 = "SHA256";
/**
* Use SHA512 for the tree generation function.
*/
public static final String SHA512 = "SHA512";
/**
* Use SHAKE128 for the tree generation function.
*/
public static final String SHAKE128 = "SHAKE128";
/**
* Use SHAKE256 for the tree generation function.
*/
public static final String SHAKE256 = "SHAKE256";
private final int height;
private final int layers;
private final String treeDigest;
public XMSSMTParameterSpec(int height, int layers, String treeDigest)
{
this.height = height;
this.layers = layers;
this.treeDigest = treeDigest;
}
public String getTreeDigest()
{
return treeDigest;
}
public int getHeight()
{
return height;
}
public int getLayers()
{
return layers;
}
}