Re: SecKeyRef object without KeyChain
Re: SecKeyRef object without KeyChain
- Subject: Re: SecKeyRef object without KeyChain
- From: "email@hidden" <email@hidden>
- Date: Wed, 07 Sep 2011 22:02:31 +0100
On 7 Sep 2011, at 21:50, Jens Alfke wrote:
>
>
>> Not sure if the doc below will help or not (it's fairly recent).
>> http://developer.apple.com/library/mac/#documentation/Security/Conceptual/SecTransformPG/EncryptionandDecryption/EncryptionandDecryption.html
>
> Unfortunately it’s for Mac, not iOS (it uses the SecKeyCreateFromData function). It also glosses over the matter of the formatting of the key data, which is a non-issue with their example of AES but very important with RSA. There is a lengthy thread somewhere on the Apple dev forums by various people going crazy trying to figure out how to format a public key for consumption on iOS.
>
Oops - missed the iOS bit entirely!
Conrad's suggestion sounds worth a try if you can import a cert on iOS.
On OS X anyway you can import a cert and dig the keys out of the resultant security object.
Regards
Jonathan Mitchell
Developer
Mugginsoft LLP
http://www.mugginsoft.com
_______________________________________________
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