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
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.
Add support for pkcs1 oaep sha256
Motivation
Add RSA OAEP-sha256 support in addition to the increasingly aged SHA-1 implementation.
Modifications
Digest
enum to_RSA.Encryption.Padding
.pkcs1_oaep
padding enum case to allow us to distinguish different digest hash functions.PKCS1_OAEP_SHA256
public static let to allow users to use the new hash function.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.