#AppleCryptoUpdate
Apple has introduced several updates to its cryptographic frameworks, CryptoKit and Swift Crypto, enhancing their capabilities and cross-platform support.Swift Forums+6The Mac Observer+6AppleInsider+6
🔐 CryptoKit Enhancements
CryptoKit, Apple's native cryptography framework, has received significant updates:
Key Format Support: Starting with iOS 14, CryptoKit added support for PEM and DER encoded keys, allowing developers to create and use EC keys in standard formats. This facilitates interoperability with other systems and simplifies key management. Andy Ibanez - iOS Developer+1The Mac Observer+1
HMAC-Based Key Derivation: iOS 14 introduced standalone APIs for HMAC-based Extract-and-Expand Key Derivation Functions (HKDF), enabling developers to derive multiple keys from a master secret efficiently. The Mac Observer+1AppleInsider+1
Cross-Platform Compatibility: With the introduction of Swift Crypto, CryptoKit's APIs are now accessible on non-Apple platforms, including Linux, ensuring consistent cryptographic operations across different environments. AppleInsider+4SwiftGG+4iClarified+4
⚙️ Swift Crypto: Cross-Platform Cryptography
Swift Crypto is an open-source Swift package that extends CryptoKit's functionality to non-Apple platforms:
Platform Support: On Apple platforms, Swift Crypto defers to CryptoKit. On other platforms, it uses BoringSSL to provide cryptographic operations. GitHub+4SwiftGG+4iClarified+4
Recent Updates: The latest release, Swift Crypto 3.8.1, includes support for loading RSAPSS public keys with parameters and updates to BoringSSL. GitHub
📦 Version Compatibility
Swift Crypto follows semantic versioning and supports Swift versions 5.7 and newer. Developers can include it in their projects using: