Class MLDSAPrivateKeyParameters

  • All Implemented Interfaces:
    javax.security.auth.Destroyable, CipherParameters

    public class MLDSAPrivateKeyParameters
    extends MLDSAKeyParameters
    implements javax.security.auth.Destroyable
    • Constructor Detail

      • MLDSAPrivateKeyParameters

        public MLDSAPrivateKeyParameters​(MLDSAParameters params,
                                         byte[] encoding)
      • MLDSAPrivateKeyParameters

        public MLDSAPrivateKeyParameters​(MLDSAParameters params,
                                         byte[] rho,
                                         byte[] K,
                                         byte[] tr,
                                         byte[] s1,
                                         byte[] s2,
                                         byte[] t0,
                                         byte[] t1)
      • MLDSAPrivateKeyParameters

        public MLDSAPrivateKeyParameters​(MLDSAParameters params,
                                         byte[] rho,
                                         byte[] K,
                                         byte[] tr,
                                         byte[] s1,
                                         byte[] s2,
                                         byte[] t0,
                                         byte[] t1,
                                         byte[] seed)
    • Method Detail

      • getPreferredFormat

        public int getPreferredFormat()
      • getEncoded

        public byte[] getEncoded()
      • getK

        public byte[] getK()
      • getPrivateKey

        @Deprecated
        public byte[] getPrivateKey()
        Deprecated.
        Use getEncoded() instead.
      • getPublicKey

        public byte[] getPublicKey()
      • getSeed

        public byte[] getSeed()
      • getRho

        public byte[] getRho()
      • getS1

        public byte[] getS1()
      • getS2

        public byte[] getS2()
      • getT0

        public byte[] getT0()
      • getT1

        public byte[] getT1()
      • getTr

        public byte[] getTr()
      • destroy

        public void destroy()
        Zeroize the secret key material held by this object.

        Note: the internal arrays may be shared with other parameter objects derived from this one (for example via getParametersWithFormat(int)); destroying them here invalidates those objects too.

        Specified by:
        destroy in interface javax.security.auth.Destroyable
      • isDestroyed

        public boolean isDestroyed()
        Specified by:
        isDestroyed in interface javax.security.auth.Destroyable