At WWDC 2019 Apple quietly unveiled a CryptoKit framework that will allow developers to build cryptographic operations right into their apps. Apple states using crypto kit developers can perform cryptographic operations securely and efficiently.
As per Apple, CryptoKit can perform following common cryptographic operations:
- Compute and compare cryptographically secure digests.
- Use public-key cryptography to create and evaluate digital signatures, and to perform key exchange. In addition to working with keys stored in memory, you can also use private keys stored in and managed by the Secure Enclave.
- Generate symmetric keys, and use them in operations like message authentication and encryption.
Apple recommends developers to prefer CryptoKit over lower-level interfaces. CryptoKit frees developers app from managing raw pointers, and automatically handles tasks that make your app more secure, like overwriting sensitive data during memory deallocation.
Developers, including crypto exchanges, may use CryptoKit to turn iPhones and Macs into secure wallets for cryptocurrency, and the move wouldn’t be surprising.