Commit 27bbf00
committed
mldsa_native.h: Add PCT-aware MLD_TOTAL_ALLOC constants
Split KEYPAIR allocation constants into _NO_PCT and _PCT variants to
accurately reflect memory usage with and without pairwise consistency
testing (PCT). MLD_TOTAL_ALLOC_*_KEYPAIR now automatically selects
the appropriate value based on MLD_CONFIG_KEYGEN_PCT.
For legacy configs, assume PCT is enabled (conservative).
Also correct REDUCE_RAM KEYPAIR values which were previously using
PCT values unconditionally.
The default alloc test config no longer enables PCT; PCT is tested
via config-variations.
Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>1 parent 052ee8d commit 27bbf00
File tree
4 files changed
+32
-18
lines changed- mldsa
- test
- configs
- src
4 files changed
+32
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
| 830 | + | |
| 831 | + | |
831 | 832 | | |
832 | 833 | | |
833 | | - | |
| 834 | + | |
| 835 | + | |
834 | 836 | | |
835 | 837 | | |
836 | | - | |
| 838 | + | |
| 839 | + | |
837 | 840 | | |
838 | 841 | | |
839 | 842 | | |
840 | | - | |
| 843 | + | |
| 844 | + | |
841 | 845 | | |
842 | 846 | | |
843 | | - | |
| 847 | + | |
| 848 | + | |
844 | 849 | | |
845 | 850 | | |
846 | | - | |
| 851 | + | |
| 852 | + | |
847 | 853 | | |
848 | 854 | | |
849 | 855 | | |
850 | 856 | | |
851 | 857 | | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
852 | 873 | | |
853 | 874 | | |
854 | 875 | | |
855 | | - | |
856 | | - | |
857 | 876 | | |
858 | 877 | | |
859 | 878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | 412 | | |
418 | 413 | | |
419 | 414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
630 | 629 | | |
631 | 630 | | |
632 | 631 | | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
| 632 | + | |
637 | 633 | | |
638 | 634 | | |
639 | 635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
644 | 647 | | |
645 | 648 | | |
646 | 649 | | |
| 650 | + | |
647 | 651 | | |
648 | 652 | | |
649 | 653 | | |
| |||
0 commit comments