Skip to content

Commit

Permalink
tls Add support for X25519Kyber768Draft00 post-quantum "curve" …
Browse files Browse the repository at this point in the history
… when compiled with cfgo (https://github.com/cloudflare/go).
  • Loading branch information
bwesterb committed Oct 4, 2023
1 parent 1405683 commit d7e59c3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions modules/caddytls/cf.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//go:build cfgo

package caddytls

// This file adds support for X25519Kyber768Draft00, a post-quantum
// key agreement that is currently being rolled out by Chrome [1]
// and Cloudflare [2,3]. For more context, see the PR [4].
//
// [1] https://blog.chromium.org/2023/08/protecting-chrome-traffic-with-hybrid.html
// [2] https://blog.cloudflare.com/post-quantum-for-all/
// [3] https://blog.cloudflare.com/post-quantum-to-origins/
// [4] https://github.com/caddyserver/caddy/pull/5852

import (
"crypto/tls"
)

func init() {
SupportedCurves["X25519Kyber768Draft00"] = tls.X25519Kyber768Draft00
defaultCurves = append(
[]tls.CurveID{tls.X25519Kyber768Draft00},
defaultCurves...,
)
}

0 comments on commit d7e59c3

Please sign in to comment.