Class LMOtsParameters
java.lang.Object
org.bouncycastle.crypto.params.LMOtsParameters
- All Implemented Interfaces:
PQCParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParametersstatic final LMOtsParameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLMOtsParameters(int type, int n, int w, int p, int ls, int sigLen, 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 n, so 192 or 256 bits (NIST IR 8547, Table 3).intgetLs()intgetN()intgetP()static LMOtsParametersgetParametersForType(int type) intReturn 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).intintgetType()intgetW()inthashCode()
-
Field Details
-
reserved
public static final int reserved- See Also:
-
sha256_n32_w1
-
sha256_n32_w2
-
sha256_n32_w4
-
sha256_n32_w8
-
sha256_n24_w1
-
sha256_n24_w2
-
sha256_n24_w4
-
sha256_n24_w8
-
shake256_n32_w1
-
shake256_n32_w2
-
shake256_n32_w4
-
shake256_n32_w8
-
shake256_n24_w1
-
shake256_n24_w2
-
shake256_n24_w4
-
shake256_n24_w8
-
-
Constructor Details
-
LMOtsParameters
@Deprecated 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 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() -
getN
public int getN() -
getW
public int getW() -
getP
public int getP() -
getLs
public int getLs() -
getSigLen
public int getSigLen() -
getSecurityCategory
public 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).- 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 n, so 192 or 256 bits (NIST IR 8547, Table 3).- Specified by:
getClassicalSecurityStrengthin interfacePQCParameters- Returns:
- the classical security strength in bits.
-
getDigestOID
-
getParametersForType
-
getParametersForType(int); this class is not intended to be subclassed and this constructor will be made private.