Top Description Fields Constructors Methods
org.bouncycastle.pqc.crypto.xmss

public final Class XMSSMTParameters

extends Object
Class Inheritance
Imports
java.util.Collections, .HashMap, .Map, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.crypto.Digest, org.bouncycastle.util.Integers

XMSS^MT Parameters.

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final XMSSOid
private static final Map<Integer, XMSSMTParameters>
private final XMSSParameters

Constructor Summary

AccessConstructor and Description
public
XMSSMTParameters(int
Height of tree.
height
,
int
Amount of layers.
layers
,
Digest
Digest to use.
digest
)

XMSSMT constructor...

public
XMSSMTParameters(int
Height of tree.
height
,
int
Amount of layers.
layers
,
ASN1ObjectIdentifier
Object identifier of digest to use.
digestOID
)

XMSSMT constructor...

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

XMSSMT height.
getHeight
()

Getter height.

public int

Returns:

XMSSMT layers.
getLayers
()

Getter layers.

protected int
protected XMSSOid
protected String
public ASN1ObjectIdentifier

Returns:

OID for digest used to build the tree.
getTreeDigestOID
()

Return the tree digest OID.

public int

Returns:

Digest size.
getTreeDigestSize
()

Getter digest size.

pack-priv int

Returns:

Winternitz parameter.
getWinternitzParameter
()

Getter Winternitz parameter.

protected WOTSPlus
protected XMSSParameters
public static XMSSMTParameters
lookupByOID(int oid)

private static int
xmssTreeHeight(int height, int layers)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

heightback to summary
private final int height
layersback to summary
private final int layers
oidback to summary
private final XMSSOid oid
paramsLookupTableback to summary
private static final Map<Integer, XMSSMTParameters> paramsLookupTable
xmssParamsback to summary
private final XMSSParameters xmssParams

Constructor Detail

XMSSMTParametersback to summary
public XMSSMTParameters(int height, int layers, Digest digest)

XMSSMT constructor...

Parameters
height:int

Height of tree.

layers:int

Amount of layers.

digest:Digest

Digest to use.

XMSSMTParametersback to summary
public XMSSMTParameters(int height, int layers, ASN1ObjectIdentifier digestOID)

XMSSMT constructor...

Parameters
height:int

Height of tree.

layers:int

Amount of layers.

digestOID:ASN1ObjectIdentifier

Object identifier of digest to use.

Method Detail

getHeightback to summary
public int getHeight()

Getter height.

Returns:int

XMSSMT height.

getLayersback to summary
public int getLayers()

Getter layers.

Returns:int

XMSSMT layers.

getLenback to summary
protected int getLen()
getOidback to summary
protected XMSSOid getOid()
getTreeDigestback to summary
protected String getTreeDigest()
getTreeDigestOIDback to summary
public ASN1ObjectIdentifier getTreeDigestOID()

Return the tree digest OID.

Returns:ASN1ObjectIdentifier

OID for digest used to build the tree.

getTreeDigestSizeback to summary
public int getTreeDigestSize()

Getter digest size.

Returns:int

Digest size.

getWinternitzParameterback to summary
pack-priv int getWinternitzParameter()

Getter Winternitz parameter.

Returns:int

Winternitz parameter.

getWOTSPlusback to summary
protected WOTSPlus getWOTSPlus()
getXMSSParametersback to summary
protected XMSSParameters getXMSSParameters()
lookupByOIDback to summary
public static XMSSMTParameters lookupByOID(int oid)
xmssTreeHeightback to summary
private static int xmssTreeHeight(int height, int layers) throws IllegalArgumentException