public static byte[] EncodeOID (string str)
{
-#if NET_2_0
if (str == null)
throw new ArgumentNullException ("str");
-#endif
char[] delim = { '.' };
string[] parts = str.Split (delim);
// according to X.208 n is always at least 2
}
return num;
}
-#if NET_2_1
+#if MOONLIGHT
// we need SHA1 support to verify the codecs binary integrity
public static string MapNameToOID (string name)
{
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 ();