org.bouncycastle.pqc.crypto.hqc
Class HQCPrivateKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.pqc.crypto.hqc.HQCKeyParameters
org.bouncycastle.pqc.crypto.hqc.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HQCPrivateKeyParameters
public HQCPrivateKeyParameters(HQCParameters params,
byte[] sk)
- Parameters:
params - the parameter set.sk - the 32-byte seedKEM.
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.