2002-11-20 Sebastien Pouliot <spouliot@videotron.ca>
authorSebastien Pouliot <sebastien@ximian.com>
Thu, 21 Nov 2002 00:50:50 +0000 (00:50 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Thu, 21 Nov 2002 00:50:50 +0000 (00:50 -0000)
* RSAPKCS1SignatureDeformatterTest.cs: Removed patch from Nick -
as it doesn't seems to work on my system and the exception behavior
isn't logical (only MD5 not SHA1, ...).

svn path=/trunk/mcs/; revision=9123

mcs/class/corlib/Test/System.Security.Cryptography/ChangeLog
mcs/class/corlib/Test/System.Security.Cryptography/RSAPKCS1SignatureDeformatterTest.cs

index 96548fe80cafdd346eeb6070aedf7e1f020dd42d..623af7f07e1d324654ab4c202faa5eb2bf467e33 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-20  Sebastien Pouliot  <spouliot@videotron.ca>
+
+       * RSAPKCS1SignatureDeformatterTest.cs: Removed patch from Nick - 
+       as it doesn't seems to work on my system and the exception behavior 
+       isn't logical (only MD5 not SHA1, ...).
+
 2002-11-18  Nick Drochak  <ndrochak@gol.com>
 
        * RSAPKCS1SignatureDeformatterTest.cs: MS .NET throws an exception when
index ea42dc424251c94c2266d49b1adfb3a933e3ce53..29dbc66d53d10017508f69999b9ca256c2f38711 100644 (file)
@@ -285,14 +285,7 @@ public class RSAPKCS1SignatureDeformatterTest : TestCase {
 
                // bad signature
                md5Signature [0] = (byte) ~md5Signature [0];
-               try {
-                   fmt.VerifySignature (hash, md5Signature);
-                   Fail ("Should have thrown at VerifySignature(MD5, badSign)");
-               } catch (CryptographicException) {
-                       // do nothing, this is what we expect
-               } catch (Exception e) {
-                       Fail ("Unexpected exception thrown at VerifySignature(MD5, badSign). e=" + e);
-               }
+               Assert ("VerifySignature(MD5, badSign)", !fmt.VerifySignature (hash, md5Signature));
 
                // wrong signature length
                md5Signature = new byte [md5Signature.Length-1];