[Mono-bugs] [Bug 75742][Nor] Changed - MONO PKCS7 signed by
RSAManaged cannot be verified by Microsoft components.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Oct 20 12:10:36 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75742
--- shadow/75742 2005-10-20 12:00:21.000000000 -0400
+++ shadow/75742.tmp.17469 2005-10-20 12:10:36.000000000 -0400
@@ -106,6 +106,24 @@
Ms Key; Ms Sig; Ms Verify; True
Ms Key; Mono Sig; Ms Verify; True
while all results stays True on Mono.
Interestingly the common cause seems to be the key...
+
+------- Additional Comments From sebastien at ximian.com 2005-10-20 12:10 -------
+OMG I just had a flashback. Compile your sample with GMCS and execute
+it on Windows and everything will work :-)
+
+I found out (a few years ago) that MS PKCS1MaskGenerationMethod was
+buggy - but because MS doesn't use it (FX versus CryptoAPI design
+problem) it was never detected (i.e. not tested ;-) until I found it
+(using my RSAManaged).
+
+The bug was (finally) fixed in 2.0. AFAIK you're the second one to
+find it ;-)
+
+Now your original problem is probably the endianess issue I mentionned
+before. Try reversing the signature before verifying it (or better if
+it fails, reverse, the re-verify for max interop). If it doesn't work
+then please attach a some sample code.
+Thanks
More information about the mono-bugs
mailing list