Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVP API ECDHE speed tool support #1080

Merged
merged 14 commits into from
Jul 18, 2023

Conversation

torben-hansen
Copy link
Contributor

Description of changes:

Capture fips vs non-fips performance differences when using EVP API level to do ECDHE.

Call-outs:

non-fips:

$ ./tool/bssl speed -filter "ECDH"                                                                                                        
Did 9250 ECDH P-224 operations in 1001966us (9231.9 ops/sec)
Did 17000 ECDH P-256 operations in 1007707us (16870.0 ops/sec)
Did 4213 ECDH P-384 operations in 1084221us (3885.7 ops/sec)
Did 3003 ECDH P-521 operations in 1098185us (2734.5 ops/sec)
Did 2519 ECDH secp256k1 operations in 1081613us (2328.9 ops/sec)
Did 9250 EVP ECDH P-224 operations in 1002814us (9224.0 ops/sec)
Did 17000 EVP ECDH P-256 operations in 1020140us (16664.4 ops/sec)
Did 3890 EVP ECDH P-384 operations in 1004690us (3871.8 ops/sec)
Did 2730 EVP ECDH P-521 operations in 1000664us (2728.2 ops/sec)
Did 2552 EVP ECDH secp256k1 operations in 1097794us (2324.7 ops/sec)
Did 30000 EVP ECDH X25519 operations in 1011202us (29667.7 ops/sec)

fips:

Notice the drop in the second part of the output.

$ ./tool/bssl speed -filter "ECDH"
Did 10175 ECDH P-224 operations in 1096756us (9277.4 ops/sec)
Did 17000 ECDH P-256 operations in 1006072us (16897.4 ops/sec)
Did 4125 ECDH P-384 operations in 1067952us (3862.5 ops/sec)
Did 2750 ECDH P-521 operations in 1001442us (2746.0 ops/sec)
Did 2618 ECDH secp256k1 operations in 1094624us (2391.7 ops/sec)
Did 3850 EVP ECDH P-224 operations in 1099314us (3502.2 ops/sec)
Did 6800 EVP ECDH P-256 operations in 1002298us (6784.4 ops/sec)
Did 1560 EVP ECDH P-384 operations in 1000189us (1559.7 ops/sec)
Did 1089 EVP ECDH P-521 operations in 1083282us (1005.3 ops/sec)
Did 1023 EVP ECDH secp256k1 operations in 1094584us (934.6 ops/sec)
Did 30000 EVP ECDH X25519 operations in 1012383us (29633.1 ops/sec)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@torben-hansen torben-hansen requested review from andrewhop and nebeid July 5, 2023 15:39
tool/speed.cc Show resolved Hide resolved
tool/speed.cc Show resolved Hide resolved
@torben-hansen torben-hansen force-pushed the speed_evp_key_agreement branch from ce143f4 to 42364b0 Compare July 6, 2023 14:12
@torben-hansen torben-hansen requested a review from nebeid July 6, 2023 14:13
tool/README.md Show resolved Hide resolved
@torben-hansen torben-hansen force-pushed the speed_evp_key_agreement branch from 1503380 to 4828ab2 Compare July 10, 2023 14:00
@torben-hansen torben-hansen requested a review from nebeid July 10, 2023 14:00
tool/speed.cc Outdated Show resolved Hide resolved
@torben-hansen torben-hansen force-pushed the speed_evp_key_agreement branch from 3172f05 to c91c003 Compare July 10, 2023 19:59
tool/speed.cc Outdated Show resolved Hide resolved
@torben-hansen torben-hansen force-pushed the speed_evp_key_agreement branch from c91c003 to b4e48f1 Compare July 13, 2023 13:58
@torben-hansen torben-hansen requested a review from nebeid July 13, 2023 13:59
@torben-hansen torben-hansen enabled auto-merge (squash) July 18, 2023 13:55
@torben-hansen torben-hansen merged commit ad53db8 into aws:main Jul 18, 2023
@skmcgrail skmcgrail mentioned this pull request Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants