From d23a489940499bd6c634a1cb0a9875f094f8a850 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Mar 2003 01:24:12 +0000 Subject: various changes for 5.1 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@38 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- bench.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'bench.cpp') diff --git a/bench.cpp b/bench.cpp index 1fece27..44c0c96 100644 --- a/bench.cpp +++ b/bench.cpp @@ -229,7 +229,7 @@ void BenchMarkDecryption(const char *name, PK_Decryptor &priv, PK_Encryptor &pub unsigned int i; double timeTaken; for (timeTaken=(double)0, i=0; timeTaken < timeTotal; timeTaken = double(clock() - start) / CLOCK_TICKS_PER_SECOND, i++) - priv.Decrypt(ciphertext, ciphertext.size(), plaintext); + priv.Decrypt(rng, ciphertext, ciphertext.size(), plaintext); OutputResultOperations(name, "Decryption", false, i, timeTaken); } @@ -268,7 +268,7 @@ void BenchMarkVerification(const char *name, const PK_Signer &priv, PK_Verifier unsigned int i; double timeTaken; for (timeTaken=(double)0, i=0; timeTaken < timeTotal; timeTaken = double(clock() - start) / CLOCK_TICKS_PER_SECOND, i++) - pub.VerifyMessage(message, len, signature); + pub.VerifyMessage(message, len, signature, signature.size()); OutputResultOperations(name, "Verification", pc, i, timeTaken); @@ -555,10 +555,10 @@ void BenchMarkAll(double t) BenchMarkCrypto >("lucc1024.dat", "LUCELG 1024", t); cout << "" << endl; - BenchMarkSignature >("rsa1024.dat", "RSA 1024", t); - BenchMarkSignature >("rabi1024.dat", "Rabin 1024", t); - BenchMarkSignature >("rw1024.dat", "RW 1024", t); - BenchMarkSignature >("luc1024.dat", "LUC 1024", t); + BenchMarkSignature >("rsa1024.dat", "RSA 1024", t); + BenchMarkSignature >("rabi1024.dat", "Rabin 1024", t); + BenchMarkSignature >("rw1024.dat", "RW 1024", t); + BenchMarkSignature >("luc1024.dat", "LUC 1024", t); BenchMarkSignature >("nr1024.dat", "NR 1024", t); BenchMarkSignature("dsa1024.dat", "DSA 1024", t); BenchMarkSignature >("lucs512.dat", "LUC-HMP 512", t); @@ -566,10 +566,10 @@ void BenchMarkAll(double t) BenchMarkSignature >("esig1536.dat", "ESIGN 1536", t); cout << "" << endl; - BenchMarkSignature >("rsa2048.dat", "RSA 2048", t); - BenchMarkSignature >("rabi2048.dat", "Rabin 2048", t); - BenchMarkSignature >("rw2048.dat", "RW 2048", t); - BenchMarkSignature >("luc2048.dat", "LUC 2048", t); + BenchMarkSignature >("rsa2048.dat", "RSA 2048", t); + BenchMarkSignature >("rabi2048.dat", "Rabin 2048", t); + BenchMarkSignature >("rw2048.dat", "RW 2048", t); + BenchMarkSignature >("luc2048.dat", "LUC 2048", t); BenchMarkSignature >("nr2048.dat", "NR 2048", t); BenchMarkSignature >("lucs1024.dat", "LUC-HMP 1024", t); BenchMarkSignature >("esig2046.dat", "ESIGN 2046", t); -- cgit v1.2.1