Re: [NSPipe pipe] returning nil (running out of filehandles?)
Re: [NSPipe pipe] returning nil (running out of filehandles?)
- Subject: Re: [NSPipe pipe] returning nil (running out of filehandles?)
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 2 Apr 2008 09:43:34 +0200
You may have a look to the source as it is part to Darwin (package
CommonCrypto), but the answer is "not at all".
It look like a really standard implementation.
It has just the advantage to avoid a dependency over a third party
library if you need only simple digest functions (10.4) or if you need
simple cipher functions (10.4 + 10.5).
Le 2 avr. 08 à 01:55, John Stiles a écrit :
I haven't experimented with CC_MD5, but we do have code which
calculates MD5s (calculated via simple C code).
Is CC_MD5 optimized e.g. using SSE or AltiVec? Should I expect to
see a perf boost if I swapped in this code instead of our regular C
code?
Jean-Daniel Dupas wrote:
Le 2 avr. 08 à 01:36, stephen joseph butler a écrit :
On Tue, Apr 1, 2008 at 6:20 PM, Martin Redington <email@hidden
>
wrote:
I'm running /sbin/md5 via an NSTask on a number of files (3,000 or
so, with a new NSTask each time).
This would run a lot faster (and avoid fd issues) if you used
libcrypto. Try
"man EVP_DigestInit" to get an idea of where to start.
And this would not require libcrypto dependency if you use
CommonDigest that is part of the Mac OS X libSystem. (usr/include/
CommonCrypto/CommonDigest.h) and that is not more complexe than EVP:
extern unsigned char *CC_MD5(const void *data, CC_LONG len,
unsigned char *md);
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden