[svn] / ecrypt / trunk / test / ecrypt-test.c  

svn: ecrypt/trunk/test/ecrypt-test.c

Diff for /ecrypt/trunk/test/ecrypt-test.c between version 102 and 107

version 102, Thu Sep 15 17:02:22 2005 UTC version 107, Fri Sep 16 14:17:22 2005 UTC
Line 1101 
Line 1101 
 /* ------------------------------------------------------------------------- */  /* ------------------------------------------------------------------------- */
   
 #define BYTES_TO_BLOCKS(b) ((b + ECRYPT_BLOCKLENGTH - 1) / ECRYPT_BLOCKLENGTH)  #define BYTES_TO_BLOCKS(b) ((b + ECRYPT_BLOCKLENGTH - 1) / ECRYPT_BLOCKLENGTH)
   
   #undef MAX
 #define MAX(a, b) ((a) > (b) ? (a) : (b))  #define MAX(a, b) ((a) > (b) ? (a) : (b))
   
 #define MIN_KEYS_TO_TEST 100  #define MIN_KEYS_TO_TEST 100
Line 1125 
Line 1127 
         /* And then compute how many tests can be made in 1/10th second */    \          /* And then compute how many tests can be made in 1/10th second */    \
         start = clock();                                                      \          start = clock();                                                      \
                                                                               \                                                                                \
         for(i = 0; clock() < start + CLOCKS_PER_SEC / 10; i += keys_to_test)  \          for(i = 0; clock() < start + CLOCKS_PER_SEC / 10; i++)                \
           for(j = 0; j < keys_to_test; j++)                                   \            for(j = 0; j < keys_to_test; j++)                                   \
             TEST;                                                             \              TEST;                                                             \
                                                                               \                                                                                \


Generate output suitable for use with a patch program
Legend:
Removed from v.102  
changed lines
  Added in v.107

eSTREAM Project

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help