java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianLMSKeySpec

public class GordianLMSKeySpec extends Object
LMS KeyTypes.
  • Constructor Details

  • Method Details

    • getHash

      Obtain the hash.
      Returns:
      the hash
    • getHeight

      Obtain the width.
      Returns:
      the width
    • getWidth

      Obtain the width.
      Returns:
      the width
    • getLength

      public GordianLength getLength()
      Obtain the legth.
      Returns:
      the width
    • getParameters

      public org.bouncycastle.pqc.crypto.lms.LMSParameters getParameters()
      Obtain the parameters.
      Returns:
      the parameters
    • isHigh

      public boolean isHigh()
      Is the keySpec high (height ≥ 15)?
      Returns:
      true/false.
    • isValid

      public boolean isValid()
      Is the keySpec valid?
      Returns:
      true/false.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object pThat)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • listPossibleKeySpecs

      public static List<GordianLMSKeySpec> listPossibleKeySpecs()
      Obtain a list of all possible specs.
      Returns:
      the list
    • determineKeySpec

      public static GordianLMSKeySpec determineKeySpec(org.bouncycastle.pqc.crypto.lms.LMSigParameters pSigParams, org.bouncycastle.pqc.crypto.lms.LMOtsParameters pOtsParams)
      Match keySpec against LMSParameters.
      Parameters:
      pSigParams - the sigParameters
      pOtsParams - the otsParameters
      Returns:
      the matching keySpec