Re: Keychain issues with public key on iOS
Re: Keychain issues with public key on iOS
- Subject: Re: Keychain issues with public key on iOS
- From: Jens Alfke <email@hidden>
- Date: Mon, 11 Feb 2013 10:28:50 -0800
On Feb 10, 2013, at 10:03 PM, Damien Cooke <email@hidden> 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@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