// 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;
// create a random 64 bits key
}
- ~KeyedHashAlgorithm ()
- {
- Dispose (false);
- }
-
public virtual byte[] Key {
get {
return (byte[]) KeyValue.Clone ();
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)