Allow RSACryptoServiceProvider.SignHash to work with SHA-2 family
authorSebastien Pouliot <sebastien@ximian.com>
Tue, 11 Jan 2011 15:01:56 +0000 (10:01 -0500)
committerSebastien Pouliot <sebastien@ximian.com>
Tue, 11 Jan 2011 15:01:56 +0000 (10:01 -0500)
commit25280a542de801195b69186221ea9cacb26eb4e0
tree5a4c99265f331818f6660e8483af9726e5eed788
parentf4b5acc98478a647926baa0509356039127877d1
Allow RSACryptoServiceProvider.SignHash to work with SHA-2 family

* System.Security.Cryptography/CryptoConfig.cs: Add OID for RIPEMD160
* System.Security.Cryptography/RSACryptoServiceProvider.cs: Update
GetHashNameFromOID to include SHA2-family OIDs. Remove historical
comments about 1.x FX behavior.

* Test/System.Security.Cryptography/CryptoConfigTest.cs: Add test cases
wrt RIPEMD160 OID
* Test/System.Security.Cryptography/RSACryptoServiceProviderTest.cs: Add
test case for SignHash with all FX-provided hash implementations (all
working except RIPEMD160). Remove some NET_2_0/NET_1_1 defines.
* Test/System.Security.Cryptography/RSAPKCS1SignatureFormatterTest.cs:
Remove hacks that were needed for running the tests under FX 1.x. Remove
some NET_2_0/NET_1_1 defines.
mcs/class/corlib/System.Security.Cryptography/CryptoConfig.cs
mcs/class/corlib/System.Security.Cryptography/RSACryptoServiceProvider.cs
mcs/class/corlib/Test/System.Security.Cryptography/CryptoConfigTest.cs
mcs/class/corlib/Test/System.Security.Cryptography/RSACryptoServiceProviderTest.cs
mcs/class/corlib/Test/System.Security.Cryptography/RSAPKCS1SignatureFormatterTest.cs