Skip to content
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

new: UtlsPreSharedKeyExtension #229

Closed
wants to merge 1 commit into from
Closed

new: UtlsPreSharedKeyExtension #229

wants to merge 1 commit into from

Commits on Aug 15, 2023

  1. new: UtlsPreSharedKeyExtension

    In `u_pre_shared_key.go`, create `PreSharedKeyExtension` as an interface, with 3 implementations:
    - `UtlsPreSharedKeyExtension` implements full support for `pre_shared_key` less resuming after seeing HRR.
    - `FakePreSharedKeyExtension` uses CipherSuiteID, SessionSecret and Identities to calculate the corresponding binders and send them, without setting the internal states. Therefore if the server accepts the PSK and tries to resume, the connection fails.
    - `HardcodedPreSharedKeyExtension` allows user to hardcode Identities and Binders to be sent in the extension without setting the internal states. Therefore if the server accepts the PSK and tries to resume, the connection fails.
    
    TODO: Only one of FakePreSharedKeyExtension and HardcodedPreSharedKeyExtension should be kept, the other one should be just removed. We still need to learn more of the safety of hardcoding both Identities and Binders without recalculating the latter.
    gaukas committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    af86ad8 View commit details
    Browse the repository at this point in the history