<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.1" />

ContentIdentifier

using System; namespace Org.BouncyCastle.Asn1.Ess { public class ContentIdentifier : Asn1Encodable { private readonly Asn1OctetString m_value; public Asn1OctetString Value => m_value; public static ContentIdentifier GetInstance(object o) { if (o == null) return null; ContentIdentifier contentIdentifier = o as ContentIdentifier; if (contentIdentifier != null) return contentIdentifier; return new ContentIdentifier(Asn1OctetString.GetInstance(o)); } public static ContentIdentifier GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) { return new ContentIdentifier(Asn1OctetString.GetInstance(taggedObject, declaredExplicit)); } public static ContentIdentifier GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) { return new ContentIdentifier(Asn1OctetString.GetTagged(taggedObject, declaredExplicit)); } public ContentIdentifier(Asn1OctetString value) { if (value == null) throw new ArgumentNullException("value"); m_value = value; } public ContentIdentifier(byte[] value) : this(DerOctetString.FromContents(value)) { } public override Asn1Object ToAsn1Object() { return m_value; } } }