Org.BouncyCastle.OpenSsl.PemReader.ReadPkcs7 C# (CSharp) Method

ReadPkcs7() private method

private ReadPkcs7 ( string endMarker ) : Asn1.Cms.ContentInfo
endMarker string
return Asn1.Cms.ContentInfo
		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());
			}
		}