Skip to content

Fix for PQC enabled handshake#7280

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
Laboratory-for-Safe-and-Secure-Systems:pqc_kyber_fix
Mar 11, 2024
Merged

Fix for PQC enabled handshake#7280
dgarske merged 1 commit intowolfSSL:masterfrom
Laboratory-for-Safe-and-Secure-Systems:pqc_kyber_fix

Conversation

@Frauschi
Copy link
Copy Markdown
Contributor

Hi all,

When PQC Kyber support is enabled, incoming KeyShare messages are tested regarding the named group is a PQC Kyber group (pure or hybrid). The boundaries of this test are far too loose (large gap between the pure ones and the hybrid ones). This could result in failing handshakes in case a client uses GREASE (Generate Random Extensions And Sustain Extensibility), as with that, group numbers in the large gap are used.

The fix is just to make sure that the PQC test uses the two small boundaries of the PQC named groups.

The lower bound for the hybrid groups has also been updated to reflect the current OQS definition.

When PQC Kyber support is enabled, incoming KeyShare messages are tested
regarding the named group is a PQC Kyber group (pure or hybrid). The
boundaries of this test are way too loose (large gap between the pure
ones and the hybrid ones). This could result in failing handshakes in
case a client uses GREASE (Generate Random Extensions And Sustain
Extensibility), as there group numbers in the large gap are used.

The fix is just to make sure that the PQC test uses the two small
boundaries of the PQC named groups.

The lower bound for the hybrid groups has also been updated to reflect
the current OQS definition.

Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com>
@wolfSSL-Bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@anhu
Copy link
Copy Markdown
Member

anhu commented Feb 28, 2024

Ah, yes, the boundaries were too wide because we use to support other hybrid KEMs. This was a left over artifact of older code.

@dgarske
Copy link
Copy Markdown
Member

dgarske commented Feb 28, 2024

Okay to test

Copy link
Copy Markdown
Member

@anhu anhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@dgarske
Copy link
Copy Markdown
Member

dgarske commented Mar 8, 2024

Retest this please.

@dgarske
Copy link
Copy Markdown
Member

dgarske commented Mar 8, 2024

Retest this please

@dgarske dgarske merged commit 5dba7d3 into wolfSSL:master Mar 11, 2024
bandi13 pushed a commit to bandi13/wolfssl that referenced this pull request Mar 12, 2024
This reverts commit 5dba7d3, reversing
changes made to bd20640.
@Frauschi Frauschi deleted the pqc_kyber_fix branch May 13, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants