On Feb 10, 2013, at 10:03 PM, Damien Cooke <[email protected]> wrote:
> Is there any chance you could share the ComputeSHA1 message with me? I know
> you said it was only a wrapper for commonCrypto but I am so lost in this
> stuff I want t check everything.
Sure; it’s pretty trivial:
typedef struct {
uint8_t bytes[20];
} SHA1Digest;
SHA1Digest ComputeSHA1(NSData* data) {
NSCParameterAssert(data);
SHA1Digest digest;
CC_SHA1(data.bytes, (CC_LONG)data.length, digest.bytes);
return digest;
}
—Jens
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]