Restores a key from an external representation of that key.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Data representing the key. The format of the data depends on the type of key being created. See the description of the return value of the
Secfunction for details.
Key Copy External Representation(_: _:)
The address of a CFError object. If an error occurs, this is set to point at an error instance that describes the failure.
The restored key or
nil on failure.