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

PR: #748

apps/speed.c

index ec55b4188cb4070e9f34105580fff118e959cbb0..18ce5c3fb63c67f11be014982174cb170f296177 100644 (file)
@@ -1006,6 +1006,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++)
                {
@@ -1031,6 +1034,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;