Skip to content

Commit

Permalink
add ecdsa+eddsa for aes-256 suite tests
Browse files Browse the repository at this point in the history
This is suite used for comparative handshake benchmarks
with openssl.
  • Loading branch information
ctz committed Jul 5, 2024
1 parent eb9b36e commit b718788
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/bench-measure.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ measure: $(BENCH)
$^ bulk TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
$^ bulk TLS13_AES_256_GCM_SHA384
$^ handshake TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
$^ handshake TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
$^ handshake-resume TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
$^ handshake-ticket TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
$^ handshake TLS13_AES_256_GCM_SHA384
Expand Down
18 changes: 17 additions & 1 deletion rustls/examples/internal/bench_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ static ALL_BENCHMARKS: &[BenchmarkParam] = &[
#[cfg(feature = "tls12")]
BenchmarkParam::new(
KeyType::EcdsaP256,
cipher_suite::TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
cipher_suite::TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
&rustls::version::TLS12,
),
#[cfg(feature = "tls12")]
Expand All @@ -1136,6 +1136,12 @@ static ALL_BENCHMARKS: &[BenchmarkParam] = &[
cipher_suite::TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
&rustls::version::TLS12,
),
#[cfg(feature = "tls12")]
BenchmarkParam::new(
KeyType::Ed25519,
cipher_suite::TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
&rustls::version::TLS12,
),
#[cfg(not(feature = "fips"))]
BenchmarkParam::new(
KeyType::Rsa2048,
Expand All @@ -1147,6 +1153,16 @@ static ALL_BENCHMARKS: &[BenchmarkParam] = &[
cipher_suite::TLS13_AES_256_GCM_SHA384,
&rustls::version::TLS13,
),
BenchmarkParam::new(
KeyType::EcdsaP256,
cipher_suite::TLS13_AES_256_GCM_SHA384,
&rustls::version::TLS13,
),
BenchmarkParam::new(
KeyType::Ed25519,
cipher_suite::TLS13_AES_256_GCM_SHA384,
&rustls::version::TLS13,
),
BenchmarkParam::new(
KeyType::Rsa2048,
cipher_suite::TLS13_AES_128_GCM_SHA256,
Expand Down

0 comments on commit b718788

Please sign in to comment.