Class XMSSMT


  • @Deprecated
    public final class XMSSMT
    extends java.lang.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^MT.
    • Constructor Summary

      Constructors 
      Constructor Description
      XMSSMT​(XMSSMTParameters params, java.security.SecureRandom prng)
      Deprecated.
      XMSSMT constructor...
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      byte[] exportPrivateKey()
      Deprecated.
      Export XMSSMT private key.
      byte[] exportPublicKey()
      Deprecated.
      Export XMSSMT public key.
      void generateKeys()
      Deprecated.
      Generate a new XMSSMT private key / public key pair.
      XMSSMTParameters getParams()
      Deprecated.
      Getter XMSSMT params.
      byte[] getPublicSeed()
      Deprecated.
      Getter public seed.
      protected XMSSParameters getXMSS()
      Deprecated.
       
      void importState​(byte[] privateKey, byte[] publicKey)
      Deprecated.
      Import XMSSMT private key / public key pair.
      byte[] sign​(byte[] message)
      Deprecated.
      Sign message.
      boolean verifySignature​(byte[] message, byte[] signature, byte[] publicKey)
      Deprecated.
      Verify an XMSSMT signature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMSSMT

        public XMSSMT​(XMSSMTParameters params,
                      java.security.SecureRandom prng)
        Deprecated.
        XMSSMT constructor...
        Parameters:
        params - XMSSMTParameters.
    • Method Detail

      • generateKeys

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

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

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

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

        public byte[] exportPrivateKey()
        Deprecated.
        Export XMSSMT private key.
        Returns:
        XMSSMT private key.
      • exportPublicKey

        public byte[] exportPublicKey()
        Deprecated.
        Export XMSSMT public key.
        Returns:
        XMSSMT public key.
      • getParams

        public XMSSMTParameters getParams()
        Deprecated.
        Getter XMSSMT params.
        Returns:
        XMSSMT params.
      • getPublicSeed

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