Merge pull request #1404 from woodsb02/mono-route
[mono.git] / mcs / class / corlib / System.Security.Cryptography / KeyedHashAlgorithm.cs
index 7b9bd53432e1ac12d8bdffb046f4f3a8fe3b60d8..abab189b2499ff7c21879d5c64764944279b25a8 100644 (file)
@@ -32,9 +32,7 @@ using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
-#if NET_2_0
 [ComVisible (true)]
-#endif
 public abstract class KeyedHashAlgorithm : HashAlgorithm {
        
        protected byte[] KeyValue;
@@ -44,11 +42,6 @@ public abstract class KeyedHashAlgorithm : HashAlgorithm {
                // create a random 64 bits key
        }
 
-       ~KeyedHashAlgorithm () 
-       {
-               Dispose (false);
-       }
-
        public virtual byte[] Key {
                get { 
                        return (byte[]) KeyValue.Clone (); 
@@ -86,7 +79,11 @@ public abstract class KeyedHashAlgorithm : HashAlgorithm {
 
        public static new KeyedHashAlgorithm Create ()
        {
+#if FULL_AOT_RUNTIME
+               return new System.Security.Cryptography.HMACSHA1 ();
+#else
                return Create ("System.Security.Cryptography.KeyedHashAlgorithm");
+#endif
        }
 
        public static new KeyedHashAlgorithm Create (string algName)