Richard Rowell <[EMAIL PROTECTED]> writes:

>     I'm a newbie to openssl...  I have been using the reference md5 
> implementation to generate checksums for an application.  Recently I 
> linked in libssl and used the md5 functions within it instead.  However, 
> the checksums generated don't match, so obviously I'm doing something 
> wrong.  I have included a very small implemenation below, can someone 
> please tell me what I'm doing wrong?
You're going to kick yourself... It's the linefeed at the end of
the file that's screwing you up. In your code you're MD5ing 
"Hola". When you use md5sum you're MD5ing "Hola\n"

-Ekr


-- 
[Eric Rescorla                                   [EMAIL PROTECTED]]
                http://www.rtfm.com/

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to