mirror of
https://github.com/apple/swift-crypto
synced 2026-11-23 04:34:21 +00:00
* Add basic RSA encrypt/decrypt API. * Add test vectors and tests for RSA encryption API * Fix build failures * Fix soundness issue * Remove support for RSA encryption using the unsafe PKCS1 v1.5 padding * Fix deprecation warning about the "pointer" version of Data.withUnsafeMutableBytes() by nudging the compiler to infer the "buffer" version. * Fix deprecation warning about String.init(bytesNoCopy:length:freeWhenDone:) by using String.init(unsafeInitializedCapacity:initializingWith:) instead. * Make _RSA.Encryption.[Public|Private]Key their own types * Remove _RSA.Encryption.RSA[Encrypted|Decrypted]Data and just use Data directly. Don't use intermediate Array in BoringSSL implementations. * Document the message size limits on RSA encrypt/decrypt operations * Mark `_RSA` visible to documentation so the new docs can actually be seen (underscored name is assumed private by default) * Fix generic type parameter shadowing warning (new warning in Swift 5.9) * Fix pre-5.8 build * Un-correct switch case indentation to make it wrong