Files
SuperVPN/output/Libraries/BouncyCastle.Crypto/Org/BouncyCastle/Asn1/Cms/ContentInfoParser.cs
2025-10-09 09:57:24 +09:00

26 lines
536 B
C#

namespace Org.BouncyCastle.Asn1.Cms;
public class ContentInfoParser
{
private DerObjectIdentifier contentType;
private Asn1TaggedObjectParser content;
public DerObjectIdentifier ContentType => contentType;
public ContentInfoParser(Asn1SequenceParser seq)
{
contentType = (DerObjectIdentifier)seq.ReadObject();
content = (Asn1TaggedObjectParser)seq.ReadObject();
}
public IAsn1Convertible GetContent(int tag)
{
if (content == null)
{
return null;
}
return content.GetObjectParser(tag, isExplicit: true);
}
}