aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/bench.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-01-04 02:42:24 -0500
committerJack Lloyd <[email protected]>2016-01-04 02:42:24 -0500
commitb2722fd321dcefcfc7111cc8185bb9cdc3f5e112 (patch)
treed8c184508348206591f5eb8dd1680239c6fa18b0 /src/cli/bench.cpp
parente61e64e37393be1827a9db27c95e4cc9d4af43dd (diff)
Add ECDH via OpenSSL
Expose provider param in PK_Key_Agreement API Handle multiple providers in key agreement tests Fix some funky formatting of P-521 EC points in ecdh.vec which was being rejected by OpenSSL; for whatever reason the CAVS file had the affine coords with far more leading zeros than necessary.
Diffstat (limited to 'src/cli/bench.cpp')
-rw-r--r--src/cli/bench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/bench.cpp b/src/cli/bench.cpp
index 82d04b139..cd16a291f 100644
--- a/src/cli/bench.cpp
+++ b/src/cli/bench.cpp
@@ -554,8 +554,8 @@ class Benchmark : public Command
const std::string& kdf,
std::chrono::milliseconds msec)
{
- Botan::PK_Key_Agreement ka1(key1, kdf /*, provider */);
- Botan::PK_Key_Agreement ka2(key2, kdf /*, provider */);
+ Botan::PK_Key_Agreement ka1(key1, kdf, provider);
+ Botan::PK_Key_Agreement ka2(key2, kdf, provider);
const std::vector<uint8_t> ka1_pub = key1.public_value();
const std::vector<uint8_t> ka2_pub = key2.public_value();