private Asn1.Cms.ContentInfo ReadPkcs7(
string endMarker)
{
byte[] bytes = ReadBytes(endMarker);
try
{
return Asn1.Cms.ContentInfo.GetInstance(
Asn1Object.FromByteArray(bytes));
}
catch (Exception e)
{
throw new PemException("problem parsing PKCS7 object: " + e.ToString());
}
}