From 681edbfeb79ff7155688a9589860c99206a299ef Mon Sep 17 00:00:00 2001 From: Loganaden Velvindron Date: Wed, 20 Nov 2024 21:40:37 +0400 Subject: [PATCH 1/2] Add hybrid mlkem as per draft-kwiatkowski-tls-ecdhe-mlkem Signed-off-by: Jeremie Daniel Signed-off-by: Loganaden Velvindron --- tls/tls_names.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tls/tls_names.go b/tls/tls_names.go index 60874d00..9ed799e9 100644 --- a/tls/tls_names.go +++ b/tls/tls_names.go @@ -436,6 +436,8 @@ func init() { curveNames[258] = "ffdhe4096" curveNames[259] = "ffdhe6144" curveNames[260] = "ffdhe8192" + curveNames[4587] = "secp256r1mlkem768" // draft-kwiatkowski-tls-ecdhe-mlkem + curveNames[4588] = "ecdh_x25519mlkem768" // draft-kwiatkowski-tls-ecdhe-mlkem curveNames[65281] = "arbitrary_explicit_prime_curves" curveNames[65282] = "arbitrary_explicit_char2_curves" From b7e4195813500500c9848ae16e4d91483a843704 Mon Sep 17 00:00:00 2001 From: Loganaden Velvindron Date: Fri, 29 Nov 2024 16:22:30 +0400 Subject: [PATCH 2/2] Fix name for x25519mlkem768 --- tls/tls_names.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tls/tls_names.go b/tls/tls_names.go index 9ed799e9..3ea468e1 100644 --- a/tls/tls_names.go +++ b/tls/tls_names.go @@ -437,7 +437,7 @@ func init() { curveNames[259] = "ffdhe6144" curveNames[260] = "ffdhe8192" curveNames[4587] = "secp256r1mlkem768" // draft-kwiatkowski-tls-ecdhe-mlkem - curveNames[4588] = "ecdh_x25519mlkem768" // draft-kwiatkowski-tls-ecdhe-mlkem + curveNames[4588] = "x25519mlkem768" // draft-kwiatkowski-tls-ecdhe-mlkem curveNames[65281] = "arbitrary_explicit_prime_curves" curveNames[65282] = "arbitrary_explicit_char2_curves"