New tests.
[mono.git] / mcs / class / corlib / System.Security.Cryptography / CryptoConfig_2_1.cs
index b57c22d2d86050096bd2ad805ea155672caeffb9..657c7aa4368ff0085f29607983b418fae532c55d 100644 (file)
@@ -124,7 +124,7 @@ namespace System.Security.Cryptography {
                        }
                        return num;
                }
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
                // we need SHA1 support to verify the codecs binary integrity
                public static string MapNameToOID (string name)
                {
@@ -141,6 +141,8 @@ namespace System.Security.Cryptography {
                        case "System.Security.Cryptography.SHA1":
                        case "SHA1":
                                return new SHA1Managed ();
+                       case "SHA256":
+                               return new SHA256Managed ();
                        case "System.Security.Cryptography.MD5":
                        case "MD5":
                                return new MD5CryptoServiceProvider ();