public class LMSigParameters extends java.lang.Object implements PQCParameters
| Modifier and Type | Field and Description |
|---|---|
static LMSigParameters |
lms_sha256_n24_h10 |
static LMSigParameters |
lms_sha256_n24_h15 |
static LMSigParameters |
lms_sha256_n24_h20 |
static LMSigParameters |
lms_sha256_n24_h25 |
static LMSigParameters |
lms_sha256_n24_h5 |
static LMSigParameters |
lms_sha256_n32_h10 |
static LMSigParameters |
lms_sha256_n32_h15 |
static LMSigParameters |
lms_sha256_n32_h20 |
static LMSigParameters |
lms_sha256_n32_h25 |
static LMSigParameters |
lms_sha256_n32_h5 |
static LMSigParameters |
lms_shake256_n24_h10 |
static LMSigParameters |
lms_shake256_n24_h15 |
static LMSigParameters |
lms_shake256_n24_h20 |
static LMSigParameters |
lms_shake256_n24_h25 |
static LMSigParameters |
lms_shake256_n24_h5 |
static LMSigParameters |
lms_shake256_n32_h10 |
static LMSigParameters |
lms_shake256_n32_h15 |
static LMSigParameters |
lms_shake256_n32_h20 |
static LMSigParameters |
lms_shake256_n32_h25 |
static LMSigParameters |
lms_shake256_n32_h5 |
| Modifier | Constructor and Description |
|---|---|
protected |
LMSigParameters(int type,
int m,
int h,
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 m, so 192 or 256 bits (NIST IR 8547, Table 3).
|
ASN1ObjectIdentifier |
getDigestOID() |
int |
getH() |
int |
getM() |
static LMSigParameters |
getParametersForType(int type) |
int |
getSecurityCategory()
Return the NIST security category of this parameter set: 3 for the SHA-256/192 and
SHAKE256/192 sets (m = 24) and 5 for the SHA-256 and SHAKE256/256 sets (m = 32)
(NIST IR 8547, Table 3).
|
int |
getType() |
int |
hashCode() |
public static final LMSigParameters lms_sha256_n32_h5
public static final LMSigParameters lms_sha256_n32_h10
public static final LMSigParameters lms_sha256_n32_h15
public static final LMSigParameters lms_sha256_n32_h20
public static final LMSigParameters lms_sha256_n32_h25
public static final LMSigParameters lms_sha256_n24_h5
public static final LMSigParameters lms_sha256_n24_h10
public static final LMSigParameters lms_sha256_n24_h15
public static final LMSigParameters lms_sha256_n24_h20
public static final LMSigParameters lms_sha256_n24_h25
public static final LMSigParameters lms_shake256_n32_h5
public static final LMSigParameters lms_shake256_n32_h10
public static final LMSigParameters lms_shake256_n32_h15
public static final LMSigParameters lms_shake256_n32_h20
public static final LMSigParameters lms_shake256_n32_h25
public static final LMSigParameters lms_shake256_n24_h5
public static final LMSigParameters lms_shake256_n24_h10
public static final LMSigParameters lms_shake256_n24_h15
public static final LMSigParameters lms_shake256_n24_h20
public static final LMSigParameters lms_shake256_n24_h25
@Deprecated
protected LMSigParameters(int type,
int m,
int h,
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 getH()
public int getSecurityCategory()
getSecurityCategory in interface PQCParameterspublic int getClassicalSecurityStrength()
getClassicalSecurityStrength in interface PQCParameterspublic int getM()
public ASN1ObjectIdentifier getDigestOID()
public static LMSigParameters getParametersForType(int type)