What's Changed
Security Advisories
This release contains fixes for the following security advisories:
- https://github.com/apple/swift-crypto/security/advisories/GHSA-rch3-xxjq-365j: X25519 key agreement accepts low-order public keys and returns an all-zero shared secret
- https://github.com/apple/swift-crypto/security/advisories/GHSA-c24m-vphm-p22w: KDF.Scrypt.deriveKey does not enforce the provided maxMemory parameter
SemVer Patch
- Enforce the max memory limit parameter in KDF.Scrypt.deriveKey in https://github.com/apple/swift-crypto/commit/1fa43495bc65e09249fa2752a7f8c8f4c77aee8d
- Reject X25519 key agreement that yields the all-zero secret in https://github.com/apple/swift-crypto/commit/3280a5f72874d2f73bf25551bbb64f524c76d834
- Update conditional compilation blocks to use compiler version instead of language mode by @simonjbeaumont in https://github.com/apple/swift-crypto/pull/499
- Build the CMake targets in the Swift 6 language mode by @simonjbeaumont in https://github.com/apple/swift-crypto/pull/501
Other Changes
- Clarify the privacy manifest comment in the package manifest by @simonjbeaumont in https://github.com/apple/swift-crypto/pull/498
- Run CMake CI job in a matrix by supported Swift version by @simonjbeaumont in https://github.com/apple/swift-crypto/pull/500
Full Changelog: https://github.com/apple/swift-crypto/compare/5.1.1...5.1.2