mirror of
https://github.com/apple/swift-crypto
synced 2026-11-23 04:34:21 +00:00
Add `Sendable` conformance to `_RSA.Encryption.PublicKey` and `_RSA.Encryption.PrivateKey`. ### Motivation: The `_RSA.Signing` keys became `Sendable` in #211, but the encryption keys lack the same conformance. Fixes #494. ### Modifications: Declare both conformances and add `testKeysAreSendable` to check them at compile time. ### Result: RSA encryption keys can be passed across concurrency domains. Co-authored-by: Si Beaumont <beaumont@apple.com>