mirror of
https://github.com/apple/swift-crypto
synced 2026-11-25 04:47:47 +00:00
Motivation Add RSA OAEP-sha256 support in addition to the increasingly aged SHA-1 implementation. Modifications * Add a `Digest` enum to `_RSA.Encryption.Padding` * Add a digest associated type to the `.pkcs1_oaep` padding enum case to allow us to distinguish different digest hash functions. * Add a `PKCS1_OAEP_SHA256` public static let to allow users to use the new hash function. * Enable SHA-256 RSA encryption tests Result * Support for RSA OAEP-sha256