public class LMOtsParameters extends java.lang.Object implements PQCParameters
| Modifier and Type | Field and Description |
|---|---|
static int |
reserved |
static LMOtsParameters |
sha256_n24_w1 |
static LMOtsParameters |
sha256_n24_w2 |
static LMOtsParameters |
sha256_n24_w4 |
static LMOtsParameters |
sha256_n24_w8 |
static LMOtsParameters |
sha256_n32_w1 |
static LMOtsParameters |
sha256_n32_w2 |
static LMOtsParameters |
sha256_n32_w4 |
static LMOtsParameters |
sha256_n32_w8 |
static LMOtsParameters |
shake256_n24_w1 |
static LMOtsParameters |
shake256_n24_w2 |
static LMOtsParameters |
shake256_n24_w4 |
static LMOtsParameters |
shake256_n24_w8 |
static LMOtsParameters |
shake256_n32_w1 |
static LMOtsParameters |
shake256_n32_w2 |
static LMOtsParameters |
shake256_n32_w4 |
static LMOtsParameters |
shake256_n32_w8 |
| Modifier | Constructor and Description |
|---|---|
protected |
LMOtsParameters(int type,
int n,
int w,
int p,
int ls,
int sigLen,
ASN1ObjectIdentifier digestOID)
Deprecated.
The parameter sets are the static fields of this class, looked up by
getParametersForType(int); this class is not intended to be subclassed and this constructor will be
made private. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
The typecode identifies the parameter set: the rest of the values are derived from it.
|
int |
getClassicalSecurityStrength()
Return the classical security strength of this parameter set: 8 times the hash output
length n, so 192 or 256 bits (NIST IR 8547, Table 3).
|
ASN1ObjectIdentifier |
getDigestOID() |
int |
getLs() |
int |
getN() |
int |
getP() |
static LMOtsParameters |
getParametersForType(int type) |
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).
|
int |
getSigLen() |
int |
getType() |
int |
getW() |
int |
hashCode() |
public static final int reserved
public static final LMOtsParameters sha256_n32_w1
public static final LMOtsParameters sha256_n32_w2
public static final LMOtsParameters sha256_n32_w4
public static final LMOtsParameters sha256_n32_w8
public static final LMOtsParameters sha256_n24_w1
public static final LMOtsParameters sha256_n24_w2
public static final LMOtsParameters sha256_n24_w4
public static final LMOtsParameters sha256_n24_w8
public static final LMOtsParameters shake256_n32_w1
public static final LMOtsParameters shake256_n32_w2
public static final LMOtsParameters shake256_n32_w4
public static final LMOtsParameters shake256_n32_w8
public static final LMOtsParameters shake256_n24_w1
public static final LMOtsParameters shake256_n24_w2
public static final LMOtsParameters shake256_n24_w4
public static final LMOtsParameters shake256_n24_w8
@Deprecated
protected LMOtsParameters(int type,
int n,
int w,
int p,
int ls,
int sigLen,
ASN1ObjectIdentifier digestOID)
getParametersForType(int); this class is not intended to be subclassed and this constructor will be
made private.public boolean equals(java.lang.Object obj)
The instances are interned - every lookup hands back one of the static fields - so this agrees with the reference equality it replaces. It states the intent instead of leaving callers to rely on the interning.
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getType()
public int getN()
public int getW()
public int getP()
public int getLs()
public int getSigLen()
public int getSecurityCategory()
getSecurityCategory in interface PQCParameterspublic int getClassicalSecurityStrength()
getClassicalSecurityStrength in interface PQCParameterspublic ASN1ObjectIdentifier getDigestOID()
public static LMOtsParameters getParametersForType(int type)