init commit

This commit is contained in:
2025-10-09 09:57:24 +09:00
commit 4d551bd74f
6636 changed files with 1218703 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
using System;
using System.IO;
using Org.BouncyCastle.Asn1;
using Org.BouncyCastle.Asn1.Cms;
using Org.BouncyCastle.Utilities;
namespace Org.BouncyCastle.Cms;
public class CmsContentInfoParser
{
protected ContentInfoParser contentInfo;
protected Stream data;
protected CmsContentInfoParser(Stream data)
{
if (data == null)
{
throw new ArgumentNullException("data");
}
this.data = data;
try
{
Asn1StreamParser asn1StreamParser = new Asn1StreamParser(data);
contentInfo = new ContentInfoParser((Asn1SequenceParser)asn1StreamParser.ReadObject());
}
catch (IOException e)
{
throw new CmsException("IOException reading content.", e);
}
catch (InvalidCastException e2)
{
throw new CmsException("Unexpected object reading content.", e2);
}
}
public void Close()
{
Platform.Dispose(data);
}
}