We are currently modifying OpenSSL to use a different crypto lib (for license and export reasons). One thing I have done to help reduce the entry points into our code is replace all calls directly to digest functions (MD5_Init, SHA1_Update, etc.) to always use the EVP layer. I think this is a useful cleanup item to be patched into the openssl source so I am submitting this patch.
 
I created a new function called "EVP_Digest" to replace calls to MD5, SHA1, etc. I replaced all direct references to digest functions in the ssl directory to call EVP functions. I believe that I also replaced all calls in the crypto and apps code. I also removed any references to the md5.h, sha.h, etc. header files in the sll directory.
 
This patch was built using a clean version of 0.9.6a. The code passes all tests in test.bat. It was built on WindowsNT but should be portable to all platforms.
 
Note: The patch has been copied to [EMAIL PROTECTED] since it orignates in the USA. The code changes are not in any cryptographic functions only in the code calling the cryptographic functions.
 
I hope that I have submitted this patch correctly. Please let me know if there is anything more I need to do. I hope the diff is OK. I am developing on Windows 2000 and my version of diff does not have a -u option. I hope the slightly different format is OK.
 
Any questions, comments or concerns, please contact me. Thanks.
 
PS What feedback should I expect when a Patch is submitted. I previously submitted a small Patch for HMAC processing and never saw anything. Am I doing something wrong or do I need to do something differently? Thanks for your help on these matters.
 
Verdon Walker
(801) 861-2633
[EMAIL PROTECTED]
Novell Inc., the leading provider of Net Services Software
www.novell.com

digest.patch

Reply via email to