Kitura / BlueRSA

RSA public/private key encryption, private key signing and public key verification in Swift using the Swift Package Manager. Works on iOS, macOS, and Linux (work in progress).
Apache License 2.0
132 stars 57 forks source link

[Catalyst] 'SecCertificateCopyPublicKey' is unavailable in Mac Catalyst #58

Closed mariohahn closed 4 years ago

mariohahn commented 4 years ago

At the moment you can't build BlueRSA on Catalyst.

it should be a one liner to fix the issue:

#if !targetEnvironment(macCatalyst)
key = SecCertificateCopyPublicKey(certData)
#endif

The Key will be created some lines above.

mariohahn commented 4 years ago

https://github.com/IBM-Swift/BlueRSA/pull/54