Skip to content
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

Open
remko opened this issue Feb 14, 2023 · 0 comments
Open

Add SecureEnclave stub #147

remko opened this issue Feb 14, 2023 · 0 comments

Comments

@remko
Copy link

remko commented Feb 14, 2023

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 returns false 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 and SecAccessControl parameters. These can be left out, or the structures would have to be stubbed out too.

Importance:

Better compatibility with CryptoKit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant