The EnvelopedCms.Decrypt method decrypts the contents of the decoded enveloped CMS/PKCS #7 message. The EnvelopedCms.Decrypt method searches the current user and computer My stores for the appropriate certificate and private key.
EnvelopedCms.Decode(Byte[]) should be called before EnvelopedCms.Decrypt or any other erload:System.Security.Cryptography.Pkcs.EnvelopedCms.Decrypt method.
The EnvelopedCms.Decrypt method does not search the computer My store if it is inaccessible.
The following permissions are required to access the decryption key: