[Mono-bugs] [Bug 678140] crash when creating a PKCS#7 signature

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 9 10:40:08 EST 2011



--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2011-03-09 15:40:08 UTC ---
mono --debug 678140.exe 

Unhandled Exception: System.Security.Cryptography.CryptographicException: 
  at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature
(System.Security.Cryptography.Pkcs.CmsSigner signer) [0x00000] in
  at TestPkcs7Signature.Pkcs7Signature.Main (System.String[] args) [0x0007b] in

Looking at SignedCms.cs:151 

        public void ComputeSignature (CmsSigner signer)
            ComputeSignature ();

which calls
        public void ComputeSignature () 
            throw new CryptographicException ("");

Sadly only the decoding/signature checking code seems to be (partially)
implemented at the moment. This code has not been updated since 2005 so do not
expect the situation to change anytime soon (unless someone contribute the

Note that you can run MoMA on your applications to learn which Mono API are
missing (or incomplete). While the results are not 100% trustworthy (there's a
lot of other things that affects compatibility) it would have spotted the above
case easily.


Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list