mirror of
https://github.com/apple/swift-crypto
synced 2026-11-23 04:34:21 +00:00
Motivation: Some critical use-cases require RSA signing support. This is most commonly required when interacting with legacy systems. While RSA is an older and less efficient cryptosystem than the elliptic-curve algorithms supported by Swift Crypto already, those interop use-cases are unavoidable. This version of the patch does not promote RSA to supported API at this time, as we'd like to let the API bake somewhat. Users are free to use it, but these APIs are not covered by semantic versioning at this time and may break in future. Modifications: - Defined new RSA API - Implemented on top of `Security` when available - Implemented on top of BoringSSL when `Security` is unavailable Result: Users can do RSA if needed.