Re: Question about MD5
Re: Question about MD5
- Subject: Re: Question about MD5
- From: Steve Checkoway <email@hidden>
- Date: Tue, 11 Jul 2006 01:10:03 -0700
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:
This email sent to email@hidden