Add ChaCha20-Poly1305 ciphers for TLS1.2#106435
Open
jerome-pouiller wants to merge 1 commit intozephyrproject-rtos:mainfrom
Open
Add ChaCha20-Poly1305 ciphers for TLS1.2#106435jerome-pouiller wants to merge 1 commit intozephyrproject-rtos:mainfrom
jerome-pouiller wants to merge 1 commit intozephyrproject-rtos:mainfrom
Conversation
There was a problem hiding this comment.
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_SHA256Kconfig option with the required TLS/X.509, ECDHE-ECDSA, and PSA crypto selects. - Introduce
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256Kconfig 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.
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>
617475c to
7f9a5d4
Compare
|
d3zd3z
approved these changes
Mar 27, 2026
valeriosetti
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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.