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

Org.BouncyCastle.Asn1.DerInteger

public class DerInteger : Asn1Object
namespace Org.BouncyCastle.Asn1 { public class DerInteger : Asn1Object { public const string AllowUnsafeProperty = "Org.BouncyCastle.Asn1.AllowUnsafeInteger"; public static readonly DerInteger Zero; public static readonly DerInteger One; public static readonly DerInteger Two; public static readonly DerInteger Three; public static readonly DerInteger Four; public static readonly DerInteger Five; public BigInteger PositiveValue { get; } public BigInteger Value { get; } public int IntPositiveValueExact { get; } public int IntValueExact { get; } public long LongValueExact { get; } public static DerInteger GetInstance(object obj); public static DerInteger GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit); public static DerInteger GetOptional(Asn1Encodable element); public static DerInteger GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit); public DerInteger(int value); public DerInteger(long value); public DerInteger(BigInteger value); public DerInteger(byte[] bytes); public bool HasValue(int x); public bool HasValue(long x); public bool HasValue(BigInteger x); public bool TryGetIntPositiveValueExact(out int value); public bool TryGetIntValueExact(out int value); public bool TryGetLongValueExact(out long value); } }