+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
// 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];