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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]Return the encapsulation key this decapsulation key pairs with, derived from the seed.Methods inherited from class HQCKeyParameters
getParametersMethods inherited from class AsymmetricKeyParameter
isPrivate
-
Constructor Details
-
HQCPrivateKeyParameters
- Parameters:
params- the parameter set.sk- the 32-byte seedKEM.
-
-
Method Details
-
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.
-