2007-08-17 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System.Security.Cryptography / AsymmetricSignatureDeformatter.cs
old mode 100755 (executable)
new mode 100644 (file)
index 4c3c258..123d39b
@@ -4,11 +4,7 @@
 // Authors:
 //   Thomas Neidhart (tome@sbox.tugraz.at)
 //
-// (C) 2004 Novell (http://www.novell.com)
-//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 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.Runtime.InteropServices;
 
 namespace System.Security.Cryptography {
        
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class AsymmetricSignatureDeformatter {
-               
+
+#if NET_2_0
+               protected AsymmetricSignatureDeformatter ()
+#else
                public AsymmetricSignatureDeformatter ()
+#endif
                {
                }
                
@@ -51,6 +54,8 @@ namespace System.Security.Cryptography {
                        if (hash == null)
                                throw new ArgumentNullException ("hash");
 
+                       SetHashAlgorithm (hash.ToString ());
+
                        return VerifySignature (hash.Hash, rgbSignature);
                }
        }