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.47k stars 165 forks source link

Add support for pkcs1 oaep sha256 #206

Closed rnro closed 1 year ago

rnro commented 1 year ago

Add support for pkcs1 oaep sha256

Motivation

Add RSA OAEP-sha256 support in addition to the increasingly aged SHA-1 implementation.

Modifications

Result

NOTE: This change sticks with the BoringSSL default behaviour and the case which uses the new SHA-256 digest hash function also uses SHA-256 as its mask generation function.