From 04586ebe8a45978eb2cc1890bc4ebc3946f486f7 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 23 Jun 2010 00:18:27 +0200 Subject: [PATCH] Reduced tests performed by starting tests from 256bytes --- examples/cryptodev_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/cryptodev_test.c b/examples/cryptodev_test.c index 9a93ba5..77d6d29 100644 --- a/examples/cryptodev_test.c +++ b/examples/cryptodev_test.c @@ -23,9 +23,9 @@ #include #include #include -#include +#include "../cryptodev.h" -#if 0 +#if 1 #define TEST_ALGO CRYPTO_AES_CBC #define TEST_KEYLEN 32 #else @@ -112,12 +112,12 @@ int main(void) } printf("Standard operation:\n"); - for (i = 16; i <= (64 * 4096); i *= 2) { + for (i = 256; i <= (64 * 4096); i *= 2) { if (encrypt_data(&sess, fdc, TOT_LEN, i, 0)) break; } printf("Zero-Copy operation:\n"); - for (i = 16; i <= (64 * 4096); i *= 2) { + for (i = 256; i <= (64 * 4096); i *= 2) { if (encrypt_data(&sess, fdc, TOT_LEN, i, COP_FLAG_ZCOPY)) break; } -- 2.11.4.GIT