KeyShareEntry: include private key fields for KYBER

Originallt HAVE_PQC and then changed to HAVE_FALCON and HAVE_DILITHIUM.
The KEM PQC algorithm is actually KYBER.
This commit is contained in:
Sean Parkinson
2024-11-18 08:29:16 +10:00
parent 6af54d3de2
commit 5d61ca94c0

View File

@@ -3539,7 +3539,7 @@ typedef struct KeyShareEntry {
word32 keyLen; /* Key size (bytes) */
byte* pubKey; /* Public key */
word32 pubKeyLen; /* Public key length */
#if !defined(NO_DH) || defined(HAVE_FALCON) || defined(HAVE_DILITHIUM)
#if !defined(NO_DH) || defined(WOLFSSL_HAVE_KYBER)
byte* privKey; /* Private key - DH and PQ KEMs only */
word32 privKeyLen;/* Only for PQ KEMs. */
#endif