aboutsummaryrefslogtreecommitdiffstats
path: root/checks/pk_bench.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-11 00:00:10 +0000
committerlloyd <[email protected]>2008-11-11 00:00:10 +0000
commit894a225d14043cbd0cbd42c677ab4063b461fa24 (patch)
treed86973c4bc9bcddf4ac1970728479bf04e8f6522 /checks/pk_bench.cpp
parente6abb0fd8289619d559ff430dff84f0de4f82808 (diff)
Remove lookup.h use from DLIES, PK key agreement, DSA param gen, get_enc.cpp
Diffstat (limited to 'checks/pk_bench.cpp')
-rw-r--r--checks/pk_bench.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp
index b097c5815..a944934fb 100644
--- a/checks/pk_bench.cpp
+++ b/checks/pk_bench.cpp
@@ -30,6 +30,9 @@
#if defined(BOTAN_HAS_DLIES)
#include <botan/dlies.h>
+ #include <botan/kdf2.h>
+ #include <botan/hmac.h>
+ #include <botan/sha160.h>
#endif
#if defined(BOTAN_HAS_ECDSA)
@@ -525,10 +528,15 @@ void benchmark_dlies(RandomNumberGenerator& rng,
DH_PublicKey dh2_pub(dh2_priv);
- DLIES_Encryptor dlies_enc(dh1_priv);
+ DLIES_Encryptor dlies_enc(dh1_priv,
+ new KDF2(new SHA_160),
+ new HMAC(new SHA_160));
+
dlies_enc.set_other_key(dh2_pub.public_value());
- DLIES_Decryptor dlies_dec(dh2_priv);
+ DLIES_Decryptor dlies_dec(dh2_priv,
+ new KDF2(new SHA_160),
+ new HMAC(new SHA_160));
benchmark_enc_dec(dlies_enc, dlies_dec,
enc_timer, dec_timer, rng,