Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about MD5




On Jul 10, 2006, at 5:25 PM, Chas Spillar wrote:

O.K.

So, I am including the openssl/md5.h header:

#include "openssl/md5.h"

#include <openssl/md5.h>


And, I am linking with /usr/lib/libcrypto.0.9.7.dylib

Try adding -lcrypto to the linker flags and make sure you're following the instructions for a universal binary.



However, this will build on Intel but the PPC version isn't finding the
routines I am using MD5Init, MD5Update, MD5Finalize...

The functions are MD5_Init, MD5_Update, and MD5_Final. Or, you can do it all in one step with MD5:


unsigned char md[MD5_DIGEST_LENGTH];
const char *data = "Hello World!";
MD5( (const unsigned char *)data, strlen(data), md );


-- Steve Checkoway



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Question about MD5 (From: Chas Spillar <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.