public final class XMSSParameters extends java.lang.Object implements PQCParameters
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_HEIGHT
The tallest tree whose leaves an int index can count.
|
| Constructor and Description |
|---|
XMSSParameters(int height,
ASN1ObjectIdentifier treeDigestOID)
XMSS Constructor...
|
XMSSParameters(int height,
ASN1ObjectIdentifier treeDigestOID,
int n)
XMSS Constructor with explicit security parameter n.
|
XMSSParameters(int height,
Digest treeDigest)
XMSS Constructor...
|
| Modifier and Type | Method and Description |
|---|---|
int |
getClassicalSecurityStrength()
Return the classical security strength of this parameter set: 8 times the hash output
length n, capped at 256 bits, or at 128 bits for SHAKE128 (NIST IR 8547, Table 3).
|
int |
getHeight()
Getter height.
|
int |
getK() |
int |
getLen() |
int |
getParameterSetOID()
Return the RFC 8391 / SP 800-208 parameter-set identifier for this parameter set (the 4-octet
value carried at the start of an RFC 9802 encoded key), or 0 if these parameters do not
correspond to a standard set (for example a non-standard tree height).
|
int |
getSecurityCategory()
Return the NIST security category of this parameter set: 3 for the SHA-256/192 and
SHAKE256/192 sets (n = 24) and 5 for the SHA-256 and SHAKE256/256 sets (n = 32)
(NIST IR 8547, Table 3, for the sets approved in SP 800-208).
|
java.lang.String |
getTreeDigest() |
ASN1ObjectIdentifier |
getTreeDigestOID()
Return the tree digest OID.
|
int |
getTreeDigestSize()
Getter digest size.
|
int |
getWinternitzParameter()
Getter Winternitz parameter.
|
static XMSSParameters |
lookupByOID(int oid) |
public static final int MAX_HEIGHT
public XMSSParameters(int height,
Digest treeDigest)
height - Height of tree.treeDigest - Digest to use.public XMSSParameters(int height,
ASN1ObjectIdentifier treeDigestOID)
height - Height of tree.treeDigestOID - OID of digest to use.public XMSSParameters(int height,
ASN1ObjectIdentifier treeDigestOID,
int n)
height - Height of tree.treeDigestOID - OID of digest to use.n - Security parameter (digest output size in bytes), or -1 to derive from digest.public int getTreeDigestSize()
public int getSecurityCategory()
getSecurityCategory in interface PQCParameterspublic int getClassicalSecurityStrength()
getClassicalSecurityStrength in interface PQCParameterspublic ASN1ObjectIdentifier getTreeDigestOID()
public int getParameterSetOID()
public int getHeight()
public java.lang.String getTreeDigest()
public int getLen()
public int getWinternitzParameter()
public int getK()
public static XMSSParameters lookupByOID(int oid)