Skip to content

ChaCha20/Poly1305 ASM: AVX512 and improvements to other Intel x64#10940

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

ChaCha20/Poly1305 ASM: AVX512 and improvements to other Intel x64#10940
SparkiDev wants to merge 1 commit into
wolfSSL:masterfrom
SparkiDev:chacha20_poly1305_avx512

Conversation

@SparkiDev

Copy link
Copy Markdown
Contributor

Description

Add AVX512 implementations of ChaCha20 and Poly1305. Add fused asm implementations of ChaCha20-Poly1305. Wire the fused APIs into new API.
Use new API in TLS 1.2 and TLS 1.3.

Testing

Tested ChaCha20/Poly1305

@SparkiDev SparkiDev self-assigned this Jul 17, 2026
@SparkiDev

Copy link
Copy Markdown
Contributor Author

Code generated with PR:
https://github.com/wolfSSL/scripts/pull/630

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

gcc-arm-cortex-m4-crypto-only

  • FLASH: .text +448 B (+0.3%, 175,350 B / 262,144 B, total: 67% used)

gcc-arm-cortex-m4-dtls13

  • FLASH: .text +192 B (+0.1%, 181,144 B / 1,048,576 B, total: 17% used)

gcc-arm-cortex-m4-openssl-compat

  • FLASH: .text +256 B (+0.0%, 771,812 B / 1,048,576 B, total: 74% used)

gcc-arm-cortex-m4-pq

  • FLASH: .text +192 B (+0.1%, 279,992 B / 1,048,576 B, total: 27% used)

gcc-arm-cortex-m4-rsa-only

  • FLASH: .text +256 B (+0.1%, 325,656 B / 1,048,576 B, total: 31% used)

gcc-arm-cortex-m4-tls13

  • FLASH: .text +192 B (+0.1%, 236,672 B / 262,144 B, total: 90% used)

gcc-arm-cortex-m7-pq

  • FLASH: .text +192 B (+0.1%, 280,568 B / 1,048,576 B, total: 27% used)

gcc-arm-cortex-m7-tls13

@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 #10940

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

No new issues found in the changed files. ✅

@SparkiDev
SparkiDev force-pushed the chacha20_poly1305_avx512 branch from 9d19869 to 04bdded Compare July 17, 2026 12:34
Add AVX512 implementations of ChaCha20 and Poly1305.
Add fused asm implementations of ChaCha20-Poly1305.
Wire the fused APIs into new API.
Use new API in TLS 1.2 and TLS 1.3.
@SparkiDev
SparkiDev force-pushed the chacha20_poly1305_avx512 branch from 04bdded to f4cc459 Compare July 18, 2026 07:55
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