Class SDitHPrivateKeyParameters

  • All Implemented Interfaces:
    CipherParameters

    public class SDitHPrivateKeyParameters
    extends AsymmetricKeyParameter
    SDitH private key, in the same expanded form that the reference KAT files write out (sdith_full_key_t).

    Layout:

       H_a_seed (seedSize)  ||  y (m-k)  ||  s_A (k)  ||  q_poly (d * w/d)  ||  p_poly (d * w/d)
     
    The mSeed is held alongside the expanded key whenever it is known (after keygen); when reconstructed from a flat encoded blob we have only the expanded data and getSeed() returns null.
    • Constructor Detail

      • SDitHPrivateKeyParameters

        public SDitHPrivateKeyParameters​(SDitHParameters parameters,
                                         byte[] mSeed,
                                         byte[] hASeed,
                                         byte[] y,
                                         byte[] sA,
                                         byte[] qPoly,
                                         byte[] pPoly)
      • SDitHPrivateKeyParameters

        public SDitHPrivateKeyParameters​(SDitHParameters parameters,
                                         byte[] encoded)
    • Method Detail

      • getEncoded

        public byte[] getEncoded()
      • getSeed

        public byte[] getSeed()
      • getHASeed

        public byte[] getHASeed()
      • getY

        public byte[] getY()
      • getSA

        public byte[] getSA()
      • getQPoly

        public byte[] getQPoly()
      • getPPoly

        public byte[] getPPoly()