Class LMOtsParameters

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

public class LMOtsParameters extends Object implements PQCParameters
  • Field Details

  • 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 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()
    • 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:
      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 n, so 192 or 256 bits (NIST IR 8547, Table 3).
      Specified by:
      getClassicalSecurityStrength in interface PQCParameters
      Returns:
      the classical security strength in bits.
    • getDigestOID

      public ASN1ObjectIdentifier getDigestOID()
    • getParametersForType

      public static LMOtsParameters getParametersForType(int type)