Commit 329d697
committed
Collapse WOLFSSL_WC_MLKEM / WOLFSSL_WC_DILITHIUM into their umbrellas
With the liboqs back-ends for ML-KEM and Dilithium gone, having two
feature macros per algorithm (WOLFSSL_HAVE_MLKEM and WOLFSSL_WC_MLKEM,
HAVE_DILITHIUM and WOLFSSL_WC_DILITHIUM) is redundant - the WC_ variant
is always set whenever the umbrella is, and vice versa. Keep the
umbrellas, drop the WC_ variants.
WOLFSSL_WC_MLKEM -> WOLFSSL_HAVE_MLKEM
WOLFSSL_WC_DILITHIUM -> HAVE_DILITHIUM
Touches ~40 files: all #ifdef gates in wolfcrypt / src / tests, the
Espressif/STM32/Zephyr/PlatformIO/C# user_settings.h templates, the
ASM files that ship behind these macros, cmake/options.h.in, and the
build-system entries. configure.ac loses the ENABLED_WC_MLKEM shell
variable (was always tied to ENABLED_MLKEM anyway) and the -D flag
emissions for both macros; CMakeLists.txt likewise stops defining the
WC_ variants.
Verified: ./configure --enable-mlkem --enable-mldsa && make check, the
full Falcon build (--enable-experimental --with-liboqs --enable-falcon
--enable-mlkem --enable-mldsa --enable-keygen --enable-certgen) passes
make check, and the TLS 1.3 Falcon handshake matrix with openssl +
oqs-provider is still green.
Breaking for external users who defined WOLFSSL_WC_MLKEM /
WOLFSSL_WC_DILITHIUM in their own user_settings.h - they should switch
to WOLFSSL_HAVE_MLKEM / HAVE_DILITHIUM. Same class of breakage as the
rest of this PR: we're deleting a legacy surface rather than preserving
it.1 parent cbd4cf3 commit 329d697
42 files changed
Lines changed: 122 additions & 153 deletions
File tree
- IDE
- Espressif/ESP-IDF/examples
- template/components/wolfssl/include
- wolfssl_benchmark/components/wolfssl/include
- wolfssl_client
- components/wolfssl/include
- main
- wolfssl_server
- components/wolfssl/include
- main
- wolfssl_test/components/wolfssl/include
- STM32Cube
- cmake
- examples/configs
- src
- tests
- api
- wolfcrypt
- src
- port/arm
- test
- wolfssl/wolfcrypt
- wrapper/CSharp
- zephyr
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
641 | 640 | | |
642 | 641 | | |
643 | 642 | | |
644 | 643 | | |
645 | 644 | | |
646 | | - | |
647 | 645 | | |
648 | 646 | | |
649 | 647 | | |
| |||
682 | 680 | | |
683 | 681 | | |
684 | 682 | | |
685 | | - | |
686 | 683 | | |
687 | 684 | | |
688 | 685 | | |
689 | 686 | | |
690 | 687 | | |
691 | | - | |
692 | 688 | | |
693 | 689 | | |
694 | 690 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
| 703 | + | |
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
| 663 | + | |
| 664 | + | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| |||
0 commit comments