From 92accdef67cb7e6b6127eafc08448e109e91a30e Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Fri, 4 Jan 2013 15:20:39 -0500 Subject: [PATCH] Aes.Create returns, by default, an instance of AesCryptoServiceProvider, not AesManaged (more important now than before wrt CFB support) --- mcs/class/System.Core/System.Security.Cryptography/Aes.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mcs/class/System.Core/System.Security.Cryptography/Aes.cs b/mcs/class/System.Core/System.Security.Cryptography/Aes.cs index b0479565624..061bd617d90 100644 --- a/mcs/class/System.Core/System.Security.Cryptography/Aes.cs +++ b/mcs/class/System.Core/System.Security.Cryptography/Aes.cs @@ -60,12 +60,8 @@ namespace System.Security.Cryptography { // The Aes base class was moved from System.Core to mscorlib - so we can't just return a new AesCryptoServiceProvider instance // note: the linker is aware of this condition return (Aes) Activator.CreateInstance (Type.GetType ("System.Security.Cryptography.AesManaged, " + Consts.AssemblySystem_Core)); -#elif MOBILE - // there was a mixup in the MOBILE profile, to be compatible with Silverlight it's - // AesManaged that should have been provided, not AesCryptoServiceProvider - return Create ("System.Security.Cryptography.AesCryptoServiceProvider, " + Consts.AssemblySystem_Core); #else - return Create ("System.Security.Cryptography.AesManaged, " + Consts.AssemblySystem_Core); + return Create ("System.Security.Cryptography.AesCryptoServiceProvider, " + Consts.AssemblySystem_Core); #endif } -- 2.11.4.GIT