From f9fa9be5ccdc7d4a1287c8651efdb98483637304 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 26 Mar 2011 10:05:59 +0100 Subject: [PATCH] rationalized test cases in sha_speed. --- examples/hashcrypt_speed.c | 4 ++-- examples/sha_speed.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/hashcrypt_speed.c b/examples/hashcrypt_speed.c index 2344577..b27c6b5 100644 --- a/examples/hashcrypt_speed.c +++ b/examples/hashcrypt_speed.c @@ -168,7 +168,7 @@ int main(void) alignmask = siop.alignmask; #endif - for (i = 256; i <= (64 * 4096); i *= 2) { + for (i = 256; i <= (64 * 4096); i *= 4) { if (hash_data(&sess, fdc, i, alignmask)) break; } @@ -193,7 +193,7 @@ int main(void) alignmask = siop.alignmask; #endif - for (i = 256; i <= (64 * 1024); i *= 2) { + for (i = 256; i <= (64 * 1024); i *= 4) { if (hash_data(&sess, fdc, i, alignmask)) break; } diff --git a/examples/sha_speed.c b/examples/sha_speed.c index 6389db2..e1dc54b 100644 --- a/examples/sha_speed.c +++ b/examples/sha_speed.c @@ -164,7 +164,7 @@ int main(void) alignmask = siop.alignmask; #endif - for (i = 256; i <= (64 * 4096); i *= 2) { + for (i = 256; i <= (64 * 1024); i *= 4) { if (hash_data(&sess, fdc, i, alignmask)) break; } @@ -187,7 +187,7 @@ int main(void) alignmask = siop.alignmask; #endif - for (i = 256; i <= (64 * 1024); i *= 2) { + for (i = 256; i <= (64 * 1024); i *= 4) { if (hash_data(&sess, fdc, i, alignmask)) break; } -- 2.11.4.GIT