Class HQCPrivateKeyParameters

All Implemented Interfaces:
CipherParameters

public class HQCPrivateKeyParameters extends HQCKeyParameters
An HQC decapsulation key. Its encoding is dkKEM = seedKEM, the 32-byte seed from which the HQC specification of 2026-10-12 derives the whole key pair (Section 3.7, Table 9); the expanded form decapsulation works on - ekPKE, seedPKE.dk and sigma - is derived from it on first use and kept, the caching the specification allows to offset the cost of re-deriving it on every decapsulation.
  • Constructor Details

    • HQCPrivateKeyParameters

      public HQCPrivateKeyParameters(HQCParameters params, byte[] sk)
      Parameters:
      params - the parameter set.
      sk - the 32-byte seedKEM.
  • Method Details

    • getPublicKeyParameters

      public HQCPublicKeyParameters getPublicKeyParameters()
      Return the encapsulation key this decapsulation key pairs with, derived from the seed.
      Returns:
      the matching public key parameters.
    • getPrivateKey

      public byte[] getPrivateKey()
      Returns:
      a copy of the 32-byte seedKEM.
    • getEncoded

      public byte[] getEncoded()
      Returns:
      the key's encoding, the 32-byte seedKEM.