[Mono-bugs] [Bug 49785][Nor] Changed - AssemblyBuilder should extract the public key from the .snk file

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 18 Oct 2003 13:12:45 -0400 (EDT)


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 spouliot@videotron.ca.

http://bugzilla.ximian.com/show_bug.cgi?id=49785

--- shadow/49785	2003-10-18 11:30:02.000000000 -0400
+++ shadow/49785.tmp.11654	2003-10-18 13:12:45.000000000 -0400
@@ -73,6 +73,19 @@
 problem with the CryptoConvert stuff. If I compile an app with
 csc, the resulting assembly contains a public key of length 160, while
 if I compile it with mcs, the public key length is 148, and the bytes
 are not the same. I attached the input snk file.
 
 
+
+------- Additional Comments From spouliot@videotron.ca  2003-10-18 13:12 -------
+Oops, actually mono's sn has the same bug :( It's time I add some 
+unit tests to Mono.Security.
+
+I changed the code (commited) to use StrongName.PublicKey which adds 
+the missing header (12 bytes) and added Mono.Security.StrongName to 
+the corlib build (it will be needed for Evidence anyway).
+
+It works for me on Windows (both MS and mono runtime). Please close 
+the bug if it also works under Linux.
+
+