Repository navigation
Add Mbed TLS key export and max fragment length - #61
Open
padelsbach wants to merge 1 commit into
Open
padelsbach wants to merge 1 commit into
padelsbach wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Reapplying SSL defaults leaves the previous fragment limit active, affecting subsequent connections and payload-size reporting; the limit needs to be reset and covered by a regression test.
1 open issue
What changed in this PR
Adds keying-material export and maximum-fragment-length support to the Mbed TLS compatibility layer, backed by wolfSSL.
Changes:
- Exposes the new APIs and generates feature macros from wolfSSL settings.
- Applies configured and negotiated record limits when writing TLS data.
- Adds coverage for fragment limits and key export, and documents compatibility differences.
| File | Description |
|---|---|
wolfpsa/mbedtls_compat/mbedtls/ssl.h |
Declares APIs, fragment-length constants, and configuration storage. |
user_settings.h |
Enables the required wolfSSL features by default. |
tools/psa_want_probe.c |
Emits matching Mbed TLS feature macros. |
test/mbedtls_compat/ssl_test.c |
Tests fragment limits, key export, and input validation. |
src/mbedtls/ssl.c |
Implements the APIs and limits outgoing record payloads. |
README.md |
Documents API availability and backend compatibility limits. |
Review effort: Balanced
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.

Adds
mbedtls_ssl_export_keying_material,mbedtls_ssl_conf_max_frag_lenandmbedtls_ssl_get_max_out_record_payload. Turns on wolfSSL'sHAVE_KEYING_MATERIALandHAVE_MAX_FRAGMENT.