[BACK]Return to speed.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/speed.c between version 1.11 and 1.12

version 1.11, 2015/09/11 14:30:23 version 1.12, 2015/09/11 20:55:59
Line 136 
Line 136 
 #ifndef OPENSSL_NO_RC4  #ifndef OPENSSL_NO_RC4
 #include <openssl/rc4.h>  #include <openssl/rc4.h>
 #endif  #endif
 #ifndef OPENSSL_NO_RC5  
 #include <openssl/rc5.h>  
 #endif  
 #include <openssl/rsa.h>  #include <openssl/rsa.h>
 #ifndef OPENSSL_NO_RIPEMD  #ifndef OPENSSL_NO_RIPEMD
 #include <openssl/ripemd.h>  #include <openssl/ripemd.h>
Line 260 
Line 257 
 #ifndef OPENSSL_NO_RC4  #ifndef OPENSSL_NO_RC4
         RC4_KEY rc4_ks;          RC4_KEY rc4_ks;
 #endif  #endif
 #ifndef OPENSSL_NO_RC5  
         RC5_32_KEY rc5_ks;  
 #endif  
 #ifndef OPENSSL_NO_RC2  #ifndef OPENSSL_NO_RC2
         RC2_KEY rc2_ks;          RC2_KEY rc2_ks;
 #endif  #endif
Line 670 
Line 664 
                         doit[D_CBC_RC2] = 1;                          doit[D_CBC_RC2] = 1;
                 else                  else
 #endif  #endif
 #ifndef OPENSSL_NO_RC5  
                 if (strcmp(*argv, "rc5-cbc") == 0)  
                         doit[D_CBC_RC5] = 1;  
                 else if (strcmp(*argv, "rc5") == 0)  
                         doit[D_CBC_RC5] = 1;  
                 else  
 #endif  
 #ifndef OPENSSL_NO_IDEA  #ifndef OPENSSL_NO_IDEA
                 if (strcmp(*argv, "idea-cbc") == 0)                  if (strcmp(*argv, "idea-cbc") == 0)
                         doit[D_CBC_IDEA] = 1;                          doit[D_CBC_IDEA] = 1;
Line 848 
Line 835 
 #ifndef OPENSSL_NO_RC2  #ifndef OPENSSL_NO_RC2
                         BIO_printf(bio_err, "rc2-cbc  ");                          BIO_printf(bio_err, "rc2-cbc  ");
 #endif  #endif
 #ifndef OPENSSL_NO_RC5  
                         BIO_printf(bio_err, "rc5-cbc  ");  
 #endif  
 #ifndef OPENSSL_NO_BF  #ifndef OPENSSL_NO_BF
                         BIO_printf(bio_err, "bf-cbc");                          BIO_printf(bio_err, "bf-cbc");
 #endif  #endif
Line 989 
Line 973 
 #ifndef OPENSSL_NO_RC2  #ifndef OPENSSL_NO_RC2
         RC2_set_key(&rc2_ks, 16, key16, 128);          RC2_set_key(&rc2_ks, 16, key16, 128);
 #endif  #endif
 #ifndef OPENSSL_NO_RC5  
         RC5_32_set_key(&rc5_ks, 16, key16, 12);  
 #endif  
 #ifndef OPENSSL_NO_BF  #ifndef OPENSSL_NO_BF
         BF_set_key(&bf_ks, 16, key16);          BF_set_key(&bf_ks, 16, key16);
 #endif  #endif
Line 1303 
Line 1284 
                                     iv, RC2_ENCRYPT);                                      iv, RC2_ENCRYPT);
                         d = Time_F(STOP);                          d = Time_F(STOP);
                         print_result(D_CBC_RC2, j, count, d);                          print_result(D_CBC_RC2, j, count, d);
                 }  
         }  
 #endif  
 #ifndef OPENSSL_NO_RC5  
         if (doit[D_CBC_RC5]) {  
                 for (j = 0; j < SIZE_NUM; j++) {  
                         print_message(names[D_CBC_RC5], c[D_CBC_RC5][j], lengths[j]);  
                         Time_F(START);  
                         for (count = 0, run = 1; COND(c[D_CBC_RC5][j]); count++)  
                                 RC5_32_cbc_encrypt(buf, buf,  
                                     (unsigned long) lengths[j], &rc5_ks,  
                                     iv, RC5_ENCRYPT);  
                         d = Time_F(STOP);  
                         print_result(D_CBC_RC5, j, count, d);  
                 }                  }
         }          }
 #endif  #endif

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12