Skip to content

Conversation

@gilles-peskine-arm
Copy link
Contributor

@gilles-peskine-arm gilles-peskine-arm commented Mar 3, 2025

Tweaked some tests and added a few more for Mbed-TLS/mbedtls#10011.

Status: Continues from #142. The first new commit is "Clarify test case description".

PR checklist

@gilles-peskine-arm gilles-peskine-arm added needs-preceding-pr Requires another PR to be merged first size-s Estimated task size: small (~2d) priority-high High priority - will be reviewed soon labels Mar 3, 2025
@gilles-peskine-arm gilles-peskine-arm force-pushed the defragment-incremental-framework branch from 1c32dd8 to 27d4106 Compare March 3, 2025 17:03
@gilles-peskine-arm gilles-peskine-arm changed the base branch from main to features/tls-defragmentation March 5, 2025 15:51
@gilles-peskine-arm gilles-peskine-arm added needs-review Every commit must be reviewed by at least two team members, and removed needs-preceding-pr Requires another PR to be merged first labels Mar 5, 2025
Signed-off-by: Gilles Peskine <[email protected]>
The symmetric encryption used for transportation matters for TLS 1.2
defragmentation, since the code is sensitive to the presence of an
explicit IV. So have separate test cases for each class of symmetric
encryption.

Signed-off-by: Gilles Peskine <[email protected]>
In preparation for reworking mbedtls_ssl_prepare_handshake_record(), tweak
the "waiting for more handshake fragments" log message in
ssl_consume_current_message(), and add a similar one in
mbedtls_ssl_prepare_handshake_record(). Assert both.

Signed-off-by: Gilles Peskine <[email protected]>
In preparation for reworking mbedtls_ssl_prepare_handshake_record(),
don't assert negatively on "reassembled record".

Signed-off-by: Gilles Peskine <[email protected]>
Require the bug with defragmentation of encrypted handshake messages to be
fixed.

Signed-off-by: Gilles Peskine <[email protected]>
Signed-off-by: Gilles Peskine <[email protected]>
@gilles-peskine-arm gilles-peskine-arm force-pushed the defragment-incremental-framework branch from b703ac8 to 8d85112 Compare March 6, 2025 08:35
Copy link
Contributor

@mpg mpg left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@github-project-automation github-project-automation bot moved this from In Development to Has Approval in Roadmap pull requests (new board) Mar 6, 2025
Copy link
Contributor

@minosgalanakis minosgalanakis left a comment

Choose a reason for hiding this comment

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

LGTM

The CI failure is a false positive and not related to this PR

@mpg mpg added approved Design and code approved - may be waiting for CI or backports needs-preceding-pr Requires another PR to be merged first and removed needs-review Every commit must be reviewed by at least two team members, labels Mar 7, 2025
@gilles-peskine-arm gilles-peskine-arm merged commit 6a7a144 into Mbed-TLS:features/tls-defragmentation Mar 7, 2025
1 of 3 checks passed
@github-project-automation github-project-automation bot moved this from Has Approval to Done in Roadmap pull requests (new board) Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Design and code approved - may be waiting for CI or backports needs-preceding-pr Requires another PR to be merged first priority-high High priority - will be reviewed soon size-s Estimated task size: small (~2d)

Development

Successfully merging this pull request may close these issues.

3 participants