Apple CryptoKit for Swift

•
732
•

Implements secure cryptographic operations using Apple's native CryptoKit framework for modern Swift and iOS development.

This skill provides comprehensive guidance and standardized code patterns for Apple's CryptoKit framework, facilitating the implementation of robust security features in Swift 6.3+ applications. It covers essential primitives including hashing, HMAC, symmetric encryption (AES-GCM, ChaChaPoly), and public-key signing, while also providing advanced support for HPKE and Post-Quantum Cryptography (ML-KEM, ML-DSA). By leveraging this skill, developers can ensure their apps follow Apple's best practices, utilize Secure Enclave hardware protection, and avoid common cryptographic pitfalls like nonce reuse or insecure hash functions.

Key Features

01Hashing & HMAC (SHA-2, SHA-3, and authenticated codes)
02Hardware-backed security via Secure Enclave integration
03Key Agreement & HPKE (ECDH, ML-KEM, and X-Wing protocols)
04Public-Key Signing (P256/P384/P521, Curve25519, and ML-DSA)
05Symmetric Encryption (AES-GCM and ChaChaPoly sealed boxes)
06732 GitHub stars

Use Cases

01Implementing end-to-end encryption and secure messaging in iOS apps
02Securing sensitive user data using hardware-backed Secure Enclave keys
03Modernizing legacy CommonCrypto or Security framework code to type-safe Swift primitives