[docs] Import of Microsoft BCL Documentation.
[mono.git] / mcs / class / corlib / System.Security.Cryptography / KeyedHashAlgorithm.cs
index 72f086dd149c78c4fb6b3761448b4df6436ffb78..abab189b2499ff7c21879d5c64764944279b25a8 100644 (file)
@@ -5,11 +5,7 @@
 //     Sebastien Pouliot (sebastien@ximian.com)
 //
 // (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-using System;
 using System.Globalization;
+using System.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
 
+[ComVisible (true)]
 public abstract class KeyedHashAlgorithm : HashAlgorithm {
        
        protected byte[] KeyValue;
@@ -45,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 (); 
@@ -87,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)