Skip to content

Intel x86/x64 assembly fixes#10728

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
SparkiDev:intel_asm_fixup
Jun 26, 2026
Merged

Intel x86/x64 assembly fixes#10728
dgarske merged 1 commit into
wolfSSL:masterfrom
SparkiDev:intel_asm_fixup

Conversation

@SparkiDev

Copy link
Copy Markdown
Contributor

Description

Allow x86 to build with assembly for enable all - disable assembly when x86 and not assembly code available. Add file fe_operations.c when assembly and x86. x86: fix ECB decrypt to use corect offsets for parameters
fix AES-NI and AVX1 assembly code
fix sp_int with assembly to compile
minor optimizations of AES-GCM
x64: Don't emit move instruction if source and destination are the same reg
Use xor instead of mov 0
minor optimizations of AES-GCM for AES-NI

Testing

./autogen.sh
./configure --disable-shared LDFLAGS=--static --host=x86 CC=i686-linux-gnu-gcc --enable-intelasm --enable-all --disable-crl-monitor --enable-mldsa
and
./configure --disable-shared --enable-intelasm --enable-all --enable-mldsa

Change cpuid.c to have AVX2/AVX1 disabled.

Allow x86 to build with assembly for enable all - disable assembly when x86 and not assembly code available. Add file fe_operations.c when assembly and x86.
x86: fix ECB decrypt to use corect offsets for parameters
     fix AES-NI and AVX1 assembly code
     fix sp_int with assembly to compile
     minor optimizations of AES-GCM
x64: Don't emit move instruction if source and destination are the same reg
     Use xor instead of mov 0
     minor optimizations of AES-GCM for AES-NI
@SparkiDev SparkiDev self-assigned this Jun 18, 2026
@SparkiDev SparkiDev added the Not For This Release Not for release 5.9.2 label Jun 18, 2026
@SparkiDev

Copy link
Copy Markdown
Contributor Author

Code generated from PR:
https://github.com/wolfSSL/scripts/pull/592

@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Jun 18, 2026
@SparkiDev SparkiDev requested a review from wolfSSL-Bot June 18, 2026 12:23
@dgarske dgarske self-assigned this Jun 25, 2026
@dgarske dgarske requested review from dgarske and removed request for wolfSSL-Bot June 25, 2026 17:29
@dgarske dgarske merged commit 39c0336 into wolfSSL:master Jun 26, 2026
304 of 306 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Not For This Release Not for release 5.9.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants