Can't import raw symmetric keys [Mac OS]
-
snej
- Tag set to import, mac_os, symmetric
-
snej
- State changed from new to open
-
snej
Doug Mitchell of Apple acknowledges the problem, in 2005, and suggests using CSSM_UnwrapKey.
The Keychain.framework code has a method
-[Keychain addKey:]that appears to do this ... it's 400 lines long, though. :-P -
snej
- Milestone set to 0.3
- State changed from open to resolved
Fixed in 0.3.
I had to use an undocumented/SPI function, SecKeyCreate. Not ideal, but there wasn't a reasonable workaround. I've at least marked it as weak-linked, so apps using MYCrypto will still run if this function ever disappears from Security.framework in the future.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.