sorry if this is duplicate but seems to have not pass the first time
 
A 192 key length seems to have been added for EC P type of key, this broke the for loop of iteration count. removing the 192 bits key or the following patch works(the sample count is possibly not very big )
 
OpenSSL 0.9.8-dev XX xxx XXXX
built on: Thu Mar 10 01:47:18 2005
platform: VC-WIN32
 
--- apps\speed.c.ori    2005-03-11 19:55:46.640625000 -0500
+++ apps\speed.c        2005-03-11 20:07:09.750000000 -0500
@@ -1361,7 +1361,7 @@
 #ifndef OPENSSL_NO_ECDSA
        ecdsa_c[R_EC_P160][0]=count/1000;
        ecdsa_c[R_EC_P160][1]=count/1000/2;
-       for (i=R_EC_P224; i<=R_EC_P521; i++)
+       for (i=R_EC_P192; i<=R_EC_P521; i++)
                {
                ecdsa_c[i][0]=ecdsa_c[i-1][0]/2;
                ecdsa_c[i][1]=ecdsa_c[i-1][1]/2;
@@ -1415,7 +1415,7 @@
 #ifndef OPENSSL_NO_ECDH
        ecdh_c[R_EC_P160][0]=count/1000;
        ecdh_c[R_EC_P160][1]=count/1000;
-       for (i=R_EC_P224; i<=R_EC_P521; i++)
+       for (i=R_EC_P192; i<=R_EC_P521; i++)
                {
                ecdh_c[i][0]=ecdh_c[i-1][0]/2;
                ecdh_c[i][1]=ecdh_c[i-1][1]/2;
 

Reply via email to