Skip to content

ts_noise: implement the IKhfs+psk2 handshake - #498

Open
danderson wants to merge 3 commits into
mainfrom
push-nnsvwsytrxyn
Open

danderson wants to merge 3 commits into
mainfrom
push-nnsvwsytrxyn

Conversation

@danderson

Copy link
Copy Markdown
Member

Updates tailscale/corp#50068


The three commits can be reviewed independently:

  1. The first reworks the core handshake types to allow up to 2 operations per AEAD key during the handshake. Previously, each key was used at most once, whereas IKhfs+psk2 needs to encrypt two consecutive values with the same chaining key state.
  2. Extend the core handshake type with methods that handle the guts of KEM processing: encapsulation/decapsulation and correctly writing the keys/ciphertexts into the network packets.
  3. Add a new module that implements the IKhfs+psk2 handshake. This module looks very similar to the IKpsk2 module, but with extra KEM operations and new larger message types that include KEM values.

This PR doesn't include wiring up the new handshake to ts_tunnel and the rest of tailscale-rs, that'll be a future set of changes.

Needed to support hybrid post-quantum handshakes, which encrypt
two fields on the same key during handshakes.

Updates tailscale/corp#50068

Signed-off-by: David Anderson <danderson@tailscale.com>
Change-Id: I4afd6d97505b489e10862cb81da475db6a6a6964
Required to implement the IKhfs+psk2 handshake pattern.

Updates tailscale/corp#50068

Signed-off-by: David Anderson <danderson@tailscale.com>
Change-Id: Icb745053a4ae0f780e87ac1d5f7903b76a6a6964
Updates tailscale/corp#50068

Signed-off-by: David Anderson <danderson@tailscale.com>
Change-Id: Icc743716821c0679f50bb698c6e666296a6a6964

This branch has not been deployed

No deployments
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.

1 participant