Class XMSS

java.lang.Object
org.bouncycastle.pqc.crypto.xmss.XMSS

@Deprecated public class XMSS extends Object
Deprecated.
this class is implementation detail of the XMSS / XMSS^MT engine, which has moved to org.bouncycastle.crypto.signers.xmss and is package-private there. Drive XMSS through XMSSSigner / XMSSKeyPairGenerator and the org.bouncycastle.crypto.params key classes instead; the engine operations those are built on are on org.bouncycastle.crypto.signers.xmss.XMSSEngine.
XMSS.
  • Constructor Details

    • XMSS

      public XMSS(XMSSParameters params, SecureRandom prng)
      Deprecated.
      XMSS constructor...
      Parameters:
      params - XMSSParameters.
  • Method Details

    • generateKeys

      public void generateKeys()
      Deprecated.
      Generate a new XMSS private key / public key pair.
    • importState

      public void importState(XMSSPrivateKeyParameters privateKey, XMSSPublicKeyParameters publicKey)
      Deprecated.
    • importState

      public void importState(byte[] privateKey, byte[] publicKey)
      Deprecated.
      Import XMSS private key / public key pair.
      Parameters:
      privateKey - XMSS private key.
      publicKey - XMSS public key.
    • sign

      public byte[] sign(byte[] message)
      Deprecated.
      Sign message.
      Parameters:
      message - Message to sign.
      Returns:
      XMSS signature on digest of message.
    • verifySignature

      public boolean verifySignature(byte[] message, byte[] signature, byte[] publicKey) throws ParseException
      Deprecated.
      Verify an XMSS signature.
      Parameters:
      message - Message.
      signature - XMSS signature.
      publicKey - XMSS public key.
      Returns:
      true if signature is valid false else.
      Throws:
      ParseException
    • exportPrivateKey

      public XMSSPrivateKeyParameters exportPrivateKey()
      Deprecated.
      Export XMSS private key.
      Returns:
      XMSS private key.
    • exportPublicKey

      public XMSSPublicKeyParameters exportPublicKey()
      Deprecated.
      Export XMSS public key.
      Returns:
      XMSS public key.
    • wotsSign

      protected org.bouncycastle.pqc.crypto.xmss.WOTSPlusSignature wotsSign(byte[] messageDigest, org.bouncycastle.pqc.crypto.xmss.OTSHashAddress otsHashAddress)
      Deprecated.
      Generate a WOTS+ signature on a message without the corresponding authentication path
      Parameters:
      messageDigest - Message digest of length n.
      otsHashAddress - OTS hash address.
      Returns:
      XMSS signature.
    • getParams

      public XMSSParameters getParams()
      Deprecated.
      Getter XMSS params.
      Returns:
      XMSS params.
    • getWOTSPlus

      protected org.bouncycastle.pqc.crypto.xmss.WOTSPlus getWOTSPlus()
      Deprecated.
      Getter WOTS+.
      Returns:
      WOTS+ instance.
    • getRoot

      public byte[] getRoot()
      Deprecated.
      Getter XMSS root.
      Returns:
      Root of binary tree.
    • setRoot

      protected void setRoot(byte[] root)
      Deprecated.
    • getIndex

      public int getIndex()
      Deprecated.
      Getter XMSS index.
      Returns:
      Index.
    • setIndex

      protected void setIndex(int index)
      Deprecated.
    • getPublicSeed

      public byte[] getPublicSeed()
      Deprecated.
      Getter XMSS public seed.
      Returns:
      Public seed.
    • setPublicSeed

      protected void setPublicSeed(byte[] publicSeed)
      Deprecated.
    • getPrivateKey

      public XMSSPrivateKeyParameters getPrivateKey()
      Deprecated.