The EnvelopedCms.Decode(Byte[]) method decodes the specified enveloped CMS/PKCS #7 message and resets all member variables in the System.Security.Cryptography.Pkcs.EnvelopedCms object.
This method should be called before EnvelopedCms.Decrypt or any other EnvelopedCms.Decrypt method.