Make sure to initialize AES counters to obtain proper results.
authorLutz Jänicke <jaenicke@openssl.org>
Tue, 18 Nov 2003 18:27:12 +0000 (18:27 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Tue, 18 Nov 2003 18:27:12 +0000 (18:27 +0000)
Submitted by: Kirill Kochetkov <kochet@ixbt.com>

PR: #748

apps/speed.c

index 5576f23..d9dd1b6 100644 (file)
@@ -1230,6 +1230,9 @@ int MAIN(int argc, char **argv)
        c[D_CBC_RC5][0]=count;
        c[D_CBC_BF][0]=count;
        c[D_CBC_CAST][0]=count;
+       c[D_CBC_128_AES][0]=count;
+       c[D_CBC_192_AES][0]=count;
+       c[D_CBC_256_AES][0]=count;
 
        for (i=1; i<SIZE_NUM; i++)
                {
@@ -1255,6 +1258,9 @@ int MAIN(int argc, char **argv)
                c[D_CBC_RC5][i]=c[D_CBC_RC5][i-1]*l0/l1;
                c[D_CBC_BF][i]=c[D_CBC_BF][i-1]*l0/l1;
                c[D_CBC_CAST][i]=c[D_CBC_CAST][i-1]*l0/l1;
+               c[D_CBC_128_AES][i]=c[D_CBC_128_AES][i-1]*l0/l1;
+               c[D_CBC_192_AES][i]=c[D_CBC_192_AES][i-1]*l0/l1;
+               c[D_CBC_256_AES][i]=c[D_CBC_256_AES][i-1]*l0/l1;
                }
 #ifndef OPENSSL_NO_RSA
        rsa_c[R_RSA_512][0]=count/2000;