Merge pull request #8196 from SparkiDev/pqc_kem_priv_key_fix

KeyShareEntry: include private key fields for KYBER
This commit is contained in:
David Garske
2024-11-18 09:46:08 -08:00
committed by GitHub

View File

@ -3558,7 +3558,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