From 4c84cd8d1f1c49e955f8946846bbcc31b7542248 Mon Sep 17 00:00:00 2001 From: pinkforest <36498018+pinkforest@users.noreply.github.com> Date: Sun, 28 Apr 2024 17:48:15 +1000 Subject: [PATCH] No support for ECDSA P-512 --- validation/local_ping_pong_openssl/src/lib.rs | 7 +++++++ .../src/openssl_util/groups_list.rs | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/validation/local_ping_pong_openssl/src/lib.rs b/validation/local_ping_pong_openssl/src/lib.rs index c83bcfe..cc16fd7 100644 --- a/validation/local_ping_pong_openssl/src/lib.rs +++ b/validation/local_ping_pong_openssl/src/lib.rs @@ -118,6 +118,13 @@ mod test { vs_openssl_as_client(group_list, OpenSslCipherSuites::default()); } #[test] + #[should_panic] // no support + fn vs_openssl_as_client_group_p521() { + let mut group_list = OpenSslGroupsList::all_false(); + group_list.P521 = true; + vs_openssl_as_client(group_list, OpenSslCipherSuites::default()); + } + #[test] fn vs_openssl_as_client_group_x25519() { let mut group_list = OpenSslGroupsList::all_false(); group_list.X25519 = true; diff --git a/validation/local_ping_pong_openssl/src/openssl_util/groups_list.rs b/validation/local_ping_pong_openssl/src/openssl_util/groups_list.rs index 2d22f63..ffe3c65 100644 --- a/validation/local_ping_pong_openssl/src/openssl_util/groups_list.rs +++ b/validation/local_ping_pong_openssl/src/openssl_util/groups_list.rs @@ -7,6 +7,7 @@ pub struct GroupsList { pub P256: bool, pub P384: bool, + pub P521: bool, pub X25519: bool, pub X448: bool, pub brainpoolP256r1tls13: bool, @@ -24,6 +25,7 @@ impl GroupsList { GroupsList { P256: false, P384: false, + P521: false, X25519: false, X448: false, brainpoolP256r1tls13: false, @@ -43,6 +45,7 @@ impl Default for GroupsList { GroupsList { P256: true, P384: true, + P521: false, X25519: true, X448: false, brainpoolP256r1tls13: false, @@ -67,6 +70,9 @@ impl core::fmt::Display for GroupsList { if self.P384 { vec_groups.push("P-384"); } + if self.P521 { + vec_groups.push("P-521"); + } if self.X25519 { vec_groups.push("X25519"); }