Class LMSigParameters
java.lang.Object
org.bouncycastle.crypto.params.LMSigParameters
- All Implemented Interfaces:
PQCParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParametersstatic final LMSigParameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLMSigParameters(int type, int m, int h, ASN1ObjectIdentifier digestOid) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe typecode identifies the parameter set: the rest of the values are derived from it.intReturn 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).intgetH()intgetM()static LMSigParametersgetParametersForType(int type) intReturn 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).intgetType()inthashCode()
-
Field Details
-
lms_sha256_n32_h5
-
lms_sha256_n32_h10
-
lms_sha256_n32_h15
-
lms_sha256_n32_h20
-
lms_sha256_n32_h25
-
lms_sha256_n24_h5
-
lms_sha256_n24_h10
-
lms_sha256_n24_h15
-
lms_sha256_n24_h20
-
lms_sha256_n24_h25
-
lms_shake256_n32_h5
-
lms_shake256_n32_h10
-
lms_shake256_n32_h15
-
lms_shake256_n32_h20
-
lms_shake256_n32_h25
-
lms_shake256_n24_h5
-
lms_shake256_n24_h10
-
lms_shake256_n24_h15
-
lms_shake256_n24_h20
-
lms_shake256_n24_h25
-
-
Constructor Details
-
LMSigParameters
Deprecated.The parameter sets are the static fields of this class, looked up bygetParametersForType(int); this class is not intended to be subclassed and this constructor will be made private.
-
-
Method Details
-
equals
The typecode identifies the parameter set: the rest of the values are derived from it.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.
-
hashCode
-
getType
public int getType() -
getH
public int getH() -
getSecurityCategory
public 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).- Specified by:
getSecurityCategoryin interfacePQCParameters- Returns:
- the security category, as given in NIST IR 8547 Tables 3 and 5.
-
getClassicalSecurityStrength
public 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).- Specified by:
getClassicalSecurityStrengthin interfacePQCParameters- Returns:
- the classical security strength in bits.
-
getM
public int getM() -
getDigestOID
-
getParametersForType
-
getParametersForType(int); this class is not intended to be subclassed and this constructor will be made private.