[moon] Allow creating AES with the fully qualified name in S.Core
authorSebastien Pouliot <sebastien@ximian.com>
Thu, 11 Nov 2010 13:35:29 +0000 (08:35 -0500)
committerSebastien Pouliot <sebastien@ximian.com>
Thu, 11 Nov 2010 20:28:52 +0000 (15:28 -0500)
* CryptoConfig_2_1.cs: Add fully qualified name (to simple name) to
allow the creation of AES using (internal) CryptoConfig

mcs/class/corlib/System.Security.Cryptography/CryptoConfig_2_1.cs

index 505a0beafa3213be76011167d685986208364a8b..97c280b563b01f93be89983766237ad90cf144c6 100644 (file)
@@ -153,6 +153,7 @@ namespace System.Security.Cryptography {
                        case "System.Security.Cryptography.RSA":
                                return new Mono.Security.Cryptography.RSAManaged ();
                        case "AES":
+                       case AES:
                                return (Aes) Activator.CreateInstance (Type.GetType (AES), null);
                        default:
                                throw new NotImplementedException (name);