Class MLKEMPrivateKeyParameters

All Implemented Interfaces:
Destroyable, CipherParameters

public class MLKEMPrivateKeyParameters extends MLKEMKeyParameters implements Destroyable
  • Field Details

  • Constructor Details

    • MLKEMPrivateKeyParameters

      public MLKEMPrivateKeyParameters(MLKEMParameters params, byte[] s, byte[] hpk, byte[] nonce, byte[] t, byte[] rho)
    • MLKEMPrivateKeyParameters

      public MLKEMPrivateKeyParameters(MLKEMParameters params, byte[] s, byte[] hpk, byte[] nonce, byte[] t, byte[] rho, byte[] seed)
    • MLKEMPrivateKeyParameters

      public MLKEMPrivateKeyParameters(MLKEMParameters params, byte[] encoding)
    • MLKEMPrivateKeyParameters

      public MLKEMPrivateKeyParameters(MLKEMParameters params, byte[] encoding, MLKEMPublicKeyParameters pubKey)
  • Method Details

    • getParametersWithFormat

      public MLKEMPrivateKeyParameters getParametersWithFormat(int format)
      Deprecated.
    • withPreferredFormat

      public MLKEMPrivateKeyParameters withPreferredFormat(int format)
    • getPreferredFormat

      public int getPreferredFormat()
    • getEncoded

      public byte[] getEncoded()
    • getHPK

      public byte[] getHPK()
    • getNonce

      public byte[] getNonce()
    • getPublicKey

      public byte[] getPublicKey()
    • getPublicKeyParameters

      public MLKEMPublicKeyParameters getPublicKeyParameters()
    • getRho

      public byte[] getRho()
    • getS

      public byte[] getS()
    • getT

      public byte[] getT()
    • getSeed

      public byte[] getSeed()
    • 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 withPreferredFormat(int)); destroying them here invalidates those objects too.

      Specified by:
      destroy in interface Destroyable
    • isDestroyed

      public boolean isDestroyed()
      Specified by:
      isDestroyed in interface Destroyable