Class LMSPrivateKeyParameters

All Implemented Interfaces:
CipherParameters, LMSContextBasedSigner, Encodable

@Deprecated public class LMSPrivateKeyParameters extends LMSKeyParameters implements LMSContextBasedSigner
Deprecated.
  • Constructor Details

    • LMSPrivateKeyParameters

      public LMSPrivateKeyParameters(LMSigParameters lmsParameter, LMOtsParameters otsParameters, int q, byte[] I, int maxQ, byte[] masterSecret)
      Deprecated.
  • Method Details

    • getInstance

      public static LMSPrivateKeyParameters getInstance(byte[] privEnc, byte[] pubEnc) throws IOException
      Deprecated.
      Throws:
      IOException
    • getInstance

      public static LMSPrivateKeyParameters getInstance(Object src) throws IOException
      Deprecated.
      Throws:
      IOException
    • getIndex

      public int getIndex()
      Deprecated.
      Return the key index (the q value).
      Returns:
      private key index number.
    • generateLMSContext

      public LMSContext generateLMSContext()
      Deprecated.
      Specified by:
      generateLMSContext in interface LMSContextBasedSigner
    • generateSignature

      public byte[] generateSignature(LMSContext context)
      Deprecated.
      Specified by:
      generateSignature in interface LMSContextBasedSigner
    • extractKeyShard

      public LMSPrivateKeyParameters extractKeyShard(int usageCount)
      Deprecated.
      Return a key that can be used usageCount times.

      Note: this will use the range [index...index + usageCount) for the current key.

      Parameters:
      usageCount - the number of usages the key should have.
      Returns:
      a key based on the current key that can be used usageCount times.
    • getSigParameters

      public LMSigParameters getSigParameters()
      Deprecated.
    • getOtsParameters

      public LMOtsParameters getOtsParameters()
      Deprecated.
    • getI

      public byte[] getI()
      Deprecated.
    • getMasterSecret

      public byte[] getMasterSecret()
      Deprecated.
    • getIndexLimit

      public int getIndexLimit()
      Deprecated.
    • getUsagesRemaining

      public long getUsagesRemaining()
      Deprecated.
      Specified by:
      getUsagesRemaining in interface LMSContextBasedSigner
    • getPublicKey

      public LMSPublicKeyParameters getPublicKey()
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • getEncoded

      public byte[] getEncoded() throws IOException
      Deprecated.
      Description copied from interface: Encodable
      Return a byte array representing the implementing object.
      Specified by:
      getEncoded in interface Encodable
      Specified by:
      getEncoded in class LMSKeyParameters
      Returns:
      a byte array representing the encoding.
      Throws:
      IOException - if an issue arises generation the encoding.