Skip to content

harden falcon key handling#10340

Open
JeremiahM37 wants to merge 2 commits intowolfSSL:masterfrom
JeremiahM37:fenrir-3
Open

harden falcon key handling#10340
JeremiahM37 wants to merge 2 commits intowolfSSL:masterfrom
JeremiahM37:fenrir-3

Conversation

@JeremiahM37
Copy link
Copy Markdown
Contributor

@JeremiahM37 JeremiahM37 commented Apr 28, 2026

Fixes F-3316, F-3317, F-3320, F-3321.

  • wc_sphincs_check_key: actually validate level/optim/keySet flags and compare embedded PK against key->p (was always returning 0)
  • wc_falcon_check_key: reject unset level and partially-populated keys before comparison (was passing on default-init key)
  • GetKeyOID falcon: replace dead else-if chain so level 5 keys are detected (was only ever trying level 1)
  • GetKeyOID sphincs: replace dead else-if chain so all six variants are detected (was only ever trying fast-L1)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 29, 2026

MemBrowse Memory Report

No memory changes detected for:

@Frauschi
Copy link
Copy Markdown
Contributor

Please note that the liboqs-based SPHINCS implementation is about to be dropped completely in #10261, so no changes for this are required.

@JeremiahM37 JeremiahM37 changed the title harden falcon and sphincs key handling harden falcon key handling Apr 29, 2026
@JeremiahM37
Copy link
Copy Markdown
Contributor Author

Jenkins retest this please

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.

2 participants