Author: spouliot
Date: 2006-07-01 10:54:26 -0400 (Sat, 01 Jul 2006)
New Revision: 62173
Modified:
branches/mono-1-1-13/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs
branches/mono-1-1-13/mcs/class/corlib/System.Security.Cryptography/ChangeLog
Log:
2006-07-01 Sebastien Pouliot <[EMAIL PROTECTED]>
* AsymmetricSignatureDeformatter.cs: Set the hash algorithm name from
the hash instance. Fix for bug #78744 by Diego Mesa Tabares. Under 2.0
the ctor is protected.
Modified:
branches/mono-1-1-13/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs
===================================================================
---
branches/mono-1-1-13/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs
2006-07-01 14:52:03 UTC (rev 62172)
+++
branches/mono-1-1-13/mcs/class/corlib/System.Security.Cryptography/AsymmetricSignatureDeformatter.cs
2006-07-01 14:54:26 UTC (rev 62173)
@@ -4,7 +4,7 @@
// Authors:
// Thomas Neidhart ([EMAIL PROTECTED])
//
-// Copyright (C) 2004-2005 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
@@ -34,8 +34,12 @@
[ComVisible (true)]
#endif
public abstract class AsymmetricSignatureDeformatter {
-
+
+#if NET_2_0
+ protected AsymmetricSignatureDeformatter ()
+#else
public AsymmetricSignatureDeformatter ()
+#endif
{
}
@@ -50,6 +54,8 @@
if (hash == null)
throw new ArgumentNullException ("hash");
+ SetHashAlgorithm (hash.ToString ());
+
return VerifySignature (hash.Hash, rgbSignature);
}
}
Modified:
branches/mono-1-1-13/mcs/class/corlib/System.Security.Cryptography/ChangeLog
===================================================================
---
branches/mono-1-1-13/mcs/class/corlib/System.Security.Cryptography/ChangeLog
2006-07-01 14:52:03 UTC (rev 62172)
+++
branches/mono-1-1-13/mcs/class/corlib/System.Security.Cryptography/ChangeLog
2006-07-01 14:54:26 UTC (rev 62173)
@@ -1,3 +1,9 @@
+2006-07-01 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * AsymmetricSignatureDeformatter.cs: Set the hash algorithm name from
+ the hash instance. Fix for bug #78744 by Diego Mesa Tabares. Under 2.0
+ the ctor is protected.
+
2006-06-15 Sebastien Pouliot <[EMAIL PROTECTED]>
* HashAlgorithm.cs: Changed the order of BlockCopy + HashCore to
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches