Class LMSigParameters

java.lang.Object
org.bouncycastle.crypto.params.LMSigParameters
All Implemented Interfaces:
PQCParameters

public class LMSigParameters extends Object implements PQCParameters
  • Field Details

    • lms_sha256_n32_h5

      public static final LMSigParameters lms_sha256_n32_h5
    • lms_sha256_n32_h10

      public static final LMSigParameters lms_sha256_n32_h10
    • lms_sha256_n32_h15

      public static final LMSigParameters lms_sha256_n32_h15
    • lms_sha256_n32_h20

      public static final LMSigParameters lms_sha256_n32_h20
    • lms_sha256_n32_h25

      public static final LMSigParameters lms_sha256_n32_h25
    • lms_sha256_n24_h5

      public static final LMSigParameters lms_sha256_n24_h5
    • lms_sha256_n24_h10

      public static final LMSigParameters lms_sha256_n24_h10
    • lms_sha256_n24_h15

      public static final LMSigParameters lms_sha256_n24_h15
    • lms_sha256_n24_h20

      public static final LMSigParameters lms_sha256_n24_h20
    • lms_sha256_n24_h25

      public static final LMSigParameters lms_sha256_n24_h25
    • lms_shake256_n32_h5

      public static final LMSigParameters lms_shake256_n32_h5
    • lms_shake256_n32_h10

      public static final LMSigParameters lms_shake256_n32_h10
    • lms_shake256_n32_h15

      public static final LMSigParameters lms_shake256_n32_h15
    • lms_shake256_n32_h20

      public static final LMSigParameters lms_shake256_n32_h20
    • lms_shake256_n32_h25

      public static final LMSigParameters lms_shake256_n32_h25
    • lms_shake256_n24_h5

      public static final LMSigParameters lms_shake256_n24_h5
    • lms_shake256_n24_h10

      public static final LMSigParameters lms_shake256_n24_h10
    • lms_shake256_n24_h15

      public static final LMSigParameters lms_shake256_n24_h15
    • lms_shake256_n24_h20

      public static final LMSigParameters lms_shake256_n24_h20
    • lms_shake256_n24_h25

      public static final LMSigParameters lms_shake256_n24_h25
  • Constructor Details

    • LMSigParameters

      @Deprecated 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.
  • Method Details

    • equals

      public boolean equals(Object obj)
      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.

      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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:
      getSecurityCategory in interface PQCParameters
      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:
      getClassicalSecurityStrength in interface PQCParameters
      Returns:
      the classical security strength in bits.
    • getM

      public int getM()
    • getDigestOID

      public ASN1ObjectIdentifier getDigestOID()
    • getParametersForType

      public static LMSigParameters getParametersForType(int type)