Class XMSSMTPrivateKey

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class XMSSMTPrivateKey
    extends ASN1Object
    XMMSMTPrivateKey
         XMMSMTPrivateKey ::= SEQUENCE {
             version INTEGER -- 0, or 1 if maxIndex is present
             keyData SEQUENCE {
                index         INTEGER
                secretKeySeed OCTET STRING
                secretKeyPRF  OCTET STRING
                publicSeed    OCTET STRING
                root          OCTET STRING
                maxIndex      [0] INTEGER OPTIONAL
             }
             bdsState CHOICE {
                 legacyBdsState [0] OCTET STRING,
                 binaryBdsState [1] OCTET STRING
             } OPTIONAL
                 -- opaque, implementation-specific traversal state. [0] carries the
                 -- legacy Java serialization, [1] the versioned binary BDS state map.
        }
     
    • Constructor Detail

      • XMSSMTPrivateKey

        public XMSSMTPrivateKey​(long index,
                                byte[] secretKeySeed,
                                byte[] secretKeyPRF,
                                byte[] publicSeed,
                                byte[] root,
                                byte[] bdsState)
        Base constructor. bdsState is written in the binary [1] alternative; the legacy Java serialization is accepted on parsing but is no longer generated.
      • XMSSMTPrivateKey

        public XMSSMTPrivateKey​(long index,
                                byte[] secretKeySeed,
                                byte[] secretKeyPRF,
                                byte[] publicSeed,
                                byte[] root,
                                byte[] bdsState,
                                long maxIndex)
        Base constructor for a key carrying maxIndex. bdsState is written in the binary [1] alternative; the legacy Java serialization is accepted on parsing but is no longer generated.
    • Method Detail

      • getInstance

        public static XMSSMTPrivateKey getInstance​(java.lang.Object o)
      • getVersion

        public int getVersion()
      • getIndex

        public long getIndex()
      • getMaxIndex

        public long getMaxIndex()
      • getSecretKeySeed

        public byte[] getSecretKeySeed()
      • getSecretKeyPRF

        public byte[] getSecretKeyPRF()
      • getPublicSeed

        public byte[] getPublicSeed()
      • getRoot

        public byte[] getRoot()
      • getBdsState

        public byte[] getBdsState()
      • hasBinaryBdsState

        public boolean hasBinaryBdsState()
        Return true if bdsState was carried in the versioned binary BDS state alternative ([1]), false if it was carried in the legacy Java serialization alternative ([0]).