Original URL: | https://blogs.msdn.microsoft.com/alejacma/2010/12/20/how-to-call-cryptmsg-api-in-streaming-mode-largecms-full-sample/ |
Post name: | How to call CryptMsg API in streaming mode – LargeCMS full sample |
Original author: | Alejandro Campos Magencio |
Posting date: | 2010-12-20T03:47:00+00:00 |
Hi all
Some time ago I posted a sample which shows how to sign large CMS data by calling CryptMsg API directly (How to call CryptMsg API in streaming mode (C#)) and that way overcome the current limitations of SignedCms in .NET ("ASN1 value too large" error when calling SignedCms.ComputeSignature).
I continued working on the sample and extended it quite a lot.Current version implementsSignedLargeCMS and EnvelopedLargeCMS, my own version ofSignedCms and EnvelopedCMS to work with large data.
I already shared thep/invoke declarationsI used (P/Invoking CryptoAPI in .NET. Part 2 (C#)), and you can findthe full version of the sample at Codeplex.
I hope this helps.
Regards,
Alex (Alejandro Campos Magencio)
Comments: