apple / swift-crypto

Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms.
https://apple.github.io/swift-crypto
Apache License 2.0
1.43k stars 151 forks source link

BoringSSLRSAPublicKey use EVP_PKEY API #205

Closed rnro closed 8 months ago

rnro commented 8 months ago

Switch BoringSSLRSAPublicKey encrypt/decrypt methods to use EVP_PKEY_* API

Motivation

Increased versatility of the BoringSSLRSAPublicKey encrypt and decrypt methods to make future extensions possible.

Modifications

Switch the BoringSSLRSAPublicKey encrypt and decrypt methods to use the EVP_PKEY_* API directly rather than going through the RSA abstractions.

Result

Increased versatility of the BoringSSLRSAPublicKey encrypt and decrypt methods.