Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/BerSet.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

121 lines
3.0 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
{
// Token: 0x02001E75 RID: 7797
[Token(Token = "0x2001E75")]
public class BerSet : DerSet
{
// Token: 0x0600C36B RID: 50027 RVA: 0x002C2A44 File Offset: 0x002C0C44
[Token(Token = "0x600C36B")]
[Address(RVA = "0x2296D10", Offset = "0x2295D10", VA = "0x182296D10")]
public new static BerSet FromVector(Asn1EncodableVector v)
{
IList v2 = v.v;
int num;
BerSet berSet = new BerSet(v, num != 0);
num = 0;
return berSet;
}
// Token: 0x0600C36C RID: 50028 RVA: 0x002C2A6C File Offset: 0x002C0C6C
[Token(Token = "0x600C36C")]
[Address(RVA = "0x2296C20", Offset = "0x2295C20", VA = "0x182296C20")]
internal new static BerSet FromVector(Asn1EncodableVector v, bool needsSorting)
{
IList v2 = v.v;
return new BerSet(v, needsSorting);
}
// Token: 0x0600C36D RID: 50029 RVA: 0x002C2A90 File Offset: 0x002C0C90
[Token(Token = "0x600C36D")]
[Address(RVA = "0x2296F30", Offset = "0x2295F30", VA = "0x182296F30")]
public BerSet()
{
}
// Token: 0x0600C36E RID: 50030 RVA: 0x002C2AA4 File Offset: 0x002C0CA4
[Token(Token = "0x600C36E")]
[Address(RVA = "0x2296EC0", Offset = "0x2295EC0", VA = "0x182296EC0")]
public BerSet(Asn1Encodable obj)
: base(obj)
{
}
// Token: 0x0600C36F RID: 50031 RVA: 0x002C2AB8 File Offset: 0x002C0CB8
[Token(Token = "0x600C36F")]
[Address(RVA = "0x2296F90", Offset = "0x2295F90", VA = "0x182296F90")]
public BerSet(Asn1EncodableVector v)
{
int num = 0;
base..ctor(v, num != 0);
}
// Token: 0x0600C370 RID: 50032 RVA: 0x002C2AD0 File Offset: 0x002C0CD0
[Token(Token = "0x600C370")]
[Address(RVA = "0x2297000", Offset = "0x2296000", VA = "0x182297000")]
internal BerSet(Asn1EncodableVector v, bool needsSorting)
: base(v, needsSorting)
{
}
// Token: 0x0600C371 RID: 50033 RVA: 0x002C2AE8 File Offset: 0x002C0CE8
[Token(Token = "0x600C371")]
[Address(RVA = "0x2296940", Offset = "0x2295940", VA = "0x182296940", Slot = "6")]
internal override void Encode(DerOutputStream derOut)
{
int num;
do
{
num = 0;
if (derOut == 0 || (derOut == 0 && derOut == 0))
{
goto IL_4D;
}
IEnumerator enumerator = this.GetEnumerator();
if (enumerator != 0)
{
if (num < enumerator)
{
num += num;
num++;
}
if (num == 0)
{
num += num;
num++;
num += 19;
}
if (num == 0)
{
goto IL_55;
}
derOut.WriteObject(num);
}
}
while (num != 0);
return;
IL_4D:
base.Encode(derOut);
return;
IL_55:
throw new NullReferenceException();
}
// Token: 0x0600C372 RID: 50034 RVA: 0x002C2B50 File Offset: 0x002C0D50
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600C372")]
[Address(RVA = "0x2296E30", Offset = "0x2295E30", VA = "0x182296E30")]
static BerSet()
{
BerSet berSet = new BerSet();
}
// Token: 0x04007B50 RID: 31568
[Token(Token = "0x4007B50")]
public new static readonly BerSet Empty;
}
}