-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SecureEnclave stub #147
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New API Proposal: SecureEnclave
Motivation:
Swift packages that use CryptoKit's SecureEnclave module (if it is available) cannot compile against Crypto, since Crypto does not define this module. All SecureEnclave operations have to be conditionally compiled in this case.
Since SecureEnclave has runtime detection (
SecureEnclave.isAvailable
), a stub of the SecureEnclave API that returnsfalse
for isAvailable (and throws for all operations) on non-macOS platforms would remove the need for conditional compilation.One annoyance is that some functions in this API also take
LAContext
andSecAccessControl
parameters. These can be left out, or the structures would have to be stubbed out too.Importance:
Better compatibility with CryptoKit.
The text was updated successfully, but these errors were encountered: