Fix RSA encryption/decryption with OAEP padding [#30572]
authorSebastien Pouliot <sebastien@xamarin.com>
Fri, 29 May 2015 13:55:04 +0000 (09:55 -0400)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 May 2016 22:10:22 +0000 (00:10 +0200)
commit329deb3cd4286aa84c9ed898f63e5b04e73df339
treee35fb868f49eeaf7ea0bb7b6611f310813e9164f
parent0a65236d93f95205175e34c91772732428ecae2d
Fix RSA encryption/decryption with OAEP padding [#30572]

MS implementation is incorrect and the .NET framework never hits this code
path as it's RSA implementation calls CryptoAPI (bypassing those managed
classes).

mscorlib/system/security/cryptography/pkcs1maskgenerationmethod.cs
-> use Mono MGF1 implementation

mscorlib/system/security/cryptography/utils.cs
-> remove duplicated code from Mono's PKCS1
-> fix RsaOaepEncrypt and RsaOaepDecrypt to call Mono code
mcs/class/referencesource/mscorlib/system/security/cryptography/pkcs1maskgenerationmethod.cs
mcs/class/referencesource/mscorlib/system/security/cryptography/utils.cs