title: Decrypting PKCS#7 encrypted data in C#
body: <p>I am working on a solution that needs to decrypt PKCS#7 encrypted data, preferably in C#. As far as I can see, the .NET api has support for this through the System.Security.Cryptography.Pkcs namespace. However it seems that the implementation can only work on byte arrays. So what do I do when I have a large encrypted file that does not fit into the memory?</p>
  
  <p>Am I missing something here, or is there another way to do this on a Stream level instead of using bytearrays?</p>