How can I check signature of a SignedCms envelope?
问题 I don't really understand how to work with PKCS#7 messages. I sign some byte array with a X509Certificate2 I have and get also a byte array. byte[] data = new byte[5] { 110, 111, 112, 113, 114 }, signedData; X509Certificate2 cert = new X509Certificate2(certPath, password); ContentInfo content = new ContentInfo(data); SignedCms envelope = new SignedCms(content); CmsSigner cmsSigner = new CmsSigner(cert); envelope.ComputeSignature(cmsSigner); signedData = envelope.Encode(); The signedData is