Skip to content

[noup] zephyr: Update crypto mbedtls wrapper to support TLSv1.3 #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nxf58150
Copy link
Contributor

Update tls_mbedtls_alt.c to support TLSv1.3

  1. The TLS 1.3 key exporter mechanism is fundamentally different from TLS 1.2.The TLS 1.3 uses the HKDF for key derivation, instead of PRF used in TLS1.2. In tls_connection_export_key function, use HKDF-Expand_Label function if current tls version is TLS1.3.
  2. Excluded all tls_prf_type check if TLSv1.3 flag is enabled. This type will not be used in TLSv1.3 handshake process.
  3. Add protected result indication handling on EAP-peer side in tls_connection_handshake.

Update tls_mbedtls_alt.c to support TLSv1.3
1. The TLS 1.3 key exporter mechanism is fundamentally different from
   TLS 1.2.The TLS 1.3 uses the HKDF for key derivation, instead of PRF
   used in TLS1.2. In tls_connection_export_key function, use
   HKDF-Expand_Label function if current tls version is TLS1.3.
2. Excluded all tls_prf_type check if TLSv1.3 flag is enabled. This type
   will not be used in TLSv1.3 handshake process.
3. Add protected result indication handling on EAP-peer side in
   tls_connection_handshake.

Signed-off-by: Hui Bai <[email protected]>
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