Skip to content

Commit

Permalink
No support for ECDSA P-512
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkforest committed Apr 28, 2024
1 parent e721365 commit 4c84cd8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions validation/local_ping_pong_openssl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -24,6 +25,7 @@ impl GroupsList {
GroupsList {
P256: false,
P384: false,
P521: false,
X25519: false,
X448: false,
brainpoolP256r1tls13: false,
Expand All @@ -43,6 +45,7 @@ impl Default for GroupsList {
GroupsList {
P256: true,
P384: true,
P521: false,
X25519: true,
X448: false,
brainpoolP256r1tls13: false,
Expand All @@ -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");
}
Expand Down

0 comments on commit 4c84cd8

Please sign in to comment.