Skip to content

Ech hello retry request - #6805

Merged
SparkiDev merged 20 commits into
wolfSSL:masterfrom
jpbland1:ech-hello-retry
Mar 12, 2025
Merged

SparkiDev merged 20 commits into
wolfSSL:masterfrom
jpbland1:ech-hello-retry

Conversation

@jpbland1

Copy link
Copy Markdown
Contributor

Description

Refactor Hpke to allow multiple uses of a context instead of just one shot mode. Refactor ECH to handle hello retry request with a different ech acceptance scheme and to re-use the hpke context after a hello retry request when sending the second client hello

Fixes #6802

Testing

Tested the regular ECH through unit tests, need to figure out how to trigger an HRR

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@jpbland1
jpbland1 requested a review from dgarske September 25, 2023 05:53
@jpbland1
jpbland1 marked this pull request as ready for review September 25, 2023 05:53
dgarske
dgarske previously approved these changes Sep 25, 2023

@dgarske dgarske left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Would like to see customer feedback. Assigned to PR cap wolfssl-bot.

@JacobBarthelmeh

Copy link
Copy Markdown
Contributor

AArch64 test failed, possibly from network hiccup? Retest this please Jenkins

mutex    test passed!
memcb    test passed!
Test complete

wolfSSL error: tcp connect failed: Connection refused

Running simple test
SSL version is TLSv1.2
SSL cipher suite is TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
SSL curve name is SECP256R1

@JacobBarthelmeh

Copy link
Copy Markdown
Contributor

Looks like CI is flagging a valgrind test. Please also rebase onto master rather than merge in, seems like github has issues when merging in the master branch as seen here with lots of extra commits showing.

to an hrr, fix bad getSize for hrr ech, fix using the wrong transcript hash for hrr ech, add new hrr test for ech to api.c
blows away the ech and it's current hpke context, causing the hrr handling to fail
which are not restarted and the inner hsHashes which are restared on HRR. also send empty string with 0 encLen when sending clientHelloInner2. setup works wolfssl->wolfssl but fails to match acceptance for first HRR message when talking to an openssl server, does still work without HRR when talking to cloudflare's server without HRR.
the unmodified hrr and sh in the digest
@dgarske

dgarske commented Sep 23, 2024

Copy link
Copy Markdown
Member

@jpbland1 please resolve merge conflicts.

@dgarske
dgarske removed their request for review September 23, 2024 18:38
@dgarske
dgarske removed the request for review from JacobBarthelmeh September 23, 2024 18:38
@dgarske dgarske assigned jpbland1 and unassigned jpbland1 Nov 15, 2024
@jpbland1
jpbland1 requested a review from dgarske March 10, 2025 15:48
@jpbland1
jpbland1 requested review from SparkiDev and removed request for dgarske March 10, 2025 17:36
Comment thread src/internal.c Resolved
@SparkiDev
SparkiDev merged commit 93acd46 into wolfSSL:master Mar 12, 2025
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.

[Bug]: ECH with HelloRetryRequest (HRR) not working?

5 participants