Skip to content

Replace BlueRSA, BlueECC and BlueCrypto with Apple's Swift Crypto#118

Open
wassup- wants to merge 6 commits intoKitura:masterfrom
wassup-:master
Open

Replace BlueRSA, BlueECC and BlueCrypto with Apple's Swift Crypto#118
wassup- wants to merge 6 commits intoKitura:masterfrom
wassup-:master

Conversation

@wassup-
Copy link
Copy Markdown

@wassup- wassup- commented Aug 4, 2023

Since I was running into the same issue as #117 , I decided to actually switch over to Apple's Swift Crypto.
For me this fixes the build issues. Make sure to leave a comment if it doesn't for you!

The most notable changes:

  • minimum deployment targets: iOS 14.0, macOS 11.0
  • currently supports only ECDSA and HMAC, support for RSA is missing!
  • formatted code using SwiftFormat (this is a separate commit)

RSA support is missing because -if I'm not mistaken- RSA is not currently part of Swift Crypto.
Any suggestions on how to add support RSA are welcome!

wassup- added 2 commits August 4, 2023 23:08
run using `swift package plugin --allow-writing-to-package-directory swiftformat`
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 4, 2023

CLA assistant check
All committers have signed the CLA.

wassup- added 2 commits August 6, 2023 16:06
- add testSignAndVerifyECDSA256
- rewrite testJWTEncoder, testJWTDecoder and testJWTCoderCycle to use ECDSA instead of RSA
- re-enable testJWTEncoder, testJWTDecoder and testJWTCoderCycle
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Aug 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@dannys42
Copy link
Copy Markdown
Contributor

dannys42 commented Mar 2, 2024

Thanks for this PR. Do you know if RSA has been added to Swift Crypto yet?

wassup- added 2 commits March 3, 2024 14:21
- RSA with either public key or private key is supported
- RSA with certificate is not supported
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 3, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@wassup-
Copy link
Copy Markdown
Author

wassup- commented Mar 3, 2024

@dannys42 It seems like Swift Crypto supports RSA via the _CryptoExtras package.
For this PR I have now added support for RSA using both public- and private keys. Using certificates is not supported.

@Jeehut
Copy link
Copy Markdown

Jeehut commented Oct 23, 2024

@wassup- Could you review & accept the CLA so this is no longer blocked? I personally need this to get compatibility with visionOS. Thank you for the hard work!

@wassup-
Copy link
Copy Markdown
Author

wassup- commented Nov 2, 2024

@Jeehut I have signed the CLA, however I'm afraid this repository is kind of abandoned.

Here's to hoping this will be reviewed and possibly even merged soon 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants