SecKey Import/Export do not support most key attributes
| Originator: | wiml | ||
| Number: | rdar://10428209 | Date Originated: | 10-Nov-2011 01:15 PM |
| Status: | Open | Resolved: | |
| Product: | Product Version: | 10.7 | |
| Classification: | Reproducible: | Always |
10-Nov-2011 01:15 PM W Lewis: Summary: ConvertArrayToKeyAttributes() (and therefore the public API functions which call it) does not handle most of the key attributes. This function lives in SecImportExportUtils.cpp and is invoked by the import and export APIs. The only conversion it performs is kSecAttrIsPermanent -> CSSM_KEYATTR_PERMANENT. I would expect the other useful keyattrs to be handled as well--- I'm particularly interested in kSecAttrIsExtractable -> CSSM_KEYATTR_EXTRACTABLE, but CSSM_KEYATTR_PRIVATE and CSSM_KEYATTR_SENSITIVE are also useful. Notes: This is a regression from the 10.6 APIs. See also RADAR #10274369.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!