Swift Crypto
An open-source, cross-platform implementation of CryptoKit APIs, providing post-quantum cryptographic APIs for Swift server applications.
Current support
- SupportedSince 4.0.0ML-KEM-768, ML-KEM-1024
Version 4.0.0 updates the API to the WWDC25 CryptoKit functionality, including ML-KEM, ML-DSA and X-Wing, and adopts Swift 6 mode.
The Crypto module uses system CryptoKit on Apple platforms and its bundled BoringSSL implementation on Linux and Windows. Availability on Apple platforms also depends on the operating system version. CryptoExtras supplies additional server-oriented APIs; check dependencies and implementation for the module actually used.
The algorithm APIs support application-layer encryption and signing. Check the TLS implementation and configuration used for network connections separately.
Release history
- 4.0.0
- SupportedML-DSA: ML-DSA-65, ML-DSA-87
- SupportedML-KEM: ML-KEM-768, ML-KEM-1024
Evidence: Swift Crypto 4.0.0 adopts the WWDC25 CryptoKit APIsSwift Crypto 4.0.0 ML-KEM parameter setsCryptoKit and Swift Crypto post-quantum API compatibility