• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about MD5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: Re: Beginning XCode
  • Next by Date: Precompiled header problem
  • Previous by thread: Re: Question about MD5
  • Next by thread: Re: Question about MD5
  • Index(es):
    • Date
    • Thread