Merge pull request #1404 from woodsb02/mono-route
[mono.git] / mcs / class / corlib / System.Security.Cryptography / KeyedHashAlgorithm.cs
index d8586526b872be468374a7c6dd6c41eb341cdaf3..abab189b2499ff7c21879d5c64764944279b25a8 100644 (file)
@@ -42,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 (); 
@@ -84,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)