In message <49ae12ec.5030...@gmail.com> on Wed, 04 Mar 2009 13:34:36 +0800, xh <xiangshu...@gmail.com> said:
xiangshu129> Hi everyone, xiangshu129> xiangshu129> what's the difference between the following two command? xiangshu129> openssl speed md5 xiangshu129> openssl speed -evp md5 xiangshu129> xiangshu129> I checked the speed.c file, the -evp will call: xiangshu129> xiangshu129> EVP_CIPHER_CTX_init xiangshu129> EVP_EncryptInit_ex xiangshu129> EVP_EncryptUpdate xiangshu129> EVP_EncryptFinal_ex It will do so for cipher algorithms, but for hash algorithms such as md5, it will call EVP_Digest() (all depending on the values of evp_cipher and evp_md). xiangshu129> but the openssl speed md5 will call xiangshu129> EVP_Digest xiangshu129> xiangshu129> I think the two methods both use the EVP api, there seems no xiangshu129> difference. xiangshu129> xiangshu129> If anything wrong, please correct me. For hash algorithms, the difference is none, that's correct. For cipher algorithms, though, there's a difference. Without -evp, the algorithm's lowest level functions will be called directly (provided speed knows about the request algorithm specifically), while with -evp, the EVP routines that you identified above will be called instead. Cheers, Richard -- Richard Levitte rich...@levitte.org http://richard.levitte.org/ "Life is a tremendous celebration - and I'm invited!" -- from a friend's blog, translated from Swedish ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org