[Mono-list] Mono unable of using it's onw generated keys ?

Sébastien Pouliot spouliot@videotron.ca
Thu, 30 Oct 2003 06:14:31 -0500


Most probably a bug.

What's the size of your Testing.snk file ?

Please fill a bug into bugzilla. I'll look into it ASAP.

Sebastien Pouliot
Security Architect, Motus Technologies, http://www.motus.com
work: spouliot@motus.com
home: spouliot@videotron.ca
blog: http://pages.infinit.net/ctech/poupou.html
 

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of George Kodinov
Sent: 30 octobre 2003 04:29
To: MONO List
Subject: [Mono-list] Mono unable of using it's onw generated keys ?


Hi,

I have the follwing problem w/ Mono (compiled from CVS) on RH9 :

I have a program that uses a key :
[assembly: AssemblyKeyFile(@"Testing.snk")]

When I generate a key for it w/ the sn.exe  (mono sn.exe -k Testing.snk) 
from the mono distribution and try compiling I get :
Unhandled Exception: System.IndexOutOfRangeException: Array index is out 
of range
in <0x001df> 
Mono.Security.Cryptography.CryptoConvert:ToCapiPublicKeyBlob 
(System.Security.Cryptography.RSA)
in <0x0006b> Mono.Security.Cryptography.CryptoConvert:ToCapiKeyBlob 
(System.Security.Cryptography.RSA,bool)
in <0x0002d> Mono.Security.StrongName:get_PublicKey ()
in <0x002ba> System.Reflection.Emit.AssemblyBuilder:SetCustomAttribute 
(System.Reflection.Emit.CustomAttributeBuilder)
in <0x00d09> Mono.CSharp.Attribute:ApplyAttributes 
(Mono.CSharp.EmitContext,object,object,Mono.CSharp.Attributes)
in <0x001f9> Mono.CSharp.RootContext:EmitCode ()
in <0x0082a> Mono.CSharp.Driver:MainDriver (string[])
in <0x0001b> Mono.CSharp.Driver:Main (string[])

Is this a bug or am I doing something wrong ?

Best Regards,
George Kodinov
Developer, OpenLink Software (http://www.openlinksw.com)

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list