Skip to content

Zeroize stack in assembly routines spilling to the stack - #1498

Merged
mkannwischer merged 1 commit into
mainfrom
asm-zeroize
Nov 26, 2026
Merged

mkannwischer merged 1 commit into
mainfrom
asm-zeroize

Conversation

@mkannwischer

Copy link
Copy Markdown
Contributor

The x86_64 AVX2 Keccak-f1600x4, the aarch64 scalar/hybrid Keccak-f1600 routines, and the aarch64 rej_uniform{,_eta2,_eta4} routines left data on the stack upon return. Zeroize the used stack locals/buffers before returning, and strengthen the HOL Light specifications to state that the stack region is zero on return.

@oqs-bot

oqs-bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

CBMC Results (ML-DSA-44, REDUCE-RAM)

This pull request no longer affects any ML-DSA-44 CBMC proof.

@oqs-bot

oqs-bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

CBMC Results (ML-DSA-44)

This pull request no longer affects any ML-DSA-44 CBMC proof.

@oqs-bot

oqs-bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

CBMC Results (ML-DSA-65, REDUCE-RAM)

This pull request no longer affects any ML-DSA-65 CBMC proof.

@oqs-bot

oqs-bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

CBMC Results (ML-DSA-87, REDUCE-RAM)

This pull request no longer affects any ML-DSA-87 CBMC proof.

@oqs-bot

oqs-bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

CBMC Results (ML-DSA-65)

This pull request no longer affects any ML-DSA-65 CBMC proof.

@oqs-bot

oqs-bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

CBMC Results (ML-DSA-87)

This pull request no longer affects any ML-DSA-87 CBMC proof.

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mac Mini (M1, 2020) benchmarks (opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 44455 cycles 44452 cycles 1.00
ML-DSA-44 sign 129355 cycles 129358 cycles 1.00
ML-DSA-44 verify 45313 cycles 45304 cycles 1.00
ML-DSA-65 keypair 77244 cycles 77253 cycles 1.00
ML-DSA-65 sign 211482 cycles 211467 cycles 1.00
ML-DSA-65 verify 75592 cycles 75599 cycles 1.00
ML-DSA-87 keypair 125431 cycles 125442 cycles 1.00
ML-DSA-87 sign 270374 cycles 270432 cycles 1.00
ML-DSA-87 verify 127400 cycles 127419 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mac Mini (M1, 2020) benchmarks (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 113893 cycles 113723 cycles 1.00
ML-DSA-44 sign 406062 cycles 404667 cycles 1.00
ML-DSA-44 verify 120728 cycles 120600 cycles 1.00
ML-DSA-65 keypair 193733 cycles 193166 cycles 1.00
ML-DSA-65 sign 655274 cycles 651903 cycles 1.01
ML-DSA-65 verify 193728 cycles 193130 cycles 1.00
ML-DSA-87 keypair 319980 cycles 319943 cycles 1.00
ML-DSA-87 sign 831160 cycles 830892 cycles 1.00
ML-DSA-87 verify 327075 cycles 327049 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SpacemiT K1 8 (Banana Pi F3) benchmarks (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 563560 cycles 563314 cycles 1.00
ML-DSA-44 sign 2748671 cycles 2747120 cycles 1.00
ML-DSA-44 verify 672348 cycles 672578 cycles 1.00
ML-DSA-65 keypair 937264 cycles 936552 cycles 1.00
ML-DSA-65 sign 4497386 cycles 4493468 cycles 1.00
ML-DSA-65 verify 1043182 cycles 1042400 cycles 1.00
ML-DSA-87 keypair 1495389 cycles 1495315 cycles 1.00
ML-DSA-87 sign 5443646 cycles 5438284 cycles 1.00
ML-DSA-87 verify 1647006 cycles 1647221 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intel Xeon 4th gen (c7i)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 33196 cycles 33138 cycles 1.00
ML-DSA-44 sign 113811 cycles 113998 cycles 1.00
ML-DSA-44 verify 36186 cycles 36299 cycles 1.00
ML-DSA-65 keypair 55852 cycles 56021 cycles 1.00
ML-DSA-65 sign 189464 cycles 189386 cycles 1.00
ML-DSA-65 verify 58803 cycles 59383 cycles 0.99
ML-DSA-87 keypair 87977 cycles 88035 cycles 1.00
ML-DSA-87 sign 223209 cycles 223546 cycles 1.00
ML-DSA-87 verify 88396 cycles 88455 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intel Xeon 4th gen (c7i) (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 92245 cycles 92218 cycles 1.00
ML-DSA-44 sign 347580 cycles 349003 cycles 1.00
ML-DSA-44 verify 99618 cycles 99600 cycles 1.00
ML-DSA-65 keypair 155702 cycles 155819 cycles 1.00
ML-DSA-65 sign 567922 cycles 568619 cycles 1.00
ML-DSA-65 verify 159381 cycles 159737 cycles 1.00
ML-DSA-87 keypair 257582 cycles 257108 cycles 1.00
ML-DSA-87 sign 718691 cycles 721527 cycles 1.00
ML-DSA-87 verify 263020 cycles 263607 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AMD EPYC 4th gen (c7a)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 39144 cycles 39954 cycles 0.98
ML-DSA-44 sign 125463 cycles 126907 cycles 0.99
ML-DSA-44 verify 42854 cycles 42369 cycles 1.01
ML-DSA-65 keypair 69502 cycles 67391 cycles 1.03
ML-DSA-65 sign 213077 cycles 207636 cycles 1.03
ML-DSA-65 verify 71296 cycles 70073 cycles 1.02
ML-DSA-87 keypair 104166 cycles 104695 cycles 0.99
ML-DSA-87 sign 240733 cycles 242345 cycles 0.99
ML-DSA-87 verify 103710 cycles 105742 cycles 0.98

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Graviton5

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 48976 cycles 48998 cycles 1.00
ML-DSA-44 sign 160273 cycles 160325 cycles 1.00
ML-DSA-44 verify 52148 cycles 52145 cycles 1.00
ML-DSA-65 keypair 85257 cycles 85367 cycles 1.00
ML-DSA-65 sign 262134 cycles 262039 cycles 1.00
ML-DSA-65 verify 85249 cycles 85210 cycles 1.00
ML-DSA-87 keypair 136698 cycles 136533 cycles 1.00
ML-DSA-87 sign 326893 cycles 327011 cycles 1.00
ML-DSA-87 verify 136219 cycles 136013 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AMD EPYC 4th gen (c7a) (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 115138 cycles 115053 cycles 1.00
ML-DSA-44 sign 420550 cycles 418970 cycles 1.00
ML-DSA-44 verify 123675 cycles 123518 cycles 1.00
ML-DSA-65 keypair 195565 cycles 194876 cycles 1.00
ML-DSA-65 sign 682122 cycles 679724 cycles 1.00
ML-DSA-65 verify 199489 cycles 199405 cycles 1.00
ML-DSA-87 keypair 324383 cycles 323967 cycles 1.00
ML-DSA-87 sign 864715 cycles 866683 cycles 1.00
ML-DSA-87 verify 330389 cycles 330784 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AMD EPYC 3rd gen (c6a)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 53280 cycles 52685 cycles 1.01
ML-DSA-44 sign 157302 cycles 156217 cycles 1.01
ML-DSA-44 verify 54503 cycles 53949 cycles 1.01
ML-DSA-65 keypair 90531 cycles 90740 cycles 1.00
ML-DSA-65 sign 255085 cycles 255386 cycles 1.00
ML-DSA-65 verify 90968 cycles 90226 cycles 1.01
ML-DSA-87 keypair 147290 cycles 145515 cycles 1.01
ML-DSA-87 sign 313165 cycles 311055 cycles 1.01
ML-DSA-87 verify 140203 cycles 138689 cycles 1.01

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Graviton5 (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 105178 cycles 104970 cycles 1.00
ML-DSA-44 sign 390735 cycles 390157 cycles 1.00
ML-DSA-44 verify 115173 cycles 115021 cycles 1.00
ML-DSA-65 keypair 183242 cycles 183958 cycles 1.00
ML-DSA-65 sign 630369 cycles 630931 cycles 1.00
ML-DSA-65 verify 184699 cycles 185320 cycles 1.00
ML-DSA-87 keypair 296699 cycles 295267 cycles 1.00
ML-DSA-87 sign 803195 cycles 802718 cycles 1.00
ML-DSA-87 verify 306776 cycles 305778 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Graviton5 (no-opt)'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.03.

Benchmark suite Current: ce9e588 Previous: a1ac758 Ratio
ML-DSA-65 keypair 200349 cycles 177263 cycles 1.13

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AMD EPYC 3rd gen (c6a) (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 134960 cycles 133788 cycles 1.01
ML-DSA-44 sign 524478 cycles 520221 cycles 1.01
ML-DSA-44 verify 147138 cycles 146025 cycles 1.01
ML-DSA-65 keypair 224509 cycles 223933 cycles 1.00
ML-DSA-65 sign 848407 cycles 847641 cycles 1.00
ML-DSA-65 verify 234502 cycles 233988 cycles 1.00
ML-DSA-87 keypair 369739 cycles 370071 cycles 1.00
ML-DSA-87 sign 1062381 cycles 1061668 cycles 1.00
ML-DSA-87 verify 380249 cycles 381055 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intel Xeon 3rd gen (c6i)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 49509 cycles 49669 cycles 1.00
ML-DSA-44 sign 165088 cycles 165426 cycles 1.00
ML-DSA-44 verify 54402 cycles 54594 cycles 1.00
ML-DSA-65 keypair 84424 cycles 84673 cycles 1.00
ML-DSA-65 sign 273517 cycles 274123 cycles 1.00
ML-DSA-65 verify 87285 cycles 87963 cycles 0.99
ML-DSA-87 keypair 130862 cycles 130258 cycles 1.00
ML-DSA-87 sign 317754 cycles 318746 cycles 1.00
ML-DSA-87 verify 130373 cycles 130541 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Graviton4

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 65257 cycles 65121 cycles 1.00
ML-DSA-44 sign 197621 cycles 197837 cycles 1.00
ML-DSA-44 verify 68257 cycles 68153 cycles 1.00
ML-DSA-65 keypair 114708 cycles 115000 cycles 1.00
ML-DSA-65 sign 322916 cycles 322539 cycles 1.00
ML-DSA-65 verify 112797 cycles 112642 cycles 1.00
ML-DSA-87 keypair 187807 cycles 189128 cycles 0.99
ML-DSA-87 sign 413734 cycles 414047 cycles 1.00
ML-DSA-87 verify 184459 cycles 184391 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intel Xeon 3rd gen (c6i) (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 163318 cycles 163032 cycles 1.00
ML-DSA-44 sign 604932 cycles 603426 cycles 1.00
ML-DSA-44 verify 177654 cycles 176780 cycles 1.00
ML-DSA-65 keypair 275796 cycles 275282 cycles 1.00
ML-DSA-65 sign 982630 cycles 980771 cycles 1.00
ML-DSA-65 verify 284912 cycles 284665 cycles 1.00
ML-DSA-87 keypair 458333 cycles 458495 cycles 1.00
ML-DSA-87 sign 1250541 cycles 1253163 cycles 1.00
ML-DSA-87 verify 470750 cycles 471895 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Intel Xeon 3rd gen (c6i) (no-opt)'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.03.

Benchmark suite Current: 115130b Previous: a754991 Ratio
ML-DSA-44 sign 632780 cycles 603231 cycles 1.05

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Arm Cortex-A72 (Raspberry Pi 4) benchmarks (opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 208255 cycles 210030 cycles 0.99
ML-DSA-44 sign 580975 cycles 586204 cycles 0.99
ML-DSA-44 verify 206801 cycles 210437 cycles 0.98
ML-DSA-65 keypair 365433 cycles 368193 cycles 0.99
ML-DSA-65 sign 960666 cycles 980222 cycles 0.98
ML-DSA-65 verify 350431 cycles 351363 cycles 1.00
ML-DSA-87 keypair 613505 cycles 614103 cycles 1.00
ML-DSA-87 sign 1279135 cycles 1272769 cycles 1.01
ML-DSA-87 verify 597162 cycles 595985 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Graviton4 (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 131489 cycles 131348 cycles 1.00
ML-DSA-44 sign 458145 cycles 458295 cycles 1.00
ML-DSA-44 verify 141859 cycles 141839 cycles 1.00
ML-DSA-65 keypair 229829 cycles 231883 cycles 0.99
ML-DSA-65 sign 740797 cycles 740452 cycles 1.00
ML-DSA-65 verify 228419 cycles 228638 cycles 1.00
ML-DSA-87 keypair 372922 cycles 372653 cycles 1.00
ML-DSA-87 sign 949922 cycles 949456 cycles 1.00
ML-DSA-87 verify 380034 cycles 379616 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Graviton3

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 67451 cycles 67402 cycles 1.00
ML-DSA-44 sign 205515 cycles 205757 cycles 1.00
ML-DSA-44 verify 70787 cycles 70693 cycles 1.00
ML-DSA-65 keypair 118355 cycles 118001 cycles 1.00
ML-DSA-65 sign 337292 cycles 337313 cycles 1.00
ML-DSA-65 verify 116462 cycles 116321 cycles 1.00
ML-DSA-87 keypair 191603 cycles 191375 cycles 1.00
ML-DSA-87 sign 429356 cycles 424776 cycles 1.01
ML-DSA-87 verify 189637 cycles 189736 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Arm Cortex-A76 (Raspberry Pi 5) benchmarks (opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 107006 cycles 107044 cycles 1.00
ML-DSA-44 sign 349286 cycles 348890 cycles 1.00
ML-DSA-44 verify 111884 cycles 111895 cycles 1.00
ML-DSA-65 keypair 184993 cycles 184602 cycles 1.00
ML-DSA-65 sign 573756 cycles 573071 cycles 1.00
ML-DSA-65 verify 183330 cycles 183230 cycles 1.00
ML-DSA-87 keypair 300970 cycles 301031 cycles 1.00
ML-DSA-87 sign 728286 cycles 728053 cycles 1.00
ML-DSA-87 verify 299919 cycles 299223 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Graviton3 (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 140670 cycles 140689 cycles 1.00
ML-DSA-44 sign 490455 cycles 490181 cycles 1.00
ML-DSA-44 verify 151077 cycles 151101 cycles 1.00
ML-DSA-65 keypair 246880 cycles 247759 cycles 1.00
ML-DSA-65 sign 798132 cycles 797422 cycles 1.00
ML-DSA-65 verify 244854 cycles 244548 cycles 1.00
ML-DSA-87 keypair 400475 cycles 400184 cycles 1.00
ML-DSA-87 sign 1020490 cycles 1021457 cycles 1.00
ML-DSA-87 verify 408190 cycles 408747 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Arm Cortex-A76 (Raspberry Pi 5) benchmarks (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 210815 cycles 210625 cycles 1.00
ML-DSA-44 sign 756935 cycles 757269 cycles 1.00
ML-DSA-44 verify 227313 cycles 227378 cycles 1.00
ML-DSA-65 keypair 373075 cycles 372664 cycles 1.00
ML-DSA-65 sign 1240165 cycles 1240973 cycles 1.00
ML-DSA-65 verify 368019 cycles 368153 cycles 1.00
ML-DSA-87 keypair 597935 cycles 597054 cycles 1.00
ML-DSA-87 sign 1576988 cycles 1576282 cycles 1.00
ML-DSA-87 verify 612345 cycles 611142 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@hanno-becker
hanno-becker force-pushed the asm-zeroize branch 2 times, most recently from 096780f to 38d6b33 Compare November 23, 2026 14:07
@hanno-becker
hanno-becker marked this pull request as ready for review November 23, 2026 15:08
@hanno-becker
hanno-becker requested a review from a team as a code owner November 23, 2026 15:08

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AMD EPYC 5th gen (c8a)

Details
Benchmark suite Current: c5b8c47 Previous: d38418e Ratio
ML-DSA-44 keypair 31360 cycles 31426 cycles 1.00
ML-DSA-44 sign 99059 cycles 99918 cycles 0.99
ML-DSA-44 verify 35129 cycles 35868 cycles 0.98
ML-DSA-65 keypair 54211 cycles 54771 cycles 0.99
ML-DSA-65 sign 164658 cycles 166950 cycles 0.99
ML-DSA-65 verify 57996 cycles 57648 cycles 1.01
ML-DSA-87 keypair 83252 cycles 83366 cycles 1.00
ML-DSA-87 sign 190499 cycles 190309 cycles 1.00
ML-DSA-87 verify 85185 cycles 85297 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AMD EPYC 5th gen (c8a) (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: d38418e Ratio
ML-DSA-44 keypair 81895 cycles 82090 cycles 1.00
ML-DSA-44 sign 293796 cycles 293726 cycles 1.00
ML-DSA-44 verify 88026 cycles 88299 cycles 1.00
ML-DSA-65 keypair 136660 cycles 136750 cycles 1.00
ML-DSA-65 sign 476287 cycles 476153 cycles 1.00
ML-DSA-65 verify 143123 cycles 142901 cycles 1.00
ML-DSA-87 keypair 231659 cycles 231664 cycles 1.00
ML-DSA-87 sign 610348 cycles 611189 cycles 1.00
ML-DSA-87 verify 236620 cycles 237540 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intel Xeon 6 (c8i)

Details
Benchmark suite Current: c5b8c47 Previous: d38418e Ratio
ML-DSA-44 keypair 36217 cycles 36032 cycles 1.01
ML-DSA-44 sign 123036 cycles 122748 cycles 1.00
ML-DSA-44 verify 39978 cycles 39975 cycles 1.00
ML-DSA-65 keypair 61910 cycles 62422 cycles 0.99
ML-DSA-65 sign 203618 cycles 203503 cycles 1.00
ML-DSA-65 verify 64645 cycles 65433 cycles 0.99
ML-DSA-87 keypair 97228 cycles 97059 cycles 1.00
ML-DSA-87 sign 239649 cycles 242242 cycles 0.99
ML-DSA-87 verify 97487 cycles 98044 cycles 0.99

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intel Xeon 6 (c8i) (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: d38418e Ratio
ML-DSA-44 keypair 99489 cycles 99702 cycles 1.00
ML-DSA-44 sign 362587 cycles 363055 cycles 1.00
ML-DSA-44 verify 107030 cycles 107274 cycles 1.00
ML-DSA-65 keypair 167816 cycles 168509 cycles 1.00
ML-DSA-65 sign 586913 cycles 588969 cycles 1.00
ML-DSA-65 verify 171507 cycles 171954 cycles 1.00
ML-DSA-87 keypair 280555 cycles 280475 cycles 1.00
ML-DSA-87 sign 757471 cycles 759348 cycles 1.00
ML-DSA-87 verify 285036 cycles 286075 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AMD EPYC 5th gen (c8a)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 31519 cycles 31253 cycles 1.01
ML-DSA-44 sign 100682 cycles 99301 cycles 1.01
ML-DSA-44 verify 35486 cycles 35198 cycles 1.01
ML-DSA-65 keypair 54351 cycles 55387 cycles 0.98
ML-DSA-65 sign 165355 cycles 167355 cycles 0.99
ML-DSA-65 verify 57935 cycles 59830 cycles 0.97
ML-DSA-87 keypair 85731 cycles 83308 cycles 1.03
ML-DSA-87 sign 191269 cycles 189090 cycles 1.01
ML-DSA-87 verify 85913 cycles 84955 cycles 1.01

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

AMD EPYC 5th gen (c8a) (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 82337 cycles 81750 cycles 1.01
ML-DSA-44 sign 294453 cycles 293120 cycles 1.00
ML-DSA-44 verify 88348 cycles 87960 cycles 1.00
ML-DSA-65 keypair 137014 cycles 136353 cycles 1.00
ML-DSA-65 sign 477243 cycles 474730 cycles 1.01
ML-DSA-65 verify 143428 cycles 142387 cycles 1.01
ML-DSA-87 keypair 232957 cycles 230884 cycles 1.01
ML-DSA-87 sign 611834 cycles 609158 cycles 1.00
ML-DSA-87 verify 237307 cycles 236134 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intel Xeon 6 (c8i)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 36235 cycles 36132 cycles 1.00
ML-DSA-44 sign 123069 cycles 122994 cycles 1.00
ML-DSA-44 verify 40017 cycles 40172 cycles 1.00
ML-DSA-65 keypair 62341 cycles 62071 cycles 1.00
ML-DSA-65 sign 203839 cycles 203543 cycles 1.00
ML-DSA-65 verify 64773 cycles 65334 cycles 0.99
ML-DSA-87 keypair 97556 cycles 97095 cycles 1.00
ML-DSA-87 sign 239907 cycles 239902 cycles 1.00
ML-DSA-87 verify 97572 cycles 97607 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intel Xeon 6 (c8i) (no-opt)

Details
Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-44 keypair 99694 cycles 99745 cycles 1.00
ML-DSA-44 sign 363330 cycles 363066 cycles 1.00
ML-DSA-44 verify 107253 cycles 107380 cycles 1.00
ML-DSA-65 keypair 168157 cycles 168470 cycles 1.00
ML-DSA-65 sign 588436 cycles 588624 cycles 1.00
ML-DSA-65 verify 172170 cycles 171925 cycles 1.00
ML-DSA-87 keypair 280931 cycles 280417 cycles 1.00
ML-DSA-87 sign 759251 cycles 759202 cycles 1.00
ML-DSA-87 verify 285638 cycles 285978 cycles 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@oqs-bot oqs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'AMD EPYC 4th gen (c7a)'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.03.

Benchmark suite Current: c5b8c47 Previous: 42e60d0 Ratio
ML-DSA-65 keypair 69502 cycles 67391 cycles 1.03

This comment was automatically generated by workflow using github-action-benchmark.

@hanno-becker hanno-becker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I took the liberty to update the PR. @mkannwischer Please take a look.

The scalar and hybrid AArch64 Keccak routines and the x86_64 AVX2
Keccak x4 routine use stack locals during the permutation. Those
locals retain their contents after the routines return.

Clear the 32 bytes of scalar AArch64 stack locals, the 48 bytes of
locals in each AArch64 hybrid, and the 768-byte aligned AVX2 frame
after writing back the state.

Signed-off-by: Matthias J. Kannwischer <matthias@zerorisc.com>
Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
@mkannwischer
mkannwischer added this pull request to the merge queue Nov 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 26, 2026
@mkannwischer
mkannwischer added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 0f192a4 Nov 26, 2026
2344 of 2374 checks passed
@mkannwischer
mkannwischer deleted the asm-zeroize branch November 26, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants