Read and decrypt a CMS enveloped-data object to a byte array.
public static byte[] ReadEnvDataToBytes( string inputFile, string x509File, string privateKey )
Public Shared Function ReadEnvDataToBytes ( _ inputFile As String, _ x509File As String, _ privateKey As String _ ) As Byte()
// Read in content to a byte array byte[] b = Cms.ReadEnvDataToBytes(inputFile, "", privateKey); // Convert to a .NET string (assuming UTF-8 encoded) string s = System.Text.Encoding.UTF8.GetString(b);
VB6/C equivalent: CMS_ReadEnvDataToBytes