Skip to content

Add ChaCha20-Poly1305 ciphers for TLS1.2#106435

Open
jerome-pouiller wants to merge 1 commit intozephyrproject-rtos:mainfrom
jerome-pouiller:add-ciphers
Open

Add ChaCha20-Poly1305 ciphers for TLS1.2#106435
jerome-pouiller wants to merge 1 commit intozephyrproject-rtos:mainfrom
jerome-pouiller:add-ciphers

Conversation

@jerome-pouiller
Copy link
Copy Markdown
Contributor

@jerome-pouiller jerome-pouiller commented Mar 27, 2026

ChaCha20-Poly1305 is already declared for TLS 1.3. Since it is the preferred cipher on platforms lacking hardware AES acceleration (which is common on embedded targets), I believe it also make sense to declare this cipher for TLS 1.2.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds TLS 1.2 ChaCha20-Poly1305 ciphersuite Kconfig options to better support targets without hardware AES acceleration.

Changes:

  • Introduce TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 Kconfig option with the required TLS/X.509, ECDHE-ECDSA, and PSA crypto selects.
  • Introduce TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 Kconfig option with the required TLS/X.509, ECDHE-RSA, and PSA crypto selects.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jerome-pouiller jerome-pouiller changed the title Add ChaCha20-Poly1305 ciphers Add ChaCha20-Poly1305 ciphers for TLS1.2 Mar 27, 2026
ChaCha20-Poly1305 is the preferred cipher on platforms lacking hardware
AES acceleration, which is common on embedded targets. Adding this
ciphersuite allows Zephyr devices to negotiate it when connecting to
servers that support it (e.g. nginx, OpenSSL), avoiding a fallback to
AES-based suites.

Assisted-by: GitHub Copilot:claude-sonnet-4.6
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
@sonarqubecloud
Copy link
Copy Markdown

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.

7 participants