Skip to content

Regression testing fixes - #11001

Open
SparkiDev wants to merge 1 commit into
wolfSSL:masterfrom
SparkiDev:regression_fixes_28
Open

Regression testing fixes#11001
SparkiDev wants to merge 1 commit into
wolfSSL:masterfrom
SparkiDev:regression_fixes_28

Conversation

@SparkiDev

Copy link
Copy Markdown
Contributor

Description

wc_mlkem.h/test_mlkem.c: Respect WC_NO_CONSTRUCTORS guard.

settings.h, fe_operations.h: move WOLFSSL_CURVE25519_USE_ED25519 derivation into settings.h so the assembler sees it; fixes fe_cmov_table undefined on ARM32.

ge_448.c: shift the product instead of the byte in six sc448_* loops, dodging a GCC ARM32 NEON miscompile that produced wrong ed448 signatures; table shrunk [56]→[28].

Testing

./configure --disable-shared --disable-rsa --disable-dh --disable-dsa --enable-ecc --disable-curve448 --disable-ed448 --enable-opensslall --disable-asm --disable-sp-asm --enable-curve25519 --enable-ed25519 CFLAGS=-DWC_NO_CONSTRUCTORS

./configure --disable-shared --disable-rsa --disable-dh --disable-dsa --enable-ecc --disable-curve448 --disable-ed448 --enable-opensslall --host=armv8 CC=arm-linux-gnueabihf-gcc LDFLAGS=--static --enable-armasm --enable-curve25519 --enable-ed25519 "CFLAGS=-DNO_ED25519_MAKE_KEY -DNO_ED25519_SIGN"

./configure --disable-shared --disable-rsa --disable-dh --disable-dsa --enable-ecc --disable-curve25519 --disable-ed25519 --enable-opensslall --host=armv8 CC=arm-linux-gnueabihf-gcc LDFLAGS=--static --enable-armasm --enable-curve448=small --enable-ed448=small

wc_mlkem.h/test_mlkem.c: Respect WC_NO_CONSTRUCTORS guard.

settings.h, fe_operations.h: move WOLFSSL_CURVE25519_USE_ED25519 derivation into settings.h so the assembler sees it; fixes fe_cmov_table undefined on ARM32.

ge_448.c: shift the product instead of the byte in six sc448_* loops, dodging a GCC ARM32 NEON miscompile that produced wrong ed448 signatures; table shrunk [56]→[28].
@SparkiDev SparkiDev self-assigned this Jul 29, 2026
@SparkiDev

Copy link
Copy Markdown
Contributor Author

Jenkins: retest this please

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #11001

Scan targets checked: wolfcrypt-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

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