[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


https://bugzilla.novell.com/show_bug.cgi?id=678140

https://bugzilla.novell.com/show_bug.cgi?id=678140#c1


--- 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
/home/poupou/git/mono/mcs/class/System.Security/System.Security.Cryptography.Pkcs/SignedCms.cs:151 
  at TestPkcs7Signature.Pkcs7Signature.Main (System.String[] args) [0x0007b] in
/home/poupou/src/bugzilla/678140.cs:35 


Looking at SignedCms.cs:151 

        [MonoTODO]
        public void ComputeSignature (CmsSigner signer)
        {
            ComputeSignature ();
        }

which calls
        [MonoTODO]
        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
code).

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.

http://www.mono-project.com/MoMA

-- 
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