m
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FF8 RID: 8184
|
||||
[Token(Token = "0x2001FF8")]
|
||||
public class Attribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CCED RID: 52461 RVA: 0x002E97D8 File Offset: 0x002E79D8
|
||||
[Token(Token = "0x600CCED")]
|
||||
[Address(RVA = "0x2FDB0D0", Offset = "0x2FDA0D0", VA = "0x182FDB0D0")]
|
||||
public static Attribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCED)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2C:
|
||||
stloc:string(var_8_32, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_4A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_32)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCEE RID: 52462 RVA: 0x002E9830 File Offset: 0x002E7A30
|
||||
[Token(Token = "0x600CCEE")]
|
||||
[Address(RVA = "0x2FDB4E0", Offset = "0x2FDA4E0", VA = "0x182FDB4E0")]
|
||||
public Attribute(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.attrType = parser;
|
||||
parser2 = seq.Parser;
|
||||
if (parser2 == 0 || parser2 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.attrValues = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCEF RID: 52463 RVA: 0x002E987C File Offset: 0x002E7A7C
|
||||
[Token(Token = "0x600CCEF")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public Attribute(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x17002034 RID: 8244
|
||||
// (get) Token: 0x0600CCF0 RID: 52464 RVA: 0x002E98A0 File Offset: 0x002E7AA0
|
||||
[Token(Token = "0x17002034")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600CCF0")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002035 RID: 8245
|
||||
// (get) Token: 0x0600CCF1 RID: 52465 RVA: 0x002E98B4 File Offset: 0x002E7AB4
|
||||
[Token(Token = "0x17002035")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600CCF1")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF2 RID: 52466 RVA: 0x002E98C8 File Offset: 0x002E7AC8
|
||||
[Token(Token = "0x600CCF2")]
|
||||
[Address(RVA = "0x2FDB3D0", Offset = "0x2FDA3D0", VA = "0x182FDB3D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.attrType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Set asn1Set = this.attrValues;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Set;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008207 RID: 33287
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008207")]
|
||||
private DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x04008208 RID: 33288
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008208")]
|
||||
private Asn1Set attrValues;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,375 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FF9 RID: 8185
|
||||
[Token(Token = "0x2001FF9")]
|
||||
public class AttributeTable
|
||||
{
|
||||
// Token: 0x0600CCF3 RID: 52467 RVA: 0x002E9910 File Offset: 0x002E7B10
|
||||
[Token(Token = "0x600CCF3")]
|
||||
[Address(RVA = "0x2FDAB50", Offset = "0x2FD9B50", VA = "0x182FDAB50")]
|
||||
[Obsolete]
|
||||
public AttributeTable(Hashtable attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF4 RID: 52468 RVA: 0x002E9934 File Offset: 0x002E7B34
|
||||
[Token(Token = "0x600CCF4")]
|
||||
[Address(RVA = "0x2FDAAE0", Offset = "0x2FD9AE0", VA = "0x182FDAAE0")]
|
||||
public AttributeTable(IDictionary attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF5 RID: 52469 RVA: 0x002E9958 File Offset: 0x002E7B58
|
||||
[Token(Token = "0x600CCF5")]
|
||||
[Address(RVA = "0x2FDA8C0", Offset = "0x2FD98C0", VA = "0x182FDA8C0")]
|
||||
public AttributeTable(Asn1EncodableVector v)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IDictionary dictionary = Platform.CreateHashtable(v.Count);
|
||||
this.attributes = dictionary;
|
||||
IEnumerator enumerator = v.GetEnumerator();
|
||||
Attribute instance;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_5F;
|
||||
}
|
||||
instance = Attribute.GetInstance(num);
|
||||
this.AddAttribute(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_5F:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF6 RID: 52470 RVA: 0x002E99CC File Offset: 0x002E7BCC
|
||||
[Token(Token = "0x600CCF6")]
|
||||
[Address(RVA = "0x2FDABC0", Offset = "0x2FD9BC0", VA = "0x182FDABC0")]
|
||||
public AttributeTable(Asn1Set s)
|
||||
{
|
||||
IDictionary dictionary;
|
||||
this.attributes = dictionary;
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num != asn1Encodable)
|
||||
{
|
||||
IEnumerator enumerator = s.GetEnumerator();
|
||||
Attribute attribute;
|
||||
this.AddAttribute(attribute);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF7 RID: 52471 RVA: 0x002E9A08 File Offset: 0x002E7C08
|
||||
[Token(Token = "0x600CCF7")]
|
||||
[Address(RVA = "0x2FDA790", Offset = "0x2FD9790", VA = "0x182FDA790")]
|
||||
public AttributeTable(Attributes attrs)
|
||||
{
|
||||
Asn1Set instance = Asn1Set.GetInstance(attrs.ToAsn1Object());
|
||||
base..ctor();
|
||||
IDictionary dictionary;
|
||||
this.attributes = dictionary;
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num != asn1Encodable)
|
||||
{
|
||||
IEnumerator enumerator = instance.GetEnumerator();
|
||||
Attribute attribute;
|
||||
this.AddAttribute(attribute);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCF8 RID: 52472 RVA: 0x002E9A50 File Offset: 0x002E7C50
|
||||
[Token(Token = "0x600CCF8")]
|
||||
[Address(RVA = "0x2FD99C0", Offset = "0x2FD89C0", VA = "0x182FD99C0")]
|
||||
private void AddAttribute(Attribute a)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
num = 0;
|
||||
}
|
||||
while (num == 0 && num == 0);
|
||||
IList list = Platform.CreateArrayList();
|
||||
IDictionary dictionary2 = this.attributes;
|
||||
}
|
||||
|
||||
// Token: 0x17002036 RID: 8246
|
||||
[Token(Token = "0x17002036")]
|
||||
public Attribute this[DerObjectIdentifier oid]
|
||||
{
|
||||
[Token(Token = "0x600CCF9")]
|
||||
[Address(RVA = "0x2FDAED0", Offset = "0x2FD9ED0", VA = "0x182FDAED0")]
|
||||
get
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
if (oid == 0)
|
||||
{
|
||||
}
|
||||
if (oid != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (num < dictionary)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0 || num != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCFA RID: 52474 RVA: 0x002E9AE0 File Offset: 0x002E7CE0
|
||||
[Token(Token = "0x600CCFA")]
|
||||
[Address(RVA = "0x2FDA0F0", Offset = "0x2FD90F0", VA = "0x182FDA0F0")]
|
||||
[Obsolete]
|
||||
public Attribute Get(DerObjectIdentifier oid)
|
||||
{
|
||||
return this[oid];
|
||||
}
|
||||
|
||||
// Token: 0x0600CCFB RID: 52475 RVA: 0x002E9AF4 File Offset: 0x002E7CF4
|
||||
[Token(Token = "0x600CCFB")]
|
||||
[Address(RVA = "0x2FD9C60", Offset = "0x2FD8C60", VA = "0x182FD9C60")]
|
||||
public Asn1EncodableVector GetAll(DerObjectIdentifier oid)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
Asn1Encodable[] array2;
|
||||
do
|
||||
{
|
||||
int num = 0;
|
||||
IDictionary dictionary = this.attributes;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
if (asn1EncodableVector == 0 || asn1EncodableVector == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Encodable[] array;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
if (num < asn1EncodableVector)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
}
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
goto IL_A7;
|
||||
}
|
||||
array = new Asn1Encodable[1];
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (array != 0)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
array2 = new Asn1Encodable[1];
|
||||
}
|
||||
while (asn1EncodableVector == 0 || asn1EncodableVector == 0);
|
||||
array2[0] = asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array2);
|
||||
return asn1EncodableVector;
|
||||
IL_A7:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17002037 RID: 8247
|
||||
// (get) Token: 0x0600CCFC RID: 52476 RVA: 0x002E9BB0 File Offset: 0x002E7DB0
|
||||
[Token(Token = "0x17002037")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600CCFC")]
|
||||
[Address(RVA = "0x2FDACC0", Offset = "0x2FD9CC0", VA = "0x182FDACC0")]
|
||||
get
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IDictionary dictionary = this.attributes;
|
||||
num += num;
|
||||
num++;
|
||||
if (num == 0)
|
||||
{
|
||||
num++;
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
num += num;
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCFD RID: 52477 RVA: 0x002E9C00 File Offset: 0x002E7E00
|
||||
[Token(Token = "0x600CCFD")]
|
||||
[Address(RVA = "0x2FDA6D0", Offset = "0x2FD96D0", VA = "0x182FDA6D0")]
|
||||
public IDictionary ToDictionary()
|
||||
{
|
||||
return Platform.CreateHashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCFE RID: 52478 RVA: 0x002E9C18 File Offset: 0x002E7E18
|
||||
[Token(Token = "0x600CCFE")]
|
||||
[Address(RVA = "0x2FDA730", Offset = "0x2FD9730", VA = "0x182FDA730")]
|
||||
[Obsolete]
|
||||
public Hashtable ToHashtable()
|
||||
{
|
||||
return new Hashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600CCFF RID: 52479 RVA: 0x002E9C30 File Offset: 0x002E7E30
|
||||
[Token(Token = "0x600CCFF")]
|
||||
[Address(RVA = "0x2FDA230", Offset = "0x2FD9230", VA = "0x182FDA230")]
|
||||
public Asn1EncodableVector ToAsn1EncodableVector()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
Attribute instance;
|
||||
for (;;)
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
Attribute instance2;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
instance2 = Attribute.GetInstance(asn1EncodableVector);
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
instance = Attribute.GetInstance(asn1EncodableVector);
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CD00 RID: 52480 RVA: 0x002E9CF4 File Offset: 0x002E7EF4
|
||||
[Token(Token = "0x600CD00")]
|
||||
[Address(RVA = "0x2FDA620", Offset = "0x2FD9620", VA = "0x182FDA620")]
|
||||
public Attributes ToAttributes()
|
||||
{
|
||||
BerSet berSet = new BerSet(this.ToAsn1EncodableVector());
|
||||
Attributes attributes;
|
||||
attributes.attributes = berSet;
|
||||
return attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD01 RID: 52481 RVA: 0x002E9D18 File Offset: 0x002E7F18
|
||||
[Token(Token = "0x600CD01")]
|
||||
[Address(RVA = "0x2FD9B50", Offset = "0x2FD8B50", VA = "0x182FD9B50")]
|
||||
public AttributeTable Add(DerObjectIdentifier attrType, Asn1Encodable attrValue)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(this.attributes);
|
||||
AttributeTable attributeTable;
|
||||
attributeTable.attributes = dictionary;
|
||||
DerSet derSet = new DerSet(attrValue);
|
||||
Attribute attribute;
|
||||
attribute.attrType = attrType;
|
||||
attribute.attrValues = derSet;
|
||||
attributeTable.AddAttribute(attribute);
|
||||
return attributeTable;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD02 RID: 52482 RVA: 0x002E9D58 File Offset: 0x002E7F58
|
||||
[Token(Token = "0x600CD02")]
|
||||
[Address(RVA = "0x2FDA100", Offset = "0x2FD9100", VA = "0x182FDA100")]
|
||||
public AttributeTable Remove(DerObjectIdentifier attrType)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(this.attributes);
|
||||
AttributeTable attributeTable;
|
||||
attributeTable.attributes = dictionary;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
return attributeTable;
|
||||
}
|
||||
|
||||
// Token: 0x04008209 RID: 33289
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008209")]
|
||||
private readonly IDictionary attributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FFA RID: 8186
|
||||
[Token(Token = "0x2001FFA")]
|
||||
public class Attributes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD03 RID: 52483 RVA: 0x002E9D8C File Offset: 0x002E7F8C
|
||||
[Token(Token = "0x600CD03")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private Attributes(Asn1Set attributes)
|
||||
{
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD04 RID: 52484 RVA: 0x002E9DA8 File Offset: 0x002E7FA8
|
||||
[Token(Token = "0x600CD04")]
|
||||
[Address(RVA = "0x2FDB830", Offset = "0x2FDA830", VA = "0x182FDB830")]
|
||||
public Attributes(Asn1EncodableVector v)
|
||||
{
|
||||
BerSet berSet = new BerSet(v);
|
||||
this.attributes = berSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD05 RID: 52485 RVA: 0x002E9DCC File Offset: 0x002E7FCC
|
||||
[Token(Token = "0x600CD05")]
|
||||
[Address(RVA = "0x2FDB730", Offset = "0x2FDA730", VA = "0x182FDB730")]
|
||||
public static Attributes GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Attributes attributes;
|
||||
if (obj == 0)
|
||||
{
|
||||
Asn1Set instance = Asn1Set.GetInstance(obj);
|
||||
attributes.attributes = instance;
|
||||
return attributes;
|
||||
}
|
||||
if (attributes != 0)
|
||||
{
|
||||
return attributes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD06 RID: 52486 RVA: 0x002E9E00 File Offset: 0x002E8000
|
||||
[Token(Token = "0x600CD06")]
|
||||
[Address(RVA = "0x2FDB620", Offset = "0x2FDA620", VA = "0x182FDB620", Slot = "6")]
|
||||
public virtual Attribute[] GetAttributes()
|
||||
{
|
||||
Asn1Set asn1Set = this.attributes;
|
||||
Asn1Encodable asn1Encodable;
|
||||
Attribute[] array = new Attribute[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
IEnumerator enumerator = this.attributes.GetEnumerator();
|
||||
Attribute attribute;
|
||||
if (attribute != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = attribute;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD07 RID: 52487 RVA: 0x002E9E4C File Offset: 0x002E804C
|
||||
[Token(Token = "0x600CD07")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD07)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attributes::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Set(var_0_06, ldfld:Asn1Set(Attributes::attributes, ldloc:Attributes(this)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0400820A RID: 33290
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400820A")]
|
||||
private readonly Asn1Set attributes;
|
||||
}
|
||||
}
|
||||
+325
@@ -0,0 +1,325 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FFB RID: 8187
|
||||
[Token(Token = "0x2001FFB")]
|
||||
public class AuthEnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD08 RID: 52488 RVA: 0x002E9E60 File Offset: 0x002E8060
|
||||
[Token(Token = "0x600CD08")]
|
||||
[Address(RVA = "0x2FDC630", Offset = "0x2FDB630", VA = "0x182FDC630")]
|
||||
public AuthEnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo authEncryptedContentInfo, Asn1Set authAttrs, Asn1OctetString mac, Asn1Set unauthAttrs)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.authAttrs = 0;
|
||||
this.mac = 0;
|
||||
this.version = derInteger;
|
||||
this.recipientInfos = recipientInfos;
|
||||
this.authEncryptedContentInfo = authEncryptedContentInfo;
|
||||
this.unauthAttrs = 0;
|
||||
this.originatorInfo = originatorInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD09 RID: 52489 RVA: 0x002E9EB0 File Offset: 0x002E80B0
|
||||
[Token(Token = "0x600CD09")]
|
||||
[Address(RVA = "0x2FDC6E0", Offset = "0x2FDB6E0", VA = "0x182FDC6E0")]
|
||||
private AuthEnvelopedData(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
if (parser2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
OriginatorInfo instance = OriginatorInfo.GetInstance(asn1Sequence);
|
||||
this.originatorInfo = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
this.recipientInfos = asn1Set;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
EncryptedContentInfo encryptedContentInfo;
|
||||
this.authEncryptedContentInfo = encryptedContentInfo;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 != 0 && parser5 != 0)
|
||||
{
|
||||
if (parser5 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Set asn1Set2;
|
||||
this.authAttrs = asn1Set2;
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
}
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.mac = asn1OctetString;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
if (parser7 == 0 || parser7 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1Set asn1Set3;
|
||||
this.unauthAttrs = asn1Set3;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD0A RID: 52490 RVA: 0x002E9F88 File Offset: 0x002E8188
|
||||
[Token(Token = "0x600CD0A")]
|
||||
[Address(RVA = "0x2FDBFC0", Offset = "0x2FDAFC0", VA = "0x182FDBFC0")]
|
||||
public static AuthEnvelopedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthEnvelopedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD0B RID: 52491 RVA: 0x002E9FA4 File Offset: 0x002E81A4
|
||||
[Token(Token = "0x600CD0B")]
|
||||
[Address(RVA = "0x2FDBFE0", Offset = "0x2FDAFE0", VA = "0x182FDBFE0")]
|
||||
public static AuthEnvelopedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD0B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid AuthEnvelopedData: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002038 RID: 8248
|
||||
// (get) Token: 0x0600CD0C RID: 52492 RVA: 0x002E9FF4 File Offset: 0x002E81F4
|
||||
[Token(Token = "0x17002038")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD0C")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002039 RID: 8249
|
||||
// (get) Token: 0x0600CD0D RID: 52493 RVA: 0x002EA008 File Offset: 0x002E8208
|
||||
[Token(Token = "0x17002039")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600CD0D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203A RID: 8250
|
||||
// (get) Token: 0x0600CD0E RID: 52494 RVA: 0x002EA01C File Offset: 0x002E821C
|
||||
[Token(Token = "0x1700203A")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600CD0E")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203B RID: 8251
|
||||
// (get) Token: 0x0600CD0F RID: 52495 RVA: 0x002EA030 File Offset: 0x002E8230
|
||||
[Token(Token = "0x1700203B")]
|
||||
public EncryptedContentInfo AuthEncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD0F")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.authEncryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203C RID: 8252
|
||||
// (get) Token: 0x0600CD10 RID: 52496 RVA: 0x002EA044 File Offset: 0x002E8244
|
||||
[Token(Token = "0x1700203C")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD10")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203D RID: 8253
|
||||
// (get) Token: 0x0600CD11 RID: 52497 RVA: 0x002EA058 File Offset: 0x002E8258
|
||||
[Token(Token = "0x1700203D")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600CD11")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700203E RID: 8254
|
||||
// (get) Token: 0x0600CD12 RID: 52498 RVA: 0x002EA06C File Offset: 0x002E826C
|
||||
[Token(Token = "0x1700203E")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD12")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD13 RID: 52499 RVA: 0x002EA080 File Offset: 0x002E8280
|
||||
[Token(Token = "0x600CD13")]
|
||||
[Address(RVA = "0x2FDC1D0", Offset = "0x2FDB1D0", VA = "0x182FDC1D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.originatorInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
OriginatorInfo originatorInfo = this.originatorInfo;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, originatorInfo);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
Asn1Set asn1Set = this.recipientInfos;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = asn1Set;
|
||||
EncryptedContentInfo encryptedContentInfo = this.authEncryptedContentInfo;
|
||||
if (encryptedContentInfo != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = encryptedContentInfo;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.authAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.authAttrs;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.mac;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array5);
|
||||
if (this.unauthAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set3 = this.unauthAttrs;
|
||||
int num4;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num4 != 0, 2, asn1Set3);
|
||||
num4 = 0;
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array6[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array6);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400820B RID: 33291
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400820B")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400820C RID: 33292
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400820C")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400820D RID: 33293
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400820D")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x0400820E RID: 33294
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400820E")]
|
||||
private EncryptedContentInfo authEncryptedContentInfo;
|
||||
|
||||
// Token: 0x0400820F RID: 33295
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400820F")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04008210 RID: 33296
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008210")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04008211 RID: 33297
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008211")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FFC RID: 8188
|
||||
[Token(Token = "0x2001FFC")]
|
||||
public class AuthEnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600CD14 RID: 52500 RVA: 0x002EA1E4 File Offset: 0x002E83E4
|
||||
[Token(Token = "0x600CD14")]
|
||||
[Address(RVA = "0x2FDBEF0", Offset = "0x2FDAEF0", VA = "0x182FDBEF0")]
|
||||
public AuthEnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x1700203F RID: 8255
|
||||
// (get) Token: 0x0600CD15 RID: 52501 RVA: 0x002EA214 File Offset: 0x002E8414
|
||||
[Token(Token = "0x1700203F")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD15")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD16 RID: 52502 RVA: 0x002EA228 File Offset: 0x002E8428
|
||||
[Token(Token = "0x600CD16")]
|
||||
[Address(RVA = "0x2FDBB30", Offset = "0x2FDAB30", VA = "0x182FDBB30")]
|
||||
public OriginatorInfo GetOriginatorInfo()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
IAsn1Convertible asn1Convertible = this.nextObject;
|
||||
this.originatorInfoCalled = true;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
if (asn1Convertible != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible asn1Convertible3 = this.nextObject;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
this.nextObject = (ulong)0L;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
OriginatorInfo originatorInfo;
|
||||
return originatorInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD17 RID: 52503 RVA: 0x002EA294 File Offset: 0x002E8494
|
||||
[Token(Token = "0x600CD17")]
|
||||
[Address(RVA = "0x2FDBD30", Offset = "0x2FDAD30", VA = "0x182FDBD30")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD17)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedDataParser::GetRecipientInfos()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_2:
|
||||
brtrue(IL_00, ceq:bool(ldloc:int32(var_3_23), ldc.i4:int32(0)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD18 RID: 52504 RVA: 0x002EA2D4 File Offset: 0x002E84D4
|
||||
[Token(Token = "0x600CD18")]
|
||||
[Address(RVA = "0x2FDB9E0", Offset = "0x2FDA9E0", VA = "0x182FDB9E0")]
|
||||
public EncryptedContentInfoParser GetAuthEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD19 RID: 52505 RVA: 0x002EA300 File Offset: 0x002E8500
|
||||
[Token(Token = "0x600CD19")]
|
||||
[Address(RVA = "0x2FDB8A0", Offset = "0x2FDA8A0", VA = "0x182FDB8A0")]
|
||||
public Asn1SetParser GetAuthAttrs()
|
||||
{
|
||||
IAsn1Convertible asn1Convertible;
|
||||
do
|
||||
{
|
||||
asn1Convertible = this.nextObject;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
int num = 0;
|
||||
this.nextObject = num;
|
||||
}
|
||||
while (asn1Convertible == 0 || asn1Convertible == 0 || (asn1Convertible != 0 && asn1Convertible == 0));
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CD1A RID: 52506 RVA: 0x002EA350 File Offset: 0x002E8550
|
||||
[Token(Token = "0x600CD1A")]
|
||||
[Address(RVA = "0x2FDBAB0", Offset = "0x2FDAAB0", VA = "0x182FDBAB0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD1B RID: 52507 RVA: 0x002EA380 File Offset: 0x002E8580
|
||||
[Token(Token = "0x600CD1B")]
|
||||
[Address(RVA = "0x2FDBDD0", Offset = "0x2FDADD0", VA = "0x182FDBDD0")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD1B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedDataParser::GetUnauthAttrs()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:int32(var_1_11, ldc.i4:int32(0))
|
||||
stfld:IAsn1Convertible(AuthEnvelopedDataParser::nextObject, ldloc:AuthEnvelopedDataParser(this), ldloc:int32[exp:IAsn1Convertible](var_1_11))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x04008212 RID: 33298
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008212")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04008213 RID: 33299
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008213")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008214 RID: 33300
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008214")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04008215 RID: 33301
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008215")]
|
||||
private bool originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
+460
@@ -0,0 +1,460 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FFD RID: 8189
|
||||
[Token(Token = "0x2001FFD")]
|
||||
public class AuthenticatedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD1C RID: 52508 RVA: 0x002EA3A8 File Offset: 0x002E85A8
|
||||
[Token(Token = "0x600CD1C")]
|
||||
[Address(RVA = "0x2FDE310", Offset = "0x2FDD310", VA = "0x182FDE310")]
|
||||
public AuthenticatedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, AlgorithmIdentifier macAlgorithm, AlgorithmIdentifier digestAlgorithm, ContentInfo encapsulatedContent, Asn1Set authAttrs, Asn1OctetString mac, Asn1Set unauthAttrs)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(AuthenticatedData.CalculateVersion(originatorInfo));
|
||||
this.encapsulatedContentInfo = 0;
|
||||
this.mac = 0;
|
||||
this.version = derInteger;
|
||||
this.authAttrs = 0;
|
||||
this.unauthAttrs = 0;
|
||||
this.originatorInfo = originatorInfo;
|
||||
this.macAlgorithm = macAlgorithm;
|
||||
this.digestAlgorithm = 0;
|
||||
this.recipientInfos = recipientInfos;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD1D RID: 52509 RVA: 0x002EA414 File Offset: 0x002E8614
|
||||
[Token(Token = "0x600CD1D")]
|
||||
[Address(RVA = "0x2FDDED0", Offset = "0x2FDCED0", VA = "0x182FDDED0")]
|
||||
private AuthenticatedData(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
if (parser2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
OriginatorInfo instance = OriginatorInfo.GetInstance(asn1Sequence);
|
||||
this.originatorInfo = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
this.recipientInfos = asn1Set;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.macAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 != 0 && parser5 != 0)
|
||||
{
|
||||
if (parser5 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
AlgorithmIdentifier algorithmIdentifier2;
|
||||
this.digestAlgorithm = algorithmIdentifier2;
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
}
|
||||
ContentInfo contentInfo;
|
||||
this.encapsulatedContentInfo = contentInfo;
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
if (parser7 != 0 && parser7 != 0)
|
||||
{
|
||||
if (parser7 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Set asn1Set2;
|
||||
this.authAttrs = asn1Set2;
|
||||
Asn1SequenceParser parser8 = seq.Parser;
|
||||
}
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.mac = asn1OctetString;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser9 = seq.Parser;
|
||||
if (parser9 == 0 || parser9 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1Set asn1Set3;
|
||||
this.unauthAttrs = asn1Set3;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD1E RID: 52510 RVA: 0x002EA524 File Offset: 0x002E8724
|
||||
[Token(Token = "0x600CD1E")]
|
||||
[Address(RVA = "0x2FDD950", Offset = "0x2FDC950", VA = "0x182FDD950")]
|
||||
public static AuthenticatedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthenticatedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD1F RID: 52511 RVA: 0x002EA540 File Offset: 0x002E8740
|
||||
[Token(Token = "0x600CD1F")]
|
||||
[Address(RVA = "0x2FDD760", Offset = "0x2FDC760", VA = "0x182FDD760")]
|
||||
public static AuthenticatedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD1F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid AuthenticatedData: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002040 RID: 8256
|
||||
// (get) Token: 0x0600CD20 RID: 52512 RVA: 0x002EA590 File Offset: 0x002E8790
|
||||
[Token(Token = "0x17002040")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD20")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002041 RID: 8257
|
||||
// (get) Token: 0x0600CD21 RID: 52513 RVA: 0x002EA5A4 File Offset: 0x002E87A4
|
||||
[Token(Token = "0x17002041")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600CD21")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002042 RID: 8258
|
||||
// (get) Token: 0x0600CD22 RID: 52514 RVA: 0x002EA5B8 File Offset: 0x002E87B8
|
||||
[Token(Token = "0x17002042")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600CD22")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002043 RID: 8259
|
||||
// (get) Token: 0x0600CD23 RID: 52515 RVA: 0x002EA5CC File Offset: 0x002E87CC
|
||||
[Token(Token = "0x17002043")]
|
||||
public AlgorithmIdentifier MacAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD23")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.macAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002044 RID: 8260
|
||||
// (get) Token: 0x0600CD24 RID: 52516 RVA: 0x002EA5E0 File Offset: 0x002E87E0
|
||||
[Token(Token = "0x17002044")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD24")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002045 RID: 8261
|
||||
// (get) Token: 0x0600CD25 RID: 52517 RVA: 0x002EA5F4 File Offset: 0x002E87F4
|
||||
[Token(Token = "0x17002045")]
|
||||
public ContentInfo EncapsulatedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD25")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.encapsulatedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002046 RID: 8262
|
||||
// (get) Token: 0x0600CD26 RID: 52518 RVA: 0x002EA608 File Offset: 0x002E8808
|
||||
[Token(Token = "0x17002046")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD26")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002047 RID: 8263
|
||||
// (get) Token: 0x0600CD27 RID: 52519 RVA: 0x002EA61C File Offset: 0x002E881C
|
||||
[Token(Token = "0x17002047")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600CD27")]
|
||||
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002048 RID: 8264
|
||||
// (get) Token: 0x0600CD28 RID: 52520 RVA: 0x002EA630 File Offset: 0x002E8830
|
||||
[Token(Token = "0x17002048")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD28")]
|
||||
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD29 RID: 52521 RVA: 0x002EA644 File Offset: 0x002E8844
|
||||
[Token(Token = "0x600CD29")]
|
||||
[Address(RVA = "0x2FDD970", Offset = "0x2FDC970", VA = "0x182FDD970", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
int num = 0;
|
||||
if (this.originatorInfo != num)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[0];
|
||||
OriginatorInfo originatorInfo = this.originatorInfo;
|
||||
int num2;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num2 != 0, num3, originatorInfo);
|
||||
num3 = 0;
|
||||
num2 = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
Asn1Set asn1Set = this.recipientInfos;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = asn1Set;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.macAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = algorithmIdentifier;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.digestAlgorithm != num)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.digestAlgorithm;
|
||||
int num4;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num4 != 0, 1, algorithmIdentifier2);
|
||||
num4 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
||||
ContentInfo contentInfo = this.encapsulatedContentInfo;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = contentInfo;
|
||||
asn1EncodableVector.Add(array5);
|
||||
if (this.authAttrs != num)
|
||||
{
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.authAttrs;
|
||||
int num5;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num5 != 0, 2, asn1Set2);
|
||||
num5 = 0;
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array6[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array6);
|
||||
}
|
||||
Asn1Encodable[] array7 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.mac;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array7[0] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array7);
|
||||
if (this.unauthAttrs != num)
|
||||
{
|
||||
Asn1Encodable[] array8 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set3 = this.unauthAttrs;
|
||||
int num6;
|
||||
DerTaggedObject derTaggedObject4 = new DerTaggedObject(num6 != 0, 3, asn1Set3);
|
||||
num6 = 0;
|
||||
if (derTaggedObject4 != 0)
|
||||
{
|
||||
}
|
||||
array8[0] = derTaggedObject4;
|
||||
asn1EncodableVector.Add(array8);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CD2A RID: 52522 RVA: 0x002EA810 File Offset: 0x002E8A10
|
||||
[Token(Token = "0x600CD2A")]
|
||||
[Address(RVA = "0x2FDD400", Offset = "0x2FDC400", VA = "0x182FDD400")]
|
||||
public static int CalculateVersion(OriginatorInfo origInfo)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (origInfo == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
IEnumerator enumerator = origInfo.certs.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
while (enumerator == 0)
|
||||
{
|
||||
}
|
||||
while (enumerator == 0)
|
||||
{
|
||||
}
|
||||
int num2 = 0;
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_5D;
|
||||
}
|
||||
if (num2 != 2)
|
||||
{
|
||||
while (num2 != 3)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
goto IL_63;
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
IEnumerator enumerator2 = origInfo.crls.GetEnumerator();
|
||||
if (enumerator2 != 0)
|
||||
{
|
||||
while (enumerator2 == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return num;
|
||||
IL_5D:
|
||||
throw new NullReferenceException();
|
||||
IL_63:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008216 RID: 33302
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008216")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008217 RID: 33303
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008217")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x04008218 RID: 33304
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008218")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04008219 RID: 33305
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008219")]
|
||||
private AlgorithmIdentifier macAlgorithm;
|
||||
|
||||
// Token: 0x0400821A RID: 33306
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400821A")]
|
||||
private AlgorithmIdentifier digestAlgorithm;
|
||||
|
||||
// Token: 0x0400821B RID: 33307
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400821B")]
|
||||
private ContentInfo encapsulatedContentInfo;
|
||||
|
||||
// Token: 0x0400821C RID: 33308
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400821C")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x0400821D RID: 33309
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400821D")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x0400821E RID: 33310
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400821E")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+249
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FFE RID: 8190
|
||||
[Token(Token = "0x2001FFE")]
|
||||
public class AuthenticatedDataParser
|
||||
{
|
||||
// Token: 0x0600CD2B RID: 52523 RVA: 0x002EA88C File Offset: 0x002E8A8C
|
||||
[Token(Token = "0x600CD2B")]
|
||||
[Address(RVA = "0x2FDD330", Offset = "0x2FDC330", VA = "0x182FDD330")]
|
||||
public AuthenticatedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17002049 RID: 8265
|
||||
// (get) Token: 0x0600CD2C RID: 52524 RVA: 0x002EA8BC File Offset: 0x002E8ABC
|
||||
[Token(Token = "0x17002049")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD2C")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD2D RID: 52525 RVA: 0x002EA8D0 File Offset: 0x002E8AD0
|
||||
[Token(Token = "0x600CD2D")]
|
||||
[Address(RVA = "0x2FDCF70", Offset = "0x2FDBF70", VA = "0x182FDCF70")]
|
||||
public OriginatorInfo GetOriginatorInfo()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
IAsn1Convertible asn1Convertible = this.nextObject;
|
||||
this.originatorInfoCalled = true;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
if (asn1Convertible != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible asn1Convertible3 = this.nextObject;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
this.nextObject = (ulong)0L;
|
||||
if (asn1Convertible != 0 && asn1Convertible != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
OriginatorInfo originatorInfo;
|
||||
return originatorInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD2E RID: 52526 RVA: 0x002EA93C File Offset: 0x002E8B3C
|
||||
[Token(Token = "0x600CD2E")]
|
||||
[Address(RVA = "0x2FDD170", Offset = "0x2FDC170", VA = "0x182FDD170")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD2E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedDataParser::GetRecipientInfos()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_2:
|
||||
brtrue(IL_00, ceq:bool(ldloc:int32(var_3_23), ldc.i4:int32(0)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD2F RID: 52527 RVA: 0x002EA97C File Offset: 0x002E8B7C
|
||||
[Token(Token = "0x600CD2F")]
|
||||
[Address(RVA = "0x2FDCE10", Offset = "0x2FDBE10", VA = "0x182FDCE10")]
|
||||
public AlgorithmIdentifier GetMacAlgorithm()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
return AlgorithmIdentifier.GetInstance(0);
|
||||
}
|
||||
|
||||
// Token: 0x0600CD30 RID: 52528 RVA: 0x002EA9A8 File Offset: 0x002E8BA8
|
||||
[Token(Token = "0x600CD30")]
|
||||
[Address(RVA = "0x2FDCC50", Offset = "0x2FDBC50", VA = "0x182FDCC50")]
|
||||
public AlgorithmIdentifier GetDigestAlgorithm()
|
||||
{
|
||||
IAsn1Convertible asn1Convertible;
|
||||
do
|
||||
{
|
||||
asn1Convertible = this.nextObject;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (asn1Convertible == 0);
|
||||
this.nextObject = (ulong)0L;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
return algorithmIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD31 RID: 52529 RVA: 0x002EA9F8 File Offset: 0x002E8BF8
|
||||
[Token(Token = "0x600CD31")]
|
||||
[Address(RVA = "0x2FDCD40", Offset = "0x2FDBD40", VA = "0x182FDCD40")]
|
||||
public ContentInfoParser GetEnapsulatedContentInfo()
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (contentInfoParser == 0);
|
||||
return contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD32 RID: 52530 RVA: 0x002EAA24 File Offset: 0x002E8C24
|
||||
[Token(Token = "0x600CD32")]
|
||||
[Address(RVA = "0x2FDCB10", Offset = "0x2FDBB10", VA = "0x182FDCB10")]
|
||||
public Asn1SetParser GetAuthAttrs()
|
||||
{
|
||||
IAsn1Convertible asn1Convertible;
|
||||
do
|
||||
{
|
||||
asn1Convertible = this.nextObject;
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
this.nextObject = asn1Convertible;
|
||||
}
|
||||
if (asn1Convertible == 0)
|
||||
{
|
||||
}
|
||||
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
||||
int num = 0;
|
||||
this.nextObject = num;
|
||||
}
|
||||
while (asn1Convertible == 0 || asn1Convertible == 0 || (asn1Convertible != 0 && asn1Convertible == 0));
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CD33 RID: 52531 RVA: 0x002EAA74 File Offset: 0x002E8C74
|
||||
[Token(Token = "0x600CD33")]
|
||||
[Address(RVA = "0x2FDCEF0", Offset = "0x2FDBEF0", VA = "0x182FDCEF0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD34 RID: 52532 RVA: 0x002EAAA4 File Offset: 0x002E8CA4
|
||||
[Token(Token = "0x600CD34")]
|
||||
[Address(RVA = "0x2FDD210", Offset = "0x2FDC210", VA = "0x182FDD210")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD34)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedDataParser::GetUnauthAttrs()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:int32(var_1_11, ldc.i4:int32(0))
|
||||
stfld:IAsn1Convertible(AuthenticatedDataParser::nextObject, ldloc:AuthenticatedDataParser(this), ldloc:int32[exp:IAsn1Convertible](var_1_11))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0400821F RID: 33311
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400821F")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04008220 RID: 33312
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008220")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008221 RID: 33313
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008221")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04008222 RID: 33314
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008222")]
|
||||
private bool originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001FFF RID: 8191
|
||||
[Token(Token = "0x2001FFF")]
|
||||
public abstract class CmsAttributes
|
||||
{
|
||||
// Token: 0x0600CD35 RID: 52533 RVA: 0x002EAACC File Offset: 0x002E8CCC
|
||||
[Token(Token = "0x600CD35")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected CmsAttributes()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04008223 RID: 33315
|
||||
[Token(Token = "0x4008223")]
|
||||
public static readonly DerObjectIdentifier ContentType = PkcsObjectIdentifiers.Pkcs9AtContentType;
|
||||
|
||||
// Token: 0x04008224 RID: 33316
|
||||
[Token(Token = "0x4008224")]
|
||||
public static readonly DerObjectIdentifier MessageDigest = PkcsObjectIdentifiers.Pkcs9AtMessageDigest;
|
||||
|
||||
// Token: 0x04008225 RID: 33317
|
||||
[Token(Token = "0x4008225")]
|
||||
public static readonly DerObjectIdentifier SigningTime = PkcsObjectIdentifiers.Pkcs9AtSigningTime;
|
||||
|
||||
// Token: 0x04008226 RID: 33318
|
||||
[Token(Token = "0x4008226")]
|
||||
public static readonly DerObjectIdentifier CounterSignature = PkcsObjectIdentifiers.Pkcs9AtCounterSignature;
|
||||
|
||||
// Token: 0x04008227 RID: 33319
|
||||
[Token(Token = "0x4008227")]
|
||||
public static readonly DerObjectIdentifier ContentHint = PkcsObjectIdentifiers.IdAAContentHint;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002000 RID: 8192
|
||||
[Token(Token = "0x2002000")]
|
||||
public abstract class CmsObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CD37 RID: 52535 RVA: 0x002EAB20 File Offset: 0x002E8D20
|
||||
[Token(Token = "0x600CD37")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected CmsObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04008228 RID: 33320
|
||||
[Token(Token = "0x4008228")]
|
||||
public static readonly DerObjectIdentifier Data = PkcsObjectIdentifiers.Data;
|
||||
|
||||
// Token: 0x04008229 RID: 33321
|
||||
[Token(Token = "0x4008229")]
|
||||
public static readonly DerObjectIdentifier SignedData = PkcsObjectIdentifiers.SignedData;
|
||||
|
||||
// Token: 0x0400822A RID: 33322
|
||||
[Token(Token = "0x400822A")]
|
||||
public static readonly DerObjectIdentifier EnvelopedData = PkcsObjectIdentifiers.EnvelopedData;
|
||||
|
||||
// Token: 0x0400822B RID: 33323
|
||||
[Token(Token = "0x400822B")]
|
||||
public static readonly DerObjectIdentifier SignedAndEnvelopedData = PkcsObjectIdentifiers.SignedAndEnvelopedData;
|
||||
|
||||
// Token: 0x0400822C RID: 33324
|
||||
[Token(Token = "0x400822C")]
|
||||
public static readonly DerObjectIdentifier DigestedData = PkcsObjectIdentifiers.DigestedData;
|
||||
|
||||
// Token: 0x0400822D RID: 33325
|
||||
[Token(Token = "0x400822D")]
|
||||
public static readonly DerObjectIdentifier EncryptedData = PkcsObjectIdentifiers.EncryptedData;
|
||||
|
||||
// Token: 0x0400822E RID: 33326
|
||||
[Token(Token = "0x400822E")]
|
||||
public static readonly DerObjectIdentifier AuthenticatedData = PkcsObjectIdentifiers.IdCTAuthData;
|
||||
|
||||
// Token: 0x0400822F RID: 33327
|
||||
[Token(Token = "0x400822F")]
|
||||
public static readonly DerObjectIdentifier CompressedData = PkcsObjectIdentifiers.IdCTCompressedData;
|
||||
|
||||
// Token: 0x04008230 RID: 33328
|
||||
[Token(Token = "0x4008230")]
|
||||
public static readonly DerObjectIdentifier AuthEnvelopedData = PkcsObjectIdentifiers.IdCTAuthEnvelopedData;
|
||||
|
||||
// Token: 0x04008231 RID: 33329
|
||||
[Token(Token = "0x4008231")]
|
||||
public static readonly DerObjectIdentifier timestampedData = PkcsObjectIdentifiers.IdCTTimestampedData;
|
||||
|
||||
// Token: 0x04008232 RID: 33330
|
||||
[Token(Token = "0x4008232")]
|
||||
public static readonly DerObjectIdentifier id_ri = new DerObjectIdentifier("1.3.6.1.5.5.7.16");
|
||||
|
||||
// Token: 0x04008233 RID: 33331
|
||||
[Token(Token = "0x4008233")]
|
||||
public static readonly DerObjectIdentifier id_ri_ocsp_response = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04008234 RID: 33332
|
||||
[Token(Token = "0x4008234")]
|
||||
public static readonly DerObjectIdentifier id_ri_scvp = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002001 RID: 8193
|
||||
[Token(Token = "0x2002001")]
|
||||
public class CompressedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD39 RID: 52537 RVA: 0x002EABD8 File Offset: 0x002E8DD8
|
||||
[Token(Token = "0x600CD39")]
|
||||
[Address(RVA = "0x2FE09E0", Offset = "0x2FDF9E0", VA = "0x182FE09E0")]
|
||||
public CompressedData(AlgorithmIdentifier compressionAlgorithm, ContentInfo encapContentInfo)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
this.compressionAlgorithm = compressionAlgorithm;
|
||||
this.encapContentInfo = encapContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD3A RID: 52538 RVA: 0x002EAC0C File Offset: 0x002E8E0C
|
||||
[Token(Token = "0x600CD3A")]
|
||||
[Address(RVA = "0x2FE0A60", Offset = "0x2FDFA60", VA = "0x182FE0A60")]
|
||||
public CompressedData(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
parser = seq.Parser;
|
||||
}
|
||||
while (parser != 0 && parser == 0);
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.compressionAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
ContentInfo contentInfo;
|
||||
this.encapContentInfo = contentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD3B RID: 52539 RVA: 0x002EAC5C File Offset: 0x002E8E5C
|
||||
[Token(Token = "0x600CD3B")]
|
||||
[Address(RVA = "0x2FE0580", Offset = "0x2FDF580", VA = "0x182FE0580")]
|
||||
public static CompressedData GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return CompressedData.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD3C RID: 52540 RVA: 0x002EAC78 File Offset: 0x002E8E78
|
||||
[Token(Token = "0x600CD3C")]
|
||||
[Address(RVA = "0x2FE05A0", Offset = "0x2FDF5A0", VA = "0x182FE05A0")]
|
||||
public static CompressedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD3C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.CompressedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.CompressedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3C:
|
||||
stloc:string(var_10_42, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_55, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid CompressedData: "), ldloc:string(var_10_42))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x1700204A RID: 8266
|
||||
// (get) Token: 0x0600CD3D RID: 52541 RVA: 0x002EACDC File Offset: 0x002E8EDC
|
||||
[Token(Token = "0x1700204A")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD3D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204B RID: 8267
|
||||
// (get) Token: 0x0600CD3E RID: 52542 RVA: 0x002EACF0 File Offset: 0x002E8EF0
|
||||
[Token(Token = "0x1700204B")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CD3E")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204C RID: 8268
|
||||
// (get) Token: 0x0600CD3F RID: 52543 RVA: 0x002EAD04 File Offset: 0x002E8F04
|
||||
[Token(Token = "0x1700204C")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD3F")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.encapContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD40 RID: 52544 RVA: 0x002EAD18 File Offset: 0x002E8F18
|
||||
[Token(Token = "0x600CD40")]
|
||||
[Address(RVA = "0x2FE0870", Offset = "0x2FDF870", VA = "0x182FE0870", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.compressionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
ContentInfo contentInfo = this.encapContentInfo;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
}
|
||||
array[2] = contentInfo;
|
||||
BerSequence berSequence = new BerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008235 RID: 33333
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008235")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008236 RID: 33334
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008236")]
|
||||
private AlgorithmIdentifier compressionAlgorithm;
|
||||
|
||||
// Token: 0x04008237 RID: 33335
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008237")]
|
||||
private ContentInfo encapContentInfo;
|
||||
}
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002002 RID: 8194
|
||||
[Token(Token = "0x2002002")]
|
||||
public class CompressedDataParser
|
||||
{
|
||||
// Token: 0x0600CD41 RID: 52545 RVA: 0x002EAD74 File Offset: 0x002E8F74
|
||||
[Token(Token = "0x600CD41")]
|
||||
[Address(RVA = "0x2FE0400", Offset = "0x2FDF400", VA = "0x182FE0400")]
|
||||
public CompressedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this._version = seq;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this._compressionAlgorithm = algorithmIdentifier;
|
||||
if (algorithmIdentifier == 0 || contentInfoParser != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this._encapContentInfo = contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x1700204D RID: 8269
|
||||
// (get) Token: 0x0600CD42 RID: 52546 RVA: 0x002EADB4 File Offset: 0x002E8FB4
|
||||
[Token(Token = "0x1700204D")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD42")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700204E RID: 8270
|
||||
// (get) Token: 0x0600CD43 RID: 52547 RVA: 0x002EADC8 File Offset: 0x002E8FC8
|
||||
[Token(Token = "0x1700204E")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CD43")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this._compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD44 RID: 52548 RVA: 0x002EADDC File Offset: 0x002E8FDC
|
||||
[Token(Token = "0x600CD44")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
public ContentInfoParser GetEncapContentInfo()
|
||||
{
|
||||
return this._encapContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x04008238 RID: 33336
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008238")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04008239 RID: 33337
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008239")]
|
||||
private AlgorithmIdentifier _compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400823A RID: 33338
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400823A")]
|
||||
private ContentInfoParser _encapContentInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002003 RID: 8195
|
||||
[Token(Token = "0x2002003")]
|
||||
public class ContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD45 RID: 52549 RVA: 0x002EADF0 File Offset: 0x002E8FF0
|
||||
[Token(Token = "0x600CD45")]
|
||||
[Address(RVA = "0x2FE0D20", Offset = "0x2FDFD20", VA = "0x182FE0D20")]
|
||||
public static ContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD45)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.ContentInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.ContentInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD46 RID: 52550 RVA: 0x002EAE40 File Offset: 0x002E9040
|
||||
[Token(Token = "0x600CD46")]
|
||||
[Address(RVA = "0x2FE0D00", Offset = "0x2FDFD00", VA = "0x182FE0D00")]
|
||||
public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return ContentInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD47 RID: 52551 RVA: 0x002EAE5C File Offset: 0x002E905C
|
||||
[Token(Token = "0x600CD47")]
|
||||
[Address(RVA = "0x2FE10B0", Offset = "0x2FE00B0", VA = "0x182FE10B0")]
|
||||
private ContentInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
parser = seq.Parser;
|
||||
}
|
||||
while (parser != 0 && parser == 0);
|
||||
this.contentType = parser;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1Object asn1Object;
|
||||
this.content = asn1Object;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD48 RID: 52552 RVA: 0x002EAEB8 File Offset: 0x002E90B8
|
||||
[Token(Token = "0x600CD48")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
// Token: 0x1700204F RID: 8271
|
||||
// (get) Token: 0x0600CD49 RID: 52553 RVA: 0x002EAEDC File Offset: 0x002E90DC
|
||||
[Token(Token = "0x1700204F")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600CD49")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002050 RID: 8272
|
||||
// (get) Token: 0x0600CD4A RID: 52554 RVA: 0x002EAEF0 File Offset: 0x002E90F0
|
||||
[Token(Token = "0x17002050")]
|
||||
public Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600CD4A")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD4B RID: 52555 RVA: 0x002EAF04 File Offset: 0x002E9104
|
||||
[Token(Token = "0x600CD4B")]
|
||||
[Address(RVA = "0x2FE0F10", Offset = "0x2FDFF10", VA = "0x182FE0F10", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.content != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Encodable asn1Encodable = this.content;
|
||||
int num;
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(num, asn1Encodable);
|
||||
num = 0;
|
||||
if (berTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = berTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400823B RID: 33339
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400823B")]
|
||||
private readonly DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x0400823C RID: 33340
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400823C")]
|
||||
private readonly Asn1Encodable content;
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002004 RID: 8196
|
||||
[Token(Token = "0x2002004")]
|
||||
public class ContentInfoParser
|
||||
{
|
||||
// Token: 0x0600CD4C RID: 52556 RVA: 0x002EAF7C File Offset: 0x002E917C
|
||||
[Token(Token = "0x600CD4C")]
|
||||
[Address(RVA = "0x2FE0BE0", Offset = "0x2FDFBE0", VA = "0x182FE0BE0")]
|
||||
public ContentInfoParser(Asn1SequenceParser seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this.contentType = seq;
|
||||
if (seq == 0 || seq != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17002051 RID: 8273
|
||||
// (get) Token: 0x0600CD4D RID: 52557 RVA: 0x002EAFB4 File Offset: 0x002E91B4
|
||||
[Token(Token = "0x17002051")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600CD4D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD4E RID: 52558 RVA: 0x002EAFC8 File Offset: 0x002E91C8
|
||||
[Token(Token = "0x600CD4E")]
|
||||
[Address(RVA = "0x2FE0B70", Offset = "0x2FDFB70", VA = "0x182FE0B70")]
|
||||
public IAsn1Convertible GetContent(int tag)
|
||||
{
|
||||
if (this.content != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400823D RID: 33341
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400823D")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x0400823E RID: 33342
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400823E")]
|
||||
private Asn1TaggedObjectParser content;
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc
|
||||
{
|
||||
// Token: 0x02002027 RID: 8231
|
||||
[Token(Token = "0x2002027")]
|
||||
public class MQVuserKeyingMaterial : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE61 RID: 52833 RVA: 0x002EEE74 File Offset: 0x002ED074
|
||||
[Token(Token = "0x600CE61")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public MQVuserKeyingMaterial(OriginatorPublicKey ephemeralPublicKey, Asn1OctetString addedukm)
|
||||
{
|
||||
this.ephemeralPublicKey = ephemeralPublicKey;
|
||||
this.addedukm = addedukm;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE62 RID: 52834 RVA: 0x002EEE98 File Offset: 0x002ED098
|
||||
[Token(Token = "0x600CE62")]
|
||||
[Address(RVA = "0x2FE79A0", Offset = "0x2FE69A0", VA = "0x182FE79A0")]
|
||||
private MQVuserKeyingMaterial(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
OriginatorPublicKey originatorPublicKey;
|
||||
this.ephemeralPublicKey = originatorPublicKey;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (ulong)1L)
|
||||
{
|
||||
return;
|
||||
}
|
||||
parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser2 == 0);
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.addedukm = asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE63 RID: 52835 RVA: 0x002EEEE0 File Offset: 0x002ED0E0
|
||||
[Token(Token = "0x600CE63")]
|
||||
[Address(RVA = "0x2FE77E0", Offset = "0x2FE67E0", VA = "0x182FE77E0")]
|
||||
public static MQVuserKeyingMaterial GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return MQVuserKeyingMaterial.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CE64 RID: 52836 RVA: 0x002EEEFC File Offset: 0x002ED0FC
|
||||
[Token(Token = "0x600CE64")]
|
||||
[Address(RVA = "0x2FE7510", Offset = "0x2FE6510", VA = "0x182FE7510")]
|
||||
public static MQVuserKeyingMaterial GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE64)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc.MQVuserKeyingMaterial BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc.MQVuserKeyingMaterial::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_52, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid MQVuserKeyingMaterial: "), ldloc:string(var_9_3F))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x170020B3 RID: 8371
|
||||
// (get) Token: 0x0600CE65 RID: 52837 RVA: 0x002EEF5C File Offset: 0x002ED15C
|
||||
[Token(Token = "0x170020B3")]
|
||||
public OriginatorPublicKey EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x600CE65")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B4 RID: 8372
|
||||
// (get) Token: 0x0600CE66 RID: 52838 RVA: 0x002EEF70 File Offset: 0x002ED170
|
||||
[Token(Token = "0x170020B4")]
|
||||
public Asn1OctetString AddedUkm
|
||||
{
|
||||
[Token(Token = "0x600CE66")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.addedukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE67 RID: 52839 RVA: 0x002EEF84 File Offset: 0x002ED184
|
||||
[Token(Token = "0x600CE67")]
|
||||
[Address(RVA = "0x2FE7800", Offset = "0x2FE6800", VA = "0x182FE7800", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
OriginatorPublicKey originatorPublicKey = this.ephemeralPublicKey;
|
||||
if (originatorPublicKey != 0)
|
||||
{
|
||||
}
|
||||
array[0] = originatorPublicKey;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.addedukm != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.addedukm;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, asn1OctetString);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040082AA RID: 33450
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082AA")]
|
||||
private OriginatorPublicKey ephemeralPublicKey;
|
||||
|
||||
// Token: 0x040082AB RID: 33451
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082AB")]
|
||||
private Asn1OctetString addedukm;
|
||||
}
|
||||
}
|
||||
+172
@@ -0,0 +1,172 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002005 RID: 8197
|
||||
[Token(Token = "0x2002005")]
|
||||
public class EncryptedContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD4F RID: 52559 RVA: 0x002EAFE0 File Offset: 0x002E91E0
|
||||
[Token(Token = "0x600CD4F")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
public EncryptedContentInfo(DerObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, Asn1OctetString encryptedContent)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.contentEncryptionAlgorithm = contentEncryptionAlgorithm;
|
||||
this.encryptedContent = encryptedContent;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD50 RID: 52560 RVA: 0x002EB008 File Offset: 0x002E9208
|
||||
[Token(Token = "0x600CD50")]
|
||||
[Address(RVA = "0x2FE1B50", Offset = "0x2FE0B50", VA = "0x182FE1B50")]
|
||||
public EncryptedContentInfo(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.contentType = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.contentEncryptionAlgorithm = algorithmIdentifier;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (ulong)2L)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
if (parser3 == 0 || parser3 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.encryptedContent = asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD51 RID: 52561 RVA: 0x002EB06C File Offset: 0x002E926C
|
||||
[Token(Token = "0x600CD51")]
|
||||
[Address(RVA = "0x2FE1760", Offset = "0x2FE0760", VA = "0x182FE1760")]
|
||||
public static EncryptedContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD51)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid EncryptedContentInfo: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002052 RID: 8274
|
||||
// (get) Token: 0x0600CD52 RID: 52562 RVA: 0x002EB0BC File Offset: 0x002E92BC
|
||||
[Token(Token = "0x17002052")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600CD52")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002053 RID: 8275
|
||||
// (get) Token: 0x0600CD53 RID: 52563 RVA: 0x002EB0D0 File Offset: 0x002E92D0
|
||||
[Token(Token = "0x17002053")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD53")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002054 RID: 8276
|
||||
// (get) Token: 0x0600CD54 RID: 52564 RVA: 0x002EB0E4 File Offset: 0x002E92E4
|
||||
[Token(Token = "0x17002054")]
|
||||
public Asn1OctetString EncryptedContent
|
||||
{
|
||||
[Token(Token = "0x600CD54")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD55 RID: 52565 RVA: 0x002EB0F8 File Offset: 0x002E92F8
|
||||
[Token(Token = "0x600CD55")]
|
||||
[Address(RVA = "0x2FE1950", Offset = "0x2FE0950", VA = "0x182FE1950", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.contentEncryptionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.encryptedContent != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.encryptedContent;
|
||||
int num;
|
||||
int num2;
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(num != 0, num2, asn1OctetString);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (berTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = berTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400823F RID: 33343
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400823F")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04008240 RID: 33344
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008240")]
|
||||
private AlgorithmIdentifier contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008241 RID: 33345
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008241")]
|
||||
private Asn1OctetString encryptedContent;
|
||||
}
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002006 RID: 8198
|
||||
[Token(Token = "0x2002006")]
|
||||
public class EncryptedContentInfoParser
|
||||
{
|
||||
// Token: 0x0600CD56 RID: 52566 RVA: 0x002EB18C File Offset: 0x002E938C
|
||||
[Token(Token = "0x600CD56")]
|
||||
[Address(RVA = "0x2FE1610", Offset = "0x2FE0610", VA = "0x182FE1610")]
|
||||
public EncryptedContentInfoParser(Asn1SequenceParser seq)
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this._contentType = seq;
|
||||
this._contentEncryptionAlgorithm = algorithmIdentifier;
|
||||
if (algorithmIdentifier == 0 || algorithmIdentifier != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this._encryptedContent = algorithmIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x17002055 RID: 8277
|
||||
// (get) Token: 0x0600CD57 RID: 52567 RVA: 0x002EB1CC File Offset: 0x002E93CC
|
||||
[Token(Token = "0x17002055")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600CD57")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this._contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002056 RID: 8278
|
||||
// (get) Token: 0x0600CD58 RID: 52568 RVA: 0x002EB1E0 File Offset: 0x002E93E0
|
||||
[Token(Token = "0x17002056")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD58")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this._contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD59 RID: 52569 RVA: 0x002EB1F4 File Offset: 0x002E93F4
|
||||
[Token(Token = "0x600CD59")]
|
||||
[Address(RVA = "0x2FE15B0", Offset = "0x2FE05B0", VA = "0x182FE15B0")]
|
||||
public IAsn1Convertible GetEncryptedContent(int tag)
|
||||
{
|
||||
Asn1TaggedObjectParser encryptedContent = this._encryptedContent;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008242 RID: 33346
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008242")]
|
||||
private DerObjectIdentifier _contentType;
|
||||
|
||||
// Token: 0x04008243 RID: 33347
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008243")]
|
||||
private AlgorithmIdentifier _contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008244 RID: 33348
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008244")]
|
||||
private Asn1TaggedObjectParser _encryptedContent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002007 RID: 8199
|
||||
[Token(Token = "0x2002007")]
|
||||
public class EncryptedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD5A RID: 52570 RVA: 0x002EB210 File Offset: 0x002E9410
|
||||
[Token(Token = "0x600CD5A")]
|
||||
[Address(RVA = "0x2FE1CD0", Offset = "0x2FE0CD0", VA = "0x182FE1CD0")]
|
||||
public static EncryptedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD5A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid EncryptedData: "), ldloc:string(var_6_28))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD5B RID: 52571 RVA: 0x002EB25C File Offset: 0x002E945C
|
||||
[Token(Token = "0x600CD5B")]
|
||||
[Address(RVA = "0x2FE2350", Offset = "0x2FE1350", VA = "0x182FE2350")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD5B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2B:
|
||||
stloc:ArgumentNullException(var_2_35, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("encInfo")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD5C RID: 52572 RVA: 0x002EB2A0 File Offset: 0x002E94A0
|
||||
[Token(Token = "0x600CD5C")]
|
||||
[Address(RVA = "0x2FE20C0", Offset = "0x2FE10C0", VA = "0x182FE20C0")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD5C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:ArgumentNullException(var_2_33, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("encInfo")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD5D RID: 52573 RVA: 0x002EB2E0 File Offset: 0x002E94E0
|
||||
[Token(Token = "0x600CD5D")]
|
||||
[Address(RVA = "0x2FE2190", Offset = "0x2FE1190", VA = "0x182FE2190")]
|
||||
private EncryptedData(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD5D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedData::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_40:
|
||||
stloc:ArgumentNullException(var_9_4A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("seq")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002057 RID: 8279
|
||||
// (get) Token: 0x0600CD5E RID: 52574 RVA: 0x002EB338 File Offset: 0x002E9538
|
||||
[Token(Token = "0x17002057")]
|
||||
public virtual DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD5E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002058 RID: 8280
|
||||
// (get) Token: 0x0600CD5F RID: 52575 RVA: 0x002EB34C File Offset: 0x002E954C
|
||||
[Token(Token = "0x17002058")]
|
||||
public virtual EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD5F")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002059 RID: 8281
|
||||
// (get) Token: 0x0600CD60 RID: 52576 RVA: 0x002EB360 File Offset: 0x002E9560
|
||||
[Token(Token = "0x17002059")]
|
||||
public virtual Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD60")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD61 RID: 52577 RVA: 0x002EB374 File Offset: 0x002E9574
|
||||
[Token(Token = "0x600CD61")]
|
||||
[Address(RVA = "0x2FE1EC0", Offset = "0x2FE0EC0", VA = "0x182FE1EC0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
EncryptedContentInfo encryptedContentInfo = this.encryptedContentInfo;
|
||||
if (encryptedContentInfo != 0)
|
||||
{
|
||||
}
|
||||
array[1] = encryptedContentInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.unprotectedAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.unprotectedAttrs;
|
||||
int num;
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(num != 0, 1, asn1Set);
|
||||
num = 0;
|
||||
if (berTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = berTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008245 RID: 33349
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008245")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x04008246 RID: 33350
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008246")]
|
||||
private readonly EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x04008247 RID: 33351
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008247")]
|
||||
private readonly Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,314 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002008 RID: 8200
|
||||
[Token(Token = "0x2002008")]
|
||||
public class EnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD62 RID: 52578 RVA: 0x002EB404 File Offset: 0x002E9604
|
||||
[Token(Token = "0x600CD62")]
|
||||
[Address(RVA = "0x2FE3090", Offset = "0x2FE2090", VA = "0x182FE3090")]
|
||||
public EnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
this.version = derInteger;
|
||||
this.unprotectedAttrs = 0;
|
||||
this.originatorInfo = originatorInfo;
|
||||
this.recipientInfos = recipientInfos;
|
||||
this.encryptedContentInfo = encryptedContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD63 RID: 52579 RVA: 0x002EB444 File Offset: 0x002E9644
|
||||
[Token(Token = "0x600CD63")]
|
||||
[Address(RVA = "0x2FE33D0", Offset = "0x2FE23D0", VA = "0x182FE33D0")]
|
||||
public EnvelopedData(OriginatorInfo originatorInfo, Asn1Set recipientInfos, EncryptedContentInfo encryptedContentInfo, Attributes unprotectedAttrs)
|
||||
{
|
||||
Asn1Set asn1Set;
|
||||
DerInteger derInteger = new DerInteger(EnvelopedData.CalculateVersion(originatorInfo, recipientInfos, asn1Set));
|
||||
this.version = derInteger;
|
||||
this.originatorInfo = originatorInfo;
|
||||
this.recipientInfos = recipientInfos;
|
||||
this.encryptedContentInfo = encryptedContentInfo;
|
||||
Asn1Set asn1Set2;
|
||||
this.unprotectedAttrs = asn1Set2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD64 RID: 52580 RVA: 0x002EB488 File Offset: 0x002E9688
|
||||
[Token(Token = "0x600CD64")]
|
||||
[Address(RVA = "0x2FE3150", Offset = "0x2FE2150", VA = "0x182FE3150")]
|
||||
[Obsolete]
|
||||
public EnvelopedData(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
if (parser2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
OriginatorInfo instance = OriginatorInfo.GetInstance(asn1Sequence);
|
||||
this.originatorInfo = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
this.recipientInfos = asn1Set;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
EncryptedContentInfo encryptedContentInfo;
|
||||
this.encryptedContentInfo = encryptedContentInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (uint)3)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 == 0 || parser5 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1Set asn1Set2;
|
||||
this.unprotectedAttrs = asn1Set2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD65 RID: 52581 RVA: 0x002EB528 File Offset: 0x002E9728
|
||||
[Token(Token = "0x600CD65")]
|
||||
[Address(RVA = "0x2FE2B50", Offset = "0x2FE1B50", VA = "0x182FE2B50")]
|
||||
public static EnvelopedData GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
Asn1Sequence instance2;
|
||||
for (;;)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj, explicitly);
|
||||
if (instance == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
instance2 = Asn1Sequence.GetInstance(instance);
|
||||
return new EnvelopedData(instance2);
|
||||
}
|
||||
|
||||
// Token: 0x0600CD66 RID: 52582 RVA: 0x002EB564 File Offset: 0x002E9764
|
||||
[Token(Token = "0x600CD66")]
|
||||
[Address(RVA = "0x2FE2C50", Offset = "0x2FE1C50", VA = "0x182FE2C50")]
|
||||
public static EnvelopedData GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new EnvelopedData(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700205A RID: 8282
|
||||
// (get) Token: 0x0600CD67 RID: 52583 RVA: 0x002EB598 File Offset: 0x002E9798
|
||||
[Token(Token = "0x1700205A")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD67")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700205B RID: 8283
|
||||
// (get) Token: 0x0600CD68 RID: 52584 RVA: 0x002EB5AC File Offset: 0x002E97AC
|
||||
[Token(Token = "0x1700205B")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600CD68")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700205C RID: 8284
|
||||
// (get) Token: 0x0600CD69 RID: 52585 RVA: 0x002EB5C0 File Offset: 0x002E97C0
|
||||
[Token(Token = "0x1700205C")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600CD69")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700205D RID: 8285
|
||||
// (get) Token: 0x0600CD6A RID: 52586 RVA: 0x002EB5D4 File Offset: 0x002E97D4
|
||||
[Token(Token = "0x1700205D")]
|
||||
public EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CD6A")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700205E RID: 8286
|
||||
// (get) Token: 0x0600CD6B RID: 52587 RVA: 0x002EB5E8 File Offset: 0x002E97E8
|
||||
[Token(Token = "0x1700205E")]
|
||||
public Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600CD6B")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD6C RID: 52588 RVA: 0x002EB5FC File Offset: 0x002E97FC
|
||||
[Token(Token = "0x600CD6C")]
|
||||
[Address(RVA = "0x2FE2D50", Offset = "0x2FE1D50", VA = "0x182FE2D50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.originatorInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
OriginatorInfo originatorInfo = this.originatorInfo;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, originatorInfo);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
Asn1Set asn1Set = this.recipientInfos;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = asn1Set;
|
||||
EncryptedContentInfo encryptedContentInfo = this.encryptedContentInfo;
|
||||
if (encryptedContentInfo != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = encryptedContentInfo;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.unprotectedAttrs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.unprotectedAttrs;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CD6D RID: 52589 RVA: 0x002EB6F8 File Offset: 0x002E98F8
|
||||
[Token(Token = "0x600CD6D")]
|
||||
[Address(RVA = "0x2FE2970", Offset = "0x2FE1970", VA = "0x182FE2970")]
|
||||
public static int CalculateVersion(OriginatorInfo originatorInfo, Asn1Set recipientInfos, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (originatorInfo != 0 || unprotectedAttrs != 0)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
int intValue;
|
||||
if (recipientInfos.GetEnumerator() != 0)
|
||||
{
|
||||
RecipientInfo recipientInfo;
|
||||
intValue = recipientInfo.Version.Value.IntValue;
|
||||
while (intValue == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (intValue != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
|
||||
// Token: 0x04008248 RID: 33352
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008248")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008249 RID: 33353
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008249")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400824A RID: 33354
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400824A")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x0400824B RID: 33355
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400824B")]
|
||||
private EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x0400824C RID: 33356
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400824C")]
|
||||
private Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002009 RID: 8201
|
||||
[Token(Token = "0x2002009")]
|
||||
public class EnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600CD6E RID: 52590 RVA: 0x002EB754 File Offset: 0x002E9954
|
||||
[Token(Token = "0x600CD6E")]
|
||||
[Address(RVA = "0x2FE28A0", Offset = "0x2FE18A0", VA = "0x182FE28A0")]
|
||||
public EnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this._seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x1700205F RID: 8287
|
||||
// (get) Token: 0x0600CD6F RID: 52591 RVA: 0x002EB784 File Offset: 0x002E9984
|
||||
[Token(Token = "0x1700205F")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD6F")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD70 RID: 52592 RVA: 0x002EB798 File Offset: 0x002E9998
|
||||
[Token(Token = "0x600CD70")]
|
||||
[Address(RVA = "0x2FE24E0", Offset = "0x2FE14E0", VA = "0x182FE24E0")]
|
||||
public OriginatorInfo GetOriginatorInfo()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
IAsn1Convertible nextObject = this._nextObject;
|
||||
this._originatorInfoCalled = true;
|
||||
if (nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
this._nextObject = nextObject;
|
||||
}
|
||||
if (nextObject == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible nextObject2 = this._nextObject;
|
||||
if (nextObject != 0 && nextObject != 0)
|
||||
{
|
||||
if (nextObject != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
IAsn1Convertible nextObject3 = this._nextObject;
|
||||
if (nextObject != 0 && nextObject != 0)
|
||||
{
|
||||
this._nextObject = (ulong)0L;
|
||||
if (nextObject != 0 && nextObject != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
OriginatorInfo originatorInfo;
|
||||
return originatorInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD71 RID: 52593 RVA: 0x002EB804 File Offset: 0x002E9A04
|
||||
[Token(Token = "0x600CD71")]
|
||||
[Address(RVA = "0x2FE26E0", Offset = "0x2FE16E0", VA = "0x182FE26E0")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD71)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EnvelopedDataParser::GetRecipientInfos()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_2:
|
||||
brtrue(IL_00, ceq:bool(ldloc:int32(var_3_23), ldc.i4:int32(0)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD72 RID: 52594 RVA: 0x002EB844 File Offset: 0x002E9A44
|
||||
[Token(Token = "0x600CD72")]
|
||||
[Address(RVA = "0x2FE2410", Offset = "0x2FE1410", VA = "0x182FE2410")]
|
||||
public EncryptedContentInfoParser GetEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this._nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
}
|
||||
this._nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD73 RID: 52595 RVA: 0x002EB870 File Offset: 0x002E9A70
|
||||
[Token(Token = "0x600CD73")]
|
||||
[Address(RVA = "0x2FE2780", Offset = "0x2FE1780", VA = "0x182FE2780")]
|
||||
public Asn1SetParser GetUnprotectedAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD73)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EnvelopedDataParser::GetUnprotectedAttrs()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:int32(var_1_11, ldc.i4:int32(0))
|
||||
stfld:IAsn1Convertible(EnvelopedDataParser::_nextObject, ldloc:EnvelopedDataParser(this), ldloc:int32[exp:IAsn1Convertible](var_1_11))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0400824D RID: 33357
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400824D")]
|
||||
private Asn1SequenceParser _seq;
|
||||
|
||||
// Token: 0x0400824E RID: 33358
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400824E")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x0400824F RID: 33359
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400824F")]
|
||||
private IAsn1Convertible _nextObject;
|
||||
|
||||
// Token: 0x04008250 RID: 33360
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008250")]
|
||||
private bool _originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200200A RID: 8202
|
||||
[Token(Token = "0x200200A")]
|
||||
public class Evidence : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CD74 RID: 52596 RVA: 0x002EB898 File Offset: 0x002E9A98
|
||||
[Token(Token = "0x600CD74")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public Evidence(TimeStampTokenEvidence tstEvidence)
|
||||
{
|
||||
this.tstEvidence = tstEvidence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD75 RID: 52597 RVA: 0x002EB8B4 File Offset: 0x002E9AB4
|
||||
[Token(Token = "0x600CD75")]
|
||||
[Address(RVA = "0x2FE3DF0", Offset = "0x2FE2DF0", VA = "0x182FE3DF0")]
|
||||
private Evidence(Asn1TaggedObject tagged)
|
||||
{
|
||||
if (tagged.tagNo == 0)
|
||||
{
|
||||
int num = 0;
|
||||
TimeStampTokenEvidence instance = TimeStampTokenEvidence.GetInstance(tagged, num != 0);
|
||||
this.tstEvidence = instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD76 RID: 52598 RVA: 0x002EB8E8 File Offset: 0x002E9AE8
|
||||
[Token(Token = "0x600CD76")]
|
||||
[Address(RVA = "0x2FE3BB0", Offset = "0x2FE2BB0", VA = "0x182FE3BB0")]
|
||||
public static Evidence GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD76)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Evidence BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Evidence::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_43:
|
||||
stloc:string(var_8_49, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_61, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in GetInstance: "), ldloc:string(var_8_49)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002060 RID: 8288
|
||||
// (get) Token: 0x0600CD77 RID: 52599 RVA: 0x002EB958 File Offset: 0x002E9B58
|
||||
[Token(Token = "0x17002060")]
|
||||
public virtual TimeStampTokenEvidence TstEvidence
|
||||
{
|
||||
[Token(Token = "0x600CD77")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tstEvidence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD78 RID: 52600 RVA: 0x002EB96C File Offset: 0x002E9B6C
|
||||
[Token(Token = "0x600CD78")]
|
||||
[Address(RVA = "0x2FE3D80", Offset = "0x2FE2D80", VA = "0x182FE3D80", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD78)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Evidence::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:DerTaggedObject(var_2_17, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldloc:int32[exp:bool](var_5), ldloc:int32(var_4), ldloc:TimeStampTokenEvidence[exp:Asn1Encodable](var_0_06)))
|
||||
stloc:int32(var_4, ldc.i4:int32(0))
|
||||
stloc:int32(var_5, ldc.i4:int32(0))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x04008251 RID: 33361
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008251")]
|
||||
private TimeStampTokenEvidence tstEvidence;
|
||||
}
|
||||
}
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200200B RID: 8203
|
||||
[Token(Token = "0x200200B")]
|
||||
public class IssuerAndSerialNumber : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD79 RID: 52601 RVA: 0x002EB998 File Offset: 0x002E9B98
|
||||
[Token(Token = "0x600CD79")]
|
||||
[Address(RVA = "0x2FE49F0", Offset = "0x2FE39F0", VA = "0x182FE49F0")]
|
||||
public static IssuerAndSerialNumber GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (obj != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
IssuerAndSerialNumber issuerAndSerialNumber;
|
||||
X509Name x509Name;
|
||||
issuerAndSerialNumber.name = x509Name;
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
if (parser2 == 0 || parser2 != 0)
|
||||
{
|
||||
issuerAndSerialNumber.serialNumber = num;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD7A RID: 52602 RVA: 0x002EB9E8 File Offset: 0x002E9BE8
|
||||
[Token(Token = "0x600CD7A")]
|
||||
[Address(RVA = "0x2FE4D20", Offset = "0x2FE3D20", VA = "0x182FE4D20")]
|
||||
[Obsolete]
|
||||
public IssuerAndSerialNumber(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
X509Name x509Name;
|
||||
this.name = x509Name;
|
||||
parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (parser2 != 0)
|
||||
{
|
||||
goto Block_1;
|
||||
}
|
||||
}
|
||||
this.serialNumber = parser2;
|
||||
return;
|
||||
Block_1:
|
||||
this.serialNumber = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD7B RID: 52603 RVA: 0x002EBA30 File Offset: 0x002E9C30
|
||||
[Token(Token = "0x600CD7B")]
|
||||
[Address(RVA = "0x2FE4CA0", Offset = "0x2FE3CA0", VA = "0x182FE4CA0")]
|
||||
public IssuerAndSerialNumber(X509Name name, BigInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
this.serialNumber = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD7C RID: 52604 RVA: 0x002EBA58 File Offset: 0x002E9C58
|
||||
[Token(Token = "0x600CD7C")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public IssuerAndSerialNumber(X509Name name, DerInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x17002061 RID: 8289
|
||||
// (get) Token: 0x0600CD7D RID: 52605 RVA: 0x002EBA7C File Offset: 0x002E9C7C
|
||||
[Token(Token = "0x17002061")]
|
||||
public X509Name Name
|
||||
{
|
||||
[Token(Token = "0x600CD7D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002062 RID: 8290
|
||||
// (get) Token: 0x0600CD7E RID: 52606 RVA: 0x002EBA90 File Offset: 0x002E9C90
|
||||
[Token(Token = "0x17002062")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600CD7E")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD7F RID: 52607 RVA: 0x002EBAA4 File Offset: 0x002E9CA4
|
||||
[Token(Token = "0x600CD7F")]
|
||||
[Address(RVA = "0x2FE4B90", Offset = "0x2FE3B90", VA = "0x182FE4B90", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
X509Name x509Name = this.name;
|
||||
if (x509Name != 0)
|
||||
{
|
||||
}
|
||||
array[0] = x509Name;
|
||||
DerInteger derInteger = this.serialNumber;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008252 RID: 33362
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008252")]
|
||||
private X509Name name;
|
||||
|
||||
// Token: 0x04008253 RID: 33363
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008253")]
|
||||
private DerInteger serialNumber;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200200C RID: 8204
|
||||
[Token(Token = "0x200200C")]
|
||||
public class KekIdentifier : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD80 RID: 52608 RVA: 0x002EBAEC File Offset: 0x002E9CEC
|
||||
[Token(Token = "0x600CD80")]
|
||||
[Address(RVA = "0x2FE5220", Offset = "0x2FE4220", VA = "0x182FE5220")]
|
||||
public KekIdentifier(byte[] keyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(keyIdentifier);
|
||||
this.keyIdentifier = derOctetString;
|
||||
this.date = date;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD81 RID: 52609 RVA: 0x002EBB1C File Offset: 0x002E9D1C
|
||||
[Token(Token = "0x600CD81")]
|
||||
[Address(RVA = "0x2FE52B0", Offset = "0x2FE42B0", VA = "0x182FE52B0")]
|
||||
public KekIdentifier(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD81)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KekIdentifier::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_7A:
|
||||
stloc:ArgumentException(var_11_84, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Invalid KekIdentifier")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD82 RID: 52610 RVA: 0x002EBBB0 File Offset: 0x002E9DB0
|
||||
[Token(Token = "0x600CD82")]
|
||||
[Address(RVA = "0x2FE4E40", Offset = "0x2FE3E40", VA = "0x182FE4E40")]
|
||||
public static KekIdentifier GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KekIdentifier.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD83 RID: 52611 RVA: 0x002EBBCC File Offset: 0x002E9DCC
|
||||
[Token(Token = "0x600CD83")]
|
||||
[Address(RVA = "0x2FE4E60", Offset = "0x2FE3E60", VA = "0x182FE4E60")]
|
||||
public static KekIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD83)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KekIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KekIdentifier::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid KekIdentifier: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002063 RID: 8291
|
||||
// (get) Token: 0x0600CD84 RID: 52612 RVA: 0x002EBC1C File Offset: 0x002E9E1C
|
||||
[Token(Token = "0x17002063")]
|
||||
public Asn1OctetString KeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CD84")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.keyIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002064 RID: 8292
|
||||
// (get) Token: 0x0600CD85 RID: 52613 RVA: 0x002EBC30 File Offset: 0x002E9E30
|
||||
[Token(Token = "0x17002064")]
|
||||
public DerGeneralizedTime Date
|
||||
{
|
||||
[Token(Token = "0x600CD85")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.date;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002065 RID: 8293
|
||||
// (get) Token: 0x0600CD86 RID: 52614 RVA: 0x002EBC44 File Offset: 0x002E9E44
|
||||
[Token(Token = "0x17002065")]
|
||||
public OtherKeyAttribute Other
|
||||
{
|
||||
[Token(Token = "0x600CD86")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.other;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD87 RID: 52615 RVA: 0x002EBC58 File Offset: 0x002E9E58
|
||||
[Token(Token = "0x600CD87")]
|
||||
[Address(RVA = "0x2FE5050", Offset = "0x2FE4050", VA = "0x182FE5050", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.keyIdentifier;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1OctetString;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
||||
DerGeneralizedTime derGeneralizedTime = this.date;
|
||||
if (derGeneralizedTime != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derGeneralizedTime;
|
||||
OtherKeyAttribute otherKeyAttribute = this.other;
|
||||
if (otherKeyAttribute != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = otherKeyAttribute;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008254 RID: 33364
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008254")]
|
||||
private Asn1OctetString keyIdentifier;
|
||||
|
||||
// Token: 0x04008255 RID: 33365
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008255")]
|
||||
private DerGeneralizedTime date;
|
||||
|
||||
// Token: 0x04008256 RID: 33366
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008256")]
|
||||
private OtherKeyAttribute other;
|
||||
}
|
||||
}
|
||||
+192
@@ -0,0 +1,192 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200200D RID: 8205
|
||||
[Token(Token = "0x200200D")]
|
||||
public class KekRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD88 RID: 52616 RVA: 0x002EBCD0 File Offset: 0x002E9ED0
|
||||
[Token(Token = "0x600CD88")]
|
||||
[Address(RVA = "0x2FE5A60", Offset = "0x2FE4A60", VA = "0x182FE5A60")]
|
||||
public KekRecipientInfo(KekIdentifier kekID, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1OctetString encryptedKey)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(4);
|
||||
this.version = derInteger;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.encryptedKey = encryptedKey;
|
||||
this.kekID = kekID;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD89 RID: 52617 RVA: 0x002EBD08 File Offset: 0x002E9F08
|
||||
[Token(Token = "0x600CD89")]
|
||||
[Address(RVA = "0x2FE58E0", Offset = "0x2FE48E0", VA = "0x182FE58E0")]
|
||||
public KekRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser4;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
KekIdentifier kekIdentifier;
|
||||
this.kekID = kekIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier;
|
||||
parser4 = seq.Parser;
|
||||
if (parser4 == 0 || parser4 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.encryptedKey = parser4;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD8A RID: 52618 RVA: 0x002EBD74 File Offset: 0x002E9F74
|
||||
[Token(Token = "0x600CD8A")]
|
||||
[Address(RVA = "0x2FE5700", Offset = "0x2FE4700", VA = "0x182FE5700")]
|
||||
public static KekRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KekRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD8B RID: 52619 RVA: 0x002EBD90 File Offset: 0x002E9F90
|
||||
[Token(Token = "0x600CD8B")]
|
||||
[Address(RVA = "0x2FE5510", Offset = "0x2FE4510", VA = "0x182FE5510")]
|
||||
public static KekRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD8B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KekRecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KekRecipientInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid KekRecipientInfo: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002066 RID: 8294
|
||||
// (get) Token: 0x0600CD8C RID: 52620 RVA: 0x002EBDE0 File Offset: 0x002E9FE0
|
||||
[Token(Token = "0x17002066")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD8C")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002067 RID: 8295
|
||||
// (get) Token: 0x0600CD8D RID: 52621 RVA: 0x002EBDF4 File Offset: 0x002E9FF4
|
||||
[Token(Token = "0x17002067")]
|
||||
public KekIdentifier KekID
|
||||
{
|
||||
[Token(Token = "0x600CD8D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.kekID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002068 RID: 8296
|
||||
// (get) Token: 0x0600CD8E RID: 52622 RVA: 0x002EBE08 File Offset: 0x002EA008
|
||||
[Token(Token = "0x17002068")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD8E")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002069 RID: 8297
|
||||
// (get) Token: 0x0600CD8F RID: 52623 RVA: 0x002EBE1C File Offset: 0x002EA01C
|
||||
[Token(Token = "0x17002069")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600CD8F")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD90 RID: 52624 RVA: 0x002EBE30 File Offset: 0x002EA030
|
||||
[Token(Token = "0x600CD90")]
|
||||
[Address(RVA = "0x2FE5720", Offset = "0x2FE4720", VA = "0x182FE5720", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[4];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
KekIdentifier kekIdentifier = this.kekID;
|
||||
if (kekIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = kekIdentifier;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.keyEncryptionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[2] = algorithmIdentifier;
|
||||
Asn1OctetString asn1OctetString = this.encryptedKey;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[3] = asn1OctetString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008257 RID: 33367
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008257")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008258 RID: 33368
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008258")]
|
||||
private KekIdentifier kekID;
|
||||
|
||||
// Token: 0x04008259 RID: 33369
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008259")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x0400825A RID: 33370
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400825A")]
|
||||
private Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200200E RID: 8206
|
||||
[Token(Token = "0x200200E")]
|
||||
public class KeyAgreeRecipientIdentifier : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CD91 RID: 52625 RVA: 0x002EBEA0 File Offset: 0x002EA0A0
|
||||
[Token(Token = "0x600CD91")]
|
||||
[Address(RVA = "0x2FE5D50", Offset = "0x2FE4D50", VA = "0x182FE5D50")]
|
||||
public static KeyAgreeRecipientIdentifier GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return KeyAgreeRecipientIdentifier.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD92 RID: 52626 RVA: 0x002EBEBC File Offset: 0x002EA0BC
|
||||
[Token(Token = "0x600CD92")]
|
||||
[Address(RVA = "0x2FE5B00", Offset = "0x2FE4B00", VA = "0x182FE5B00")]
|
||||
public static KeyAgreeRecipientIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD92)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyAgreeRecipientIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyAgreeRecipientIdentifier::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_58:
|
||||
stloc:string(var_10_5E, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_76, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid KeyAgreeRecipientIdentifier: "), ldloc:string(var_10_5E)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD93 RID: 52627 RVA: 0x002EBF40 File Offset: 0x002EA140
|
||||
[Token(Token = "0x600CD93")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public KeyAgreeRecipientIdentifier(IssuerAndSerialNumber issuerSerial)
|
||||
{
|
||||
this.issuerSerial = issuerSerial;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD94 RID: 52628 RVA: 0x002EBF5C File Offset: 0x002EA15C
|
||||
[Token(Token = "0x600CD94")]
|
||||
[Address(RVA = "0xA1AEE0", Offset = "0xA19EE0", VA = "0x180A1AEE0")]
|
||||
public KeyAgreeRecipientIdentifier(RecipientKeyIdentifier rKeyID)
|
||||
{
|
||||
this.rKeyID = rKeyID;
|
||||
}
|
||||
|
||||
// Token: 0x1700206A RID: 8298
|
||||
// (get) Token: 0x0600CD95 RID: 52629 RVA: 0x002EBF78 File Offset: 0x002EA178
|
||||
[Token(Token = "0x1700206A")]
|
||||
public IssuerAndSerialNumber IssuerAndSerialNumber
|
||||
{
|
||||
[Token(Token = "0x600CD95")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.issuerSerial;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700206B RID: 8299
|
||||
// (get) Token: 0x0600CD96 RID: 52630 RVA: 0x002EBF8C File Offset: 0x002EA18C
|
||||
[Token(Token = "0x1700206B")]
|
||||
public RecipientKeyIdentifier RKeyID
|
||||
{
|
||||
[Token(Token = "0x600CD96")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.rKeyID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CD97 RID: 52631 RVA: 0x002EBFA0 File Offset: 0x002EA1A0
|
||||
[Token(Token = "0x600CD97")]
|
||||
[Address(RVA = "0x2FE5D70", Offset = "0x2FE4D70", VA = "0x182FE5D70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
IssuerAndSerialNumber issuerAndSerialNumber = this.issuerSerial;
|
||||
if (issuerAndSerialNumber == 0)
|
||||
{
|
||||
RecipientKeyIdentifier recipientKeyIdentifier = this.rKeyID;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, recipientKeyIdentifier);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
}
|
||||
return issuerAndSerialNumber.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x0400825B RID: 33371
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400825B")]
|
||||
private readonly IssuerAndSerialNumber issuerSerial;
|
||||
|
||||
// Token: 0x0400825C RID: 33372
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400825C")]
|
||||
private readonly RecipientKeyIdentifier rKeyID;
|
||||
}
|
||||
}
|
||||
+249
@@ -0,0 +1,249 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200200F RID: 8207
|
||||
[Token(Token = "0x200200F")]
|
||||
public class KeyAgreeRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CD98 RID: 52632 RVA: 0x002EBFD8 File Offset: 0x002EA1D8
|
||||
[Token(Token = "0x600CD98")]
|
||||
[Address(RVA = "0x2FE6310", Offset = "0x2FE5310", VA = "0x182FE6310")]
|
||||
public KeyAgreeRecipientInfo(OriginatorIdentifierOrKey originator, Asn1OctetString ukm, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1Sequence recipientEncryptedKeys)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(3);
|
||||
this.version = derInteger;
|
||||
this.ukm = ukm;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.recipientEncryptedKeys = 0;
|
||||
this.originator = originator;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD99 RID: 52633 RVA: 0x002EC018 File Offset: 0x002EA218
|
||||
[Token(Token = "0x600CD99")]
|
||||
[Address(RVA = "0x2FE63B0", Offset = "0x2FE53B0", VA = "0x182FE63B0")]
|
||||
public KeyAgreeRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser6;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
}
|
||||
if (parser2 != 0)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
OriginatorIdentifierOrKey instance = OriginatorIdentifierOrKey.GetInstance(asn1Object);
|
||||
this.originator = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
if (parser3 != 0 && parser3 != 0)
|
||||
{
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
if (parser4 == 0)
|
||||
{
|
||||
}
|
||||
if (parser4 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.ukm = asn1OctetString;
|
||||
}
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier;
|
||||
parser6 = seq.Parser;
|
||||
if (parser6 == 0 || parser6 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.recipientEncryptedKeys = parser6;
|
||||
}
|
||||
|
||||
// Token: 0x0600CD9A RID: 52634 RVA: 0x002EC0D0 File Offset: 0x002EA2D0
|
||||
[Token(Token = "0x600CD9A")]
|
||||
[Address(RVA = "0x2FE5E00", Offset = "0x2FE4E00", VA = "0x182FE5E00")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KeyAgreeRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CD9B RID: 52635 RVA: 0x002EC0EC File Offset: 0x002EA2EC
|
||||
[Token(Token = "0x600CD9B")]
|
||||
[Address(RVA = "0x2FE5E20", Offset = "0x2FE4E20", VA = "0x182FE5E20")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CD9B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyAgreeRecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyAgreeRecipientInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Illegal object in KeyAgreeRecipientInfo: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x1700206C RID: 8300
|
||||
// (get) Token: 0x0600CD9C RID: 52636 RVA: 0x002EC13C File Offset: 0x002EA33C
|
||||
[Token(Token = "0x1700206C")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CD9C")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700206D RID: 8301
|
||||
// (get) Token: 0x0600CD9D RID: 52637 RVA: 0x002EC150 File Offset: 0x002EA350
|
||||
[Token(Token = "0x1700206D")]
|
||||
public OriginatorIdentifierOrKey Originator
|
||||
{
|
||||
[Token(Token = "0x600CD9D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.originator;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700206E RID: 8302
|
||||
// (get) Token: 0x0600CD9E RID: 52638 RVA: 0x002EC164 File Offset: 0x002EA364
|
||||
[Token(Token = "0x1700206E")]
|
||||
public Asn1OctetString UserKeyingMaterial
|
||||
{
|
||||
[Token(Token = "0x600CD9E")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.ukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700206F RID: 8303
|
||||
// (get) Token: 0x0600CD9F RID: 52639 RVA: 0x002EC178 File Offset: 0x002EA378
|
||||
[Token(Token = "0x1700206F")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CD9F")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002070 RID: 8304
|
||||
// (get) Token: 0x0600CDA0 RID: 52640 RVA: 0x002EC18C File Offset: 0x002EA38C
|
||||
[Token(Token = "0x17002070")]
|
||||
public Asn1Sequence RecipientEncryptedKeys
|
||||
{
|
||||
[Token(Token = "0x600CDA0")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.recipientEncryptedKeys;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDA1 RID: 52641 RVA: 0x002EC1A0 File Offset: 0x002EA3A0
|
||||
[Token(Token = "0x600CDA1")]
|
||||
[Address(RVA = "0x2FE6010", Offset = "0x2FE5010", VA = "0x182FE6010", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
OriginatorIdentifierOrKey originatorIdentifierOrKey = this.originator;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, originatorIdentifierOrKey);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derTaggedObject;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.ukm != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.ukm;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, asn1OctetString);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.keyEncryptionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = algorithmIdentifier;
|
||||
Asn1Sequence asn1Sequence = this.recipientEncryptedKeys;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = asn1Sequence;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400825D RID: 33373
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400825D")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400825E RID: 33374
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400825E")]
|
||||
private OriginatorIdentifierOrKey originator;
|
||||
|
||||
// Token: 0x0400825F RID: 33375
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400825F")]
|
||||
private Asn1OctetString ukm;
|
||||
|
||||
// Token: 0x04008260 RID: 33376
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008260")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008261 RID: 33377
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008261")]
|
||||
private Asn1Sequence recipientEncryptedKeys;
|
||||
}
|
||||
}
|
||||
+189
@@ -0,0 +1,189 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002010 RID: 8208
|
||||
[Token(Token = "0x2002010")]
|
||||
public class KeyTransRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDA2 RID: 52642 RVA: 0x002EC284 File Offset: 0x002EA484
|
||||
[Token(Token = "0x600CDA2")]
|
||||
[Address(RVA = "0x2FE7400", Offset = "0x2FE6400", VA = "0x182FE7400")]
|
||||
public KeyTransRecipientInfo(RecipientIdentifier rid, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1OctetString encryptedKey)
|
||||
{
|
||||
Asn1Object asn1Object = rid.ToAsn1Object();
|
||||
if (asn1Object == 0 || asn1Object == 0)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(2);
|
||||
}
|
||||
DerInteger derInteger2 = new DerInteger(2);
|
||||
this.version = derInteger2;
|
||||
this.rid = rid;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.encryptedKey = encryptedKey;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDA3 RID: 52643 RVA: 0x002EC2D8 File Offset: 0x002EA4D8
|
||||
[Token(Token = "0x600CDA3")]
|
||||
[Address(RVA = "0x2FE7280", Offset = "0x2FE6280", VA = "0x182FE7280")]
|
||||
public KeyTransRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser4;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
RecipientIdentifier recipientIdentifier;
|
||||
this.rid = recipientIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier;
|
||||
parser4 = seq.Parser;
|
||||
if (parser4 == 0 || parser4 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.encryptedKey = parser4;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDA4 RID: 52644 RVA: 0x002EC344 File Offset: 0x002EA544
|
||||
[Token(Token = "0x600CDA4")]
|
||||
[Address(RVA = "0x2FE6ED0", Offset = "0x2FE5ED0", VA = "0x182FE6ED0")]
|
||||
public static KeyTransRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDA4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyTransRecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyTransRecipientInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Illegal object in KeyTransRecipientInfo: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002071 RID: 8305
|
||||
// (get) Token: 0x0600CDA5 RID: 52645 RVA: 0x002EC394 File Offset: 0x002EA594
|
||||
[Token(Token = "0x17002071")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CDA5")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002072 RID: 8306
|
||||
// (get) Token: 0x0600CDA6 RID: 52646 RVA: 0x002EC3A8 File Offset: 0x002EA5A8
|
||||
[Token(Token = "0x17002072")]
|
||||
public RecipientIdentifier RecipientIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CDA6")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.rid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002073 RID: 8307
|
||||
// (get) Token: 0x0600CDA7 RID: 52647 RVA: 0x002EC3BC File Offset: 0x002EA5BC
|
||||
[Token(Token = "0x17002073")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CDA7")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002074 RID: 8308
|
||||
// (get) Token: 0x0600CDA8 RID: 52648 RVA: 0x002EC3D0 File Offset: 0x002EA5D0
|
||||
[Token(Token = "0x17002074")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600CDA8")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDA9 RID: 52649 RVA: 0x002EC3E4 File Offset: 0x002EA5E4
|
||||
[Token(Token = "0x600CDA9")]
|
||||
[Address(RVA = "0x2FE70C0", Offset = "0x2FE60C0", VA = "0x182FE70C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[4];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
RecipientIdentifier recipientIdentifier = this.rid;
|
||||
if (recipientIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = recipientIdentifier;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.keyEncryptionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[2] = algorithmIdentifier;
|
||||
Asn1OctetString asn1OctetString = this.encryptedKey;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[3] = asn1OctetString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008262 RID: 33378
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008262")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008263 RID: 33379
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008263")]
|
||||
private RecipientIdentifier rid;
|
||||
|
||||
// Token: 0x04008264 RID: 33380
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008264")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008265 RID: 33381
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008265")]
|
||||
private Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002011 RID: 8209
|
||||
[Token(Token = "0x2002011")]
|
||||
public class MetaData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDAA RID: 52650 RVA: 0x002EC454 File Offset: 0x002EA654
|
||||
[Token(Token = "0x600CDAA")]
|
||||
[Address(RVA = "0xC5DB60", Offset = "0xC5CB60", VA = "0x180C5DB60")]
|
||||
public MetaData(DerBoolean hashProtected, DerUtf8String fileName, DerIA5String mediaType, Attributes otherMetaData)
|
||||
{
|
||||
this.hashProtected = hashProtected;
|
||||
this.mediaType = mediaType;
|
||||
this.otherMetaData = 0;
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDAB RID: 52651 RVA: 0x002EC484 File Offset: 0x002EA684
|
||||
[Token(Token = "0x600CDAB")]
|
||||
[Address(RVA = "0x2FE7DD0", Offset = "0x2FE6DD0", VA = "0x182FE7DD0")]
|
||||
private MetaData(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerBoolean derBoolean;
|
||||
this.hashProtected = derBoolean;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (uint)1)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerUtf8String derUtf8String;
|
||||
this.fileName = derUtf8String;
|
||||
}
|
||||
}
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if ((uint)1 < asn1Encodable2)
|
||||
{
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
if (parser4 != 0 && parser4 != 0)
|
||||
{
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
DerIA5String derIA5String;
|
||||
this.mediaType = derIA5String;
|
||||
}
|
||||
}
|
||||
Asn1Encodable asn1Encodable3;
|
||||
if ((uint)1 < asn1Encodable3)
|
||||
{
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
Attributes attributes;
|
||||
if (parser6 != 0)
|
||||
{
|
||||
if (parser6 != 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
Asn1Set asn1Set;
|
||||
attributes.attributes = asn1Set;
|
||||
}
|
||||
this.otherMetaData = attributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDAC RID: 52652 RVA: 0x002EC534 File Offset: 0x002EA734
|
||||
[Token(Token = "0x600CDAC")]
|
||||
[Address(RVA = "0x2FE7AB0", Offset = "0x2FE6AB0", VA = "0x182FE7AB0")]
|
||||
public static MetaData GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new MetaData(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDAD RID: 52653 RVA: 0x002EC568 File Offset: 0x002EA768
|
||||
[Token(Token = "0x600CDAD")]
|
||||
[Address(RVA = "0x2FE7BB0", Offset = "0x2FE6BB0", VA = "0x182FE7BB0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerBoolean derBoolean = this.hashProtected;
|
||||
if (derBoolean != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derBoolean;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[3];
|
||||
DerUtf8String derUtf8String = this.fileName;
|
||||
if (derUtf8String != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derUtf8String;
|
||||
DerIA5String derIA5String = this.mediaType;
|
||||
if (derIA5String != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = derIA5String;
|
||||
Attributes attributes = this.otherMetaData;
|
||||
if (attributes != 0)
|
||||
{
|
||||
}
|
||||
array2[2] = attributes;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17002075 RID: 8309
|
||||
// (get) Token: 0x0600CDAE RID: 52654 RVA: 0x002EC5F4 File Offset: 0x002EA7F4
|
||||
[Token(Token = "0x17002075")]
|
||||
public virtual bool IsHashProtected
|
||||
{
|
||||
[Token(Token = "0x600CDAE")]
|
||||
[Address(RVA = "0x2FE80C0", Offset = "0x2FE70C0", VA = "0x182FE80C0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.hashProtected.IsTrue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002076 RID: 8310
|
||||
// (get) Token: 0x0600CDAF RID: 52655 RVA: 0x002EC614 File Offset: 0x002EA814
|
||||
[Token(Token = "0x17002076")]
|
||||
public virtual DerUtf8String FileName
|
||||
{
|
||||
[Token(Token = "0x600CDAF")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.fileName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002077 RID: 8311
|
||||
// (get) Token: 0x0600CDB0 RID: 52656 RVA: 0x002EC628 File Offset: 0x002EA828
|
||||
[Token(Token = "0x17002077")]
|
||||
public virtual DerIA5String MediaType
|
||||
{
|
||||
[Token(Token = "0x600CDB0")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.mediaType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002078 RID: 8312
|
||||
// (get) Token: 0x0600CDB1 RID: 52657 RVA: 0x002EC63C File Offset: 0x002EA83C
|
||||
[Token(Token = "0x17002078")]
|
||||
public virtual Attributes OtherMetaData
|
||||
{
|
||||
[Token(Token = "0x600CDB1")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.otherMetaData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04008266 RID: 33382
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008266")]
|
||||
private DerBoolean hashProtected;
|
||||
|
||||
// Token: 0x04008267 RID: 33383
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008267")]
|
||||
private DerUtf8String fileName;
|
||||
|
||||
// Token: 0x04008268 RID: 33384
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008268")]
|
||||
private DerIA5String mediaType;
|
||||
|
||||
// Token: 0x04008269 RID: 33385
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008269")]
|
||||
private Attributes otherMetaData;
|
||||
}
|
||||
}
|
||||
+232
@@ -0,0 +1,232 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002012 RID: 8210
|
||||
[Token(Token = "0x2002012")]
|
||||
public class OriginatorIdentifierOrKey : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CDB2 RID: 52658 RVA: 0x002EC650 File Offset: 0x002EA850
|
||||
[Token(Token = "0x600CDB2")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public OriginatorIdentifierOrKey(IssuerAndSerialNumber id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDB3 RID: 52659 RVA: 0x002EC66C File Offset: 0x002EA86C
|
||||
[Token(Token = "0x600CDB3")]
|
||||
[Address(RVA = "0x2FE8B70", Offset = "0x2FE7B70", VA = "0x182FE8B70")]
|
||||
[Obsolete]
|
||||
public OriginatorIdentifierOrKey(Asn1OctetString id)
|
||||
{
|
||||
SubjectKeyIdentifier subjectKeyIdentifier = new SubjectKeyIdentifier(id);
|
||||
}
|
||||
|
||||
// Token: 0x0600CDB4 RID: 52660 RVA: 0x002EC680 File Offset: 0x002EA880
|
||||
[Token(Token = "0x600CDB4")]
|
||||
[Address(RVA = "0x2FE8BE0", Offset = "0x2FE7BE0", VA = "0x182FE8BE0")]
|
||||
public OriginatorIdentifierOrKey(SubjectKeyIdentifier id)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, id);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDB5 RID: 52661 RVA: 0x002EC6A8 File Offset: 0x002EA8A8
|
||||
[Token(Token = "0x600CDB5")]
|
||||
[Address(RVA = "0x2FE8C60", Offset = "0x2FE7C60", VA = "0x182FE8C60")]
|
||||
public OriginatorIdentifierOrKey(OriginatorPublicKey id)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 1, id);
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDB6 RID: 52662 RVA: 0x002EC6D0 File Offset: 0x002EA8D0
|
||||
[Token(Token = "0x600CDB6")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
[Obsolete]
|
||||
public OriginatorIdentifierOrKey(Asn1Object id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDB7 RID: 52663 RVA: 0x002EC6EC File Offset: 0x002EA8EC
|
||||
[Token(Token = "0x600CDB7")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private OriginatorIdentifierOrKey(Asn1TaggedObject id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDB8 RID: 52664 RVA: 0x002EC708 File Offset: 0x002EA908
|
||||
[Token(Token = "0x600CDB8")]
|
||||
[Address(RVA = "0x2FE8AE0", Offset = "0x2FE7AE0", VA = "0x182FE8AE0")]
|
||||
public static OriginatorIdentifierOrKey GetInstance(Asn1TaggedObject o, bool explicitly)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDB8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorIdentifierOrKey BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorIdentifierOrKey::GetInstance(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1TaggedObject,System.Boolean)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:ArgumentException(var_0_1A, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Can't implicitly tag OriginatorIdentifierOrKey")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDB9 RID: 52665 RVA: 0x002EC730 File Offset: 0x002EA930
|
||||
[Token(Token = "0x600CDB9")]
|
||||
[Address(RVA = "0x2FE87B0", Offset = "0x2FE77B0", VA = "0x182FE87B0")]
|
||||
public static OriginatorIdentifierOrKey GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDB9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorIdentifierOrKey BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorIdentifierOrKey::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:ArgumentException(var_9_4A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid OriginatorIdentifierOrKey: "), ldloc:string(var_8))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002079 RID: 8313
|
||||
// (get) Token: 0x0600CDBA RID: 52666 RVA: 0x002EC788 File Offset: 0x002EA988
|
||||
[Token(Token = "0x17002079")]
|
||||
public Asn1Encodable ID
|
||||
{
|
||||
[Token(Token = "0x600CDBA")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700207A RID: 8314
|
||||
// (get) Token: 0x0600CDBB RID: 52667 RVA: 0x002EC79C File Offset: 0x002EA99C
|
||||
[Token(Token = "0x1700207A")]
|
||||
public IssuerAndSerialNumber IssuerAndSerialNumber
|
||||
{
|
||||
[Token(Token = "0x600CDBB")]
|
||||
[Address(RVA = "0x2FE8CE0", Offset = "0x2FE7CE0", VA = "0x182FE8CE0")]
|
||||
get
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0 || asn1Encodable == 0 || asn1Encodable == 0 || asn1Encodable != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700207B RID: 8315
|
||||
// (get) Token: 0x0600CDBC RID: 52668 RVA: 0x002EC7C8 File Offset: 0x002EA9C8
|
||||
[Token(Token = "0x1700207B")]
|
||||
public SubjectKeyIdentifier SubjectKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CDBC")]
|
||||
[Address(RVA = "0x2FE8F30", Offset = "0x2FE7F30", VA = "0x182FE8F30")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
do
|
||||
{
|
||||
asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0 || asn1Encodable == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
while (asn1Encodable == 0 || asn1Encodable == 0 || (asn1Encodable != 0 && asn1Encodable == 0));
|
||||
SubjectKeyIdentifier subjectKeyIdentifier;
|
||||
return subjectKeyIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700207C RID: 8316
|
||||
// (get) Token: 0x0600CDBD RID: 52669 RVA: 0x002EC808 File Offset: 0x002EAA08
|
||||
[Token(Token = "0x1700207C")]
|
||||
[Obsolete]
|
||||
public OriginatorPublicKey OriginatorKey
|
||||
{
|
||||
[Token(Token = "0x600CDBD")]
|
||||
[Address(RVA = "0x2FE8DB0", Offset = "0x2FE7DB0", VA = "0x182FE8DB0")]
|
||||
get
|
||||
{
|
||||
return this.OriginatorPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700207D RID: 8317
|
||||
// (get) Token: 0x0600CDBE RID: 52670 RVA: 0x002EC81C File Offset: 0x002EAA1C
|
||||
[Token(Token = "0x1700207D")]
|
||||
public OriginatorPublicKey OriginatorPublicKey
|
||||
{
|
||||
[Token(Token = "0x600CDBE")]
|
||||
[Address(RVA = "0x2FE8DC0", Offset = "0x2FE7DC0", VA = "0x182FE8DC0")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
do
|
||||
{
|
||||
asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0 || asn1Encodable == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
while (asn1Encodable == 0 || asn1Encodable == 0 || (asn1Encodable != 0 && asn1Encodable == 0));
|
||||
Asn1Sequence asn1Sequence;
|
||||
return OriginatorPublicKey.GetInstance(asn1Sequence);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDBF RID: 52671 RVA: 0x002EC85C File Offset: 0x002EAA5C
|
||||
[Token(Token = "0x600CDBF")]
|
||||
[Address(RVA = "0x415960", Offset = "0x414960", VA = "0x180415960", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.id.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x0400826A RID: 33386
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400826A")]
|
||||
private Asn1Encodable id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002013 RID: 8211
|
||||
[Token(Token = "0x2002013")]
|
||||
public class OriginatorInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDC0 RID: 52672 RVA: 0x002EC87C File Offset: 0x002EAA7C
|
||||
[Token(Token = "0x600CDC0")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public OriginatorInfo(Asn1Set certs, Asn1Set crls)
|
||||
{
|
||||
this.certs = certs;
|
||||
this.crls = crls;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDC1 RID: 52673 RVA: 0x002EC8A0 File Offset: 0x002EAAA0
|
||||
[Token(Token = "0x600CDC1")]
|
||||
[Address(RVA = "0x2FE94B0", Offset = "0x2FE84B0", VA = "0x182FE94B0")]
|
||||
public OriginatorInfo(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDC1)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_69:
|
||||
stloc:ArgumentException(var_11_73, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("OriginatorInfo too big")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDC2 RID: 52674 RVA: 0x002EC924 File Offset: 0x002EAB24
|
||||
[Token(Token = "0x600CDC2")]
|
||||
[Address(RVA = "0x2FE9280", Offset = "0x2FE8280", VA = "0x182FE9280")]
|
||||
public static OriginatorInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return OriginatorInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CDC3 RID: 52675 RVA: 0x002EC940 File Offset: 0x002EAB40
|
||||
[Token(Token = "0x600CDC3")]
|
||||
[Address(RVA = "0x2FE9090", Offset = "0x2FE8090", VA = "0x182FE9090")]
|
||||
public static OriginatorInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDC3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid OriginatorInfo: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x1700207E RID: 8318
|
||||
// (get) Token: 0x0600CDC4 RID: 52676 RVA: 0x002EC990 File Offset: 0x002EAB90
|
||||
[Token(Token = "0x1700207E")]
|
||||
public Asn1Set Certificates
|
||||
{
|
||||
[Token(Token = "0x600CDC4")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.certs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700207F RID: 8319
|
||||
// (get) Token: 0x0600CDC5 RID: 52677 RVA: 0x002EC9A4 File Offset: 0x002EABA4
|
||||
[Token(Token = "0x1700207F")]
|
||||
public Asn1Set Crls
|
||||
{
|
||||
[Token(Token = "0x600CDC5")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.crls;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDC6 RID: 52678 RVA: 0x002EC9B8 File Offset: 0x002EABB8
|
||||
[Token(Token = "0x600CDC6")]
|
||||
[Address(RVA = "0x2FE92A0", Offset = "0x2FE82A0", VA = "0x182FE92A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.certs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.certs;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.crls != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.crls;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400826B RID: 33387
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400826B")]
|
||||
private Asn1Set certs;
|
||||
|
||||
// Token: 0x0400826C RID: 33388
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400826C")]
|
||||
private Asn1Set crls;
|
||||
}
|
||||
}
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002014 RID: 8212
|
||||
[Token(Token = "0x2002014")]
|
||||
public class OriginatorPublicKey : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDC7 RID: 52679 RVA: 0x002ECA50 File Offset: 0x002EAC50
|
||||
[Token(Token = "0x600CDC7")]
|
||||
[Address(RVA = "0x2FE9BA0", Offset = "0x2FE8BA0", VA = "0x182FE9BA0")]
|
||||
public OriginatorPublicKey(AlgorithmIdentifier algorithm, byte[] publicKey)
|
||||
{
|
||||
this.mAlgorithm = algorithm;
|
||||
DerBitString derBitString = new DerBitString(publicKey);
|
||||
this.mPublicKey = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDC8 RID: 52680 RVA: 0x002ECA78 File Offset: 0x002EAC78
|
||||
[Token(Token = "0x600CDC8")]
|
||||
[Address(RVA = "0x2FE9AE0", Offset = "0x2FE8AE0", VA = "0x182FE9AE0")]
|
||||
[Obsolete]
|
||||
public OriginatorPublicKey(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.mAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.mPublicKey = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDC9 RID: 52681 RVA: 0x002ECAB0 File Offset: 0x002EACB0
|
||||
[Token(Token = "0x600CDC9")]
|
||||
[Address(RVA = "0x2FE99B0", Offset = "0x2FE89B0", VA = "0x182FE99B0")]
|
||||
public static OriginatorPublicKey GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return OriginatorPublicKey.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CDCA RID: 52682 RVA: 0x002ECACC File Offset: 0x002EACCC
|
||||
[Token(Token = "0x600CDCA")]
|
||||
[Address(RVA = "0x2FE9770", Offset = "0x2FE8770", VA = "0x182FE9770")]
|
||||
public static OriginatorPublicKey GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDCA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorPublicKey BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OriginatorPublicKey::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4B:
|
||||
stloc:string(var_10_51, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_64, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid OriginatorPublicKey: "), ldloc:string(var_10_51))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002080 RID: 8320
|
||||
// (get) Token: 0x0600CDCB RID: 52683 RVA: 0x002ECB40 File Offset: 0x002EAD40
|
||||
[Token(Token = "0x17002080")]
|
||||
public AlgorithmIdentifier Algorithm
|
||||
{
|
||||
[Token(Token = "0x600CDCB")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.mAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002081 RID: 8321
|
||||
// (get) Token: 0x0600CDCC RID: 52684 RVA: 0x002ECB54 File Offset: 0x002EAD54
|
||||
[Token(Token = "0x17002081")]
|
||||
public DerBitString PublicKey
|
||||
{
|
||||
[Token(Token = "0x600CDCC")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.mPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDCD RID: 52685 RVA: 0x002ECB68 File Offset: 0x002EAD68
|
||||
[Token(Token = "0x600CDCD")]
|
||||
[Address(RVA = "0x2FE99D0", Offset = "0x2FE89D0", VA = "0x182FE99D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.mAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = algorithmIdentifier;
|
||||
DerBitString derBitString = this.mPublicKey;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derBitString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400826D RID: 33389
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400826D")]
|
||||
private readonly AlgorithmIdentifier mAlgorithm;
|
||||
|
||||
// Token: 0x0400826E RID: 33390
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400826E")]
|
||||
private readonly DerBitString mPublicKey;
|
||||
}
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002015 RID: 8213
|
||||
[Token(Token = "0x2002015")]
|
||||
public class OtherKeyAttribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDCE RID: 52686 RVA: 0x002ECBB0 File Offset: 0x002EADB0
|
||||
[Token(Token = "0x600CDCE")]
|
||||
[Address(RVA = "0x2FE9C20", Offset = "0x2FE8C20", VA = "0x182FE9C20")]
|
||||
public static OtherKeyAttribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDCE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OtherKeyAttribute BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OtherKeyAttribute::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_7_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_8_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_7_2F)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDCF RID: 52687 RVA: 0x002ECC08 File Offset: 0x002EAE08
|
||||
[Token(Token = "0x600CDCF")]
|
||||
[Address(RVA = "0x2FE9FD0", Offset = "0x2FE8FD0", VA = "0x182FE9FD0")]
|
||||
public OtherKeyAttribute(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
parser = seq.Parser;
|
||||
}
|
||||
while (parser != 0 && parser == 0);
|
||||
this.keyAttrId = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.keyAttr = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDD0 RID: 52688 RVA: 0x002ECC48 File Offset: 0x002EAE48
|
||||
[Token(Token = "0x600CDD0")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public OtherKeyAttribute(DerObjectIdentifier keyAttrId, Asn1Encodable keyAttr)
|
||||
{
|
||||
this.keyAttrId = keyAttrId;
|
||||
this.keyAttr = keyAttr;
|
||||
}
|
||||
|
||||
// Token: 0x17002082 RID: 8322
|
||||
// (get) Token: 0x0600CDD1 RID: 52689 RVA: 0x002ECC6C File Offset: 0x002EAE6C
|
||||
[Token(Token = "0x17002082")]
|
||||
public DerObjectIdentifier KeyAttrId
|
||||
{
|
||||
[Token(Token = "0x600CDD1")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.keyAttrId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002083 RID: 8323
|
||||
// (get) Token: 0x0600CDD2 RID: 52690 RVA: 0x002ECC80 File Offset: 0x002EAE80
|
||||
[Token(Token = "0x17002083")]
|
||||
public Asn1Encodable KeyAttr
|
||||
{
|
||||
[Token(Token = "0x600CDD2")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.keyAttr;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDD3 RID: 52691 RVA: 0x002ECC94 File Offset: 0x002EAE94
|
||||
[Token(Token = "0x600CDD3")]
|
||||
[Address(RVA = "0x2FE9EC0", Offset = "0x2FE8EC0", VA = "0x182FE9EC0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.keyAttrId;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Encodable asn1Encodable = this.keyAttr;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Encodable;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400826F RID: 33391
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400826F")]
|
||||
private DerObjectIdentifier keyAttrId;
|
||||
|
||||
// Token: 0x04008270 RID: 33392
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008270")]
|
||||
private Asn1Encodable keyAttr;
|
||||
}
|
||||
}
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002016 RID: 8214
|
||||
[Token(Token = "0x2002016")]
|
||||
public class OtherRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDD4 RID: 52692 RVA: 0x002ECCDC File Offset: 0x002EAEDC
|
||||
[Token(Token = "0x600CDD4")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public OtherRecipientInfo(DerObjectIdentifier oriType, Asn1Encodable oriValue)
|
||||
{
|
||||
this.oriType = oriType;
|
||||
this.oriValue = oriValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDD5 RID: 52693 RVA: 0x002ECD00 File Offset: 0x002EAF00
|
||||
[Token(Token = "0x600CDD5")]
|
||||
[Address(RVA = "0x2FEA470", Offset = "0x2FE9470", VA = "0x182FEA470")]
|
||||
[Obsolete]
|
||||
public OtherRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.oriType = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.oriValue = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDD6 RID: 52694 RVA: 0x002ECD38 File Offset: 0x002EAF38
|
||||
[Token(Token = "0x600CDD6")]
|
||||
[Address(RVA = "0x2FEA200", Offset = "0x2FE9200", VA = "0x182FEA200")]
|
||||
public static OtherRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(obj, explicitly);
|
||||
if (instance != 0)
|
||||
{
|
||||
if (instance == 0)
|
||||
{
|
||||
Asn1Sequence instance2 = Asn1Sequence.GetInstance(instance);
|
||||
Asn1SequenceParser parser = instance2.Parser;
|
||||
OtherRecipientInfo otherRecipientInfo;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
otherRecipientInfo.oriType = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = instance2.Parser;
|
||||
otherRecipientInfo.oriValue = parser2;
|
||||
return otherRecipientInfo;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CDD7 RID: 52695 RVA: 0x002ECD88 File Offset: 0x002EAF88
|
||||
[Token(Token = "0x600CDD7")]
|
||||
[Address(RVA = "0x2FEA0B0", Offset = "0x2FE90B0", VA = "0x182FEA0B0")]
|
||||
public static OtherRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
if (obj != 0 && obj == 0)
|
||||
{
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
OtherRecipientInfo otherRecipientInfo;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
otherRecipientInfo.oriType = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
otherRecipientInfo.oriValue = parser2;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17002084 RID: 8324
|
||||
// (get) Token: 0x0600CDD8 RID: 52696 RVA: 0x002ECDD0 File Offset: 0x002EAFD0
|
||||
[Token(Token = "0x17002084")]
|
||||
public virtual DerObjectIdentifier OriType
|
||||
{
|
||||
[Token(Token = "0x600CDD8")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.oriType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002085 RID: 8325
|
||||
// (get) Token: 0x0600CDD9 RID: 52697 RVA: 0x002ECDE4 File Offset: 0x002EAFE4
|
||||
[Token(Token = "0x17002085")]
|
||||
public virtual Asn1Encodable OriValue
|
||||
{
|
||||
[Token(Token = "0x600CDD9")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.oriValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDDA RID: 52698 RVA: 0x002ECDF8 File Offset: 0x002EAFF8
|
||||
[Token(Token = "0x600CDDA")]
|
||||
[Address(RVA = "0x2FEA360", Offset = "0x2FE9360", VA = "0x182FEA360", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.oriType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Encodable asn1Encodable = this.oriValue;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Encodable;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008271 RID: 33393
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008271")]
|
||||
private readonly DerObjectIdentifier oriType;
|
||||
|
||||
// Token: 0x04008272 RID: 33394
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008272")]
|
||||
private readonly Asn1Encodable oriValue;
|
||||
}
|
||||
}
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002017 RID: 8215
|
||||
[Token(Token = "0x2002017")]
|
||||
public class OtherRevocationInfoFormat : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDDB RID: 52699 RVA: 0x002ECE40 File Offset: 0x002EB040
|
||||
[Token(Token = "0x600CDDB")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public OtherRevocationInfoFormat(DerObjectIdentifier otherRevInfoFormat, Asn1Encodable otherRevInfo)
|
||||
{
|
||||
this.otherRevInfoFormat = otherRevInfoFormat;
|
||||
this.otherRevInfo = otherRevInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDDC RID: 52700 RVA: 0x002ECE64 File Offset: 0x002EB064
|
||||
[Token(Token = "0x600CDDC")]
|
||||
[Address(RVA = "0x2FEA7F0", Offset = "0x2FE97F0", VA = "0x182FEA7F0")]
|
||||
private OtherRevocationInfoFormat(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.otherRevInfoFormat = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.otherRevInfo = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDDD RID: 52701 RVA: 0x002ECE9C File Offset: 0x002EB09C
|
||||
[Token(Token = "0x600CDDD")]
|
||||
[Address(RVA = "0x2FEA530", Offset = "0x2FE9530", VA = "0x182FEA530")]
|
||||
public static OtherRevocationInfoFormat GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return OtherRevocationInfoFormat.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CDDE RID: 52702 RVA: 0x002ECEB8 File Offset: 0x002EB0B8
|
||||
[Token(Token = "0x600CDDE")]
|
||||
[Address(RVA = "0x2FEA550", Offset = "0x2FE9550", VA = "0x182FEA550")]
|
||||
public static OtherRevocationInfoFormat GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
OtherRevocationInfoFormat otherRevocationInfoFormat;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
otherRevocationInfoFormat.otherRevInfoFormat = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
otherRevocationInfoFormat.otherRevInfo = parser2;
|
||||
return otherRevocationInfoFormat;
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17002086 RID: 8326
|
||||
// (get) Token: 0x0600CDDF RID: 52703 RVA: 0x002ECF08 File Offset: 0x002EB108
|
||||
[Token(Token = "0x17002086")]
|
||||
public virtual DerObjectIdentifier InfoFormat
|
||||
{
|
||||
[Token(Token = "0x600CDDF")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.otherRevInfoFormat;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002087 RID: 8327
|
||||
// (get) Token: 0x0600CDE0 RID: 52704 RVA: 0x002ECF1C File Offset: 0x002EB11C
|
||||
[Token(Token = "0x17002087")]
|
||||
public virtual Asn1Encodable Info
|
||||
{
|
||||
[Token(Token = "0x600CDE0")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.otherRevInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDE1 RID: 52705 RVA: 0x002ECF30 File Offset: 0x002EB130
|
||||
[Token(Token = "0x600CDE1")]
|
||||
[Address(RVA = "0x2FEA6E0", Offset = "0x2FE96E0", VA = "0x182FEA6E0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.otherRevInfoFormat;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Encodable asn1Encodable = this.otherRevInfo;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Encodable;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008273 RID: 33395
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008273")]
|
||||
private readonly DerObjectIdentifier otherRevInfoFormat;
|
||||
|
||||
// Token: 0x04008274 RID: 33396
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008274")]
|
||||
private readonly Asn1Encodable otherRevInfo;
|
||||
}
|
||||
}
|
||||
+243
@@ -0,0 +1,243 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002018 RID: 8216
|
||||
[Token(Token = "0x2002018")]
|
||||
public class PasswordRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDE2 RID: 52706 RVA: 0x002ECF78 File Offset: 0x002EB178
|
||||
[Token(Token = "0x600CDE2")]
|
||||
[Address(RVA = "0x2FEB030", Offset = "0x2FEA030", VA = "0x182FEB030")]
|
||||
public PasswordRecipientInfo(AlgorithmIdentifier keyEncryptionAlgorithm, Asn1OctetString encryptedKey)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.encryptedKey = encryptedKey;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDE3 RID: 52707 RVA: 0x002ECFAC File Offset: 0x002EB1AC
|
||||
[Token(Token = "0x600CDE3")]
|
||||
[Address(RVA = "0x2FEB0B0", Offset = "0x2FEA0B0", VA = "0x182FEB0B0")]
|
||||
public PasswordRecipientInfo(AlgorithmIdentifier keyDerivationAlgorithm, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1OctetString encryptedKey)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.encryptedKey = encryptedKey;
|
||||
this.keyDerivationAlgorithm = keyDerivationAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDE4 RID: 52708 RVA: 0x002ECFE4 File Offset: 0x002EB1E4
|
||||
[Token(Token = "0x600CDE4")]
|
||||
[Address(RVA = "0x2FEAD50", Offset = "0x2FE9D50", VA = "0x182FEAD50")]
|
||||
public PasswordRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser7;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
if (parser3 == 0)
|
||||
{
|
||||
}
|
||||
if (parser3 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.keyDerivationAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier2;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier2;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (parser5 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier3;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier3;
|
||||
parser7 = seq.Parser;
|
||||
if (parser7 == 0 || parser7 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.encryptedKey = parser7;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDE5 RID: 52709 RVA: 0x002ED09C File Offset: 0x002EB29C
|
||||
[Token(Token = "0x600CDE5")]
|
||||
[Address(RVA = "0x2FEA8B0", Offset = "0x2FE98B0", VA = "0x182FEA8B0")]
|
||||
public static PasswordRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return PasswordRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CDE6 RID: 52710 RVA: 0x002ED0B8 File Offset: 0x002EB2B8
|
||||
[Token(Token = "0x600CDE6")]
|
||||
[Address(RVA = "0x2FEA8D0", Offset = "0x2FE98D0", VA = "0x182FEA8D0")]
|
||||
public static PasswordRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDE6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.PasswordRecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.PasswordRecipientInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid PasswordRecipientInfo: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002088 RID: 8328
|
||||
// (get) Token: 0x0600CDE7 RID: 52711 RVA: 0x002ED108 File Offset: 0x002EB308
|
||||
[Token(Token = "0x17002088")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CDE7")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002089 RID: 8329
|
||||
// (get) Token: 0x0600CDE8 RID: 52712 RVA: 0x002ED11C File Offset: 0x002EB31C
|
||||
[Token(Token = "0x17002089")]
|
||||
public AlgorithmIdentifier KeyDerivationAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CDE8")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.keyDerivationAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700208A RID: 8330
|
||||
// (get) Token: 0x0600CDE9 RID: 52713 RVA: 0x002ED130 File Offset: 0x002EB330
|
||||
[Token(Token = "0x1700208A")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CDE9")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700208B RID: 8331
|
||||
// (get) Token: 0x0600CDEA RID: 52714 RVA: 0x002ED144 File Offset: 0x002EB344
|
||||
[Token(Token = "0x1700208B")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600CDEA")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDEB RID: 52715 RVA: 0x002ED158 File Offset: 0x002EB358
|
||||
[Token(Token = "0x600CDEB")]
|
||||
[Address(RVA = "0x2FEAAC0", Offset = "0x2FE9AC0", VA = "0x182FEAAC0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.keyDerivationAlgorithm != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.keyDerivationAlgorithm;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, algorithmIdentifier);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.keyEncryptionAlgorithm;
|
||||
if (algorithmIdentifier2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = algorithmIdentifier2;
|
||||
Asn1OctetString asn1OctetString = this.encryptedKey;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008275 RID: 33397
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008275")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x04008276 RID: 33398
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008276")]
|
||||
private readonly AlgorithmIdentifier keyDerivationAlgorithm;
|
||||
|
||||
// Token: 0x04008277 RID: 33399
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008277")]
|
||||
private readonly AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008278 RID: 33400
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008278")]
|
||||
private readonly Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002019 RID: 8217
|
||||
[Token(Token = "0x2002019")]
|
||||
public class RecipientEncryptedKey : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CDEC RID: 52716 RVA: 0x002ED214 File Offset: 0x002EB414
|
||||
[Token(Token = "0x600CDEC")]
|
||||
[Address(RVA = "0x2FF0C40", Offset = "0x2FEFC40", VA = "0x182FF0C40")]
|
||||
private RecipientEncryptedKey(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
KeyAgreeRecipientIdentifier keyAgreeRecipientIdentifier;
|
||||
this.identifier = keyAgreeRecipientIdentifier;
|
||||
parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (parser2 != 0)
|
||||
{
|
||||
goto Block_1;
|
||||
}
|
||||
}
|
||||
this.encryptedKey = parser2;
|
||||
return;
|
||||
Block_1:
|
||||
this.encryptedKey = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDED RID: 52717 RVA: 0x002ED25C File Offset: 0x002EB45C
|
||||
[Token(Token = "0x600CDED")]
|
||||
[Address(RVA = "0x2FF0B10", Offset = "0x2FEFB10", VA = "0x182FF0B10")]
|
||||
public static RecipientEncryptedKey GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return RecipientEncryptedKey.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CDEE RID: 52718 RVA: 0x002ED278 File Offset: 0x002EB478
|
||||
[Token(Token = "0x600CDEE")]
|
||||
[Address(RVA = "0x2FF0860", Offset = "0x2FEF860", VA = "0x182FF0860")]
|
||||
public static RecipientEncryptedKey GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDEE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientEncryptedKey BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientEncryptedKey::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_31:
|
||||
stloc:string(var_8_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid RecipientEncryptedKey: "), ldloc:string(var_8_37)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDEF RID: 52719 RVA: 0x002ED2D8 File Offset: 0x002EB4D8
|
||||
[Token(Token = "0x600CDEF")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public RecipientEncryptedKey(KeyAgreeRecipientIdentifier id, Asn1OctetString encryptedKey)
|
||||
{
|
||||
this.identifier = id;
|
||||
this.encryptedKey = encryptedKey;
|
||||
}
|
||||
|
||||
// Token: 0x1700208C RID: 8332
|
||||
// (get) Token: 0x0600CDF0 RID: 52720 RVA: 0x002ED2FC File Offset: 0x002EB4FC
|
||||
[Token(Token = "0x1700208C")]
|
||||
public KeyAgreeRecipientIdentifier Identifier
|
||||
{
|
||||
[Token(Token = "0x600CDF0")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.identifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700208D RID: 8333
|
||||
// (get) Token: 0x0600CDF1 RID: 52721 RVA: 0x002ED310 File Offset: 0x002EB510
|
||||
[Token(Token = "0x1700208D")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600CDF1")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDF2 RID: 52722 RVA: 0x002ED324 File Offset: 0x002EB524
|
||||
[Token(Token = "0x600CDF2")]
|
||||
[Address(RVA = "0x2FF0B30", Offset = "0x2FEFB30", VA = "0x182FF0B30", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
KeyAgreeRecipientIdentifier keyAgreeRecipientIdentifier = this.identifier;
|
||||
if (keyAgreeRecipientIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = keyAgreeRecipientIdentifier;
|
||||
Asn1OctetString asn1OctetString = this.encryptedKey;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1OctetString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008279 RID: 33401
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008279")]
|
||||
private readonly KeyAgreeRecipientIdentifier identifier;
|
||||
|
||||
// Token: 0x0400827A RID: 33402
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400827A")]
|
||||
private readonly Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200201A RID: 8218
|
||||
[Token(Token = "0x200201A")]
|
||||
public class RecipientIdentifier : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CDF3 RID: 52723 RVA: 0x002ED36C File Offset: 0x002EB56C
|
||||
[Token(Token = "0x600CDF3")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public RecipientIdentifier(IssuerAndSerialNumber id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDF4 RID: 52724 RVA: 0x002ED388 File Offset: 0x002EB588
|
||||
[Token(Token = "0x600CDF4")]
|
||||
[Address(RVA = "0x2FF1010", Offset = "0x2FF0010", VA = "0x182FF1010")]
|
||||
public RecipientIdentifier(Asn1OctetString id)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, id);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDF5 RID: 52725 RVA: 0x002ED3B0 File Offset: 0x002EB5B0
|
||||
[Token(Token = "0x600CDF5")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public RecipientIdentifier(Asn1Object id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDF6 RID: 52726 RVA: 0x002ED3CC File Offset: 0x002EB5CC
|
||||
[Token(Token = "0x600CDF6")]
|
||||
[Address(RVA = "0x2FF0D30", Offset = "0x2FEFD30", VA = "0x182FF0D30")]
|
||||
public static RecipientIdentifier GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDF6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientIdentifier::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:ArgumentException(var_10_4A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Illegal object in RecipientIdentifier: "), ldloc:string(var_9))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x1700208E RID: 8334
|
||||
// (get) Token: 0x0600CDF7 RID: 52727 RVA: 0x002ED424 File Offset: 0x002EB624
|
||||
[Token(Token = "0x1700208E")]
|
||||
public bool IsTagged
|
||||
{
|
||||
[Token(Token = "0x600CDF7")]
|
||||
[Address(RVA = "0x2FF1170", Offset = "0x2FF0170", VA = "0x182FF1170")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700208F RID: 8335
|
||||
// (get) Token: 0x0600CDF8 RID: 52728 RVA: 0x002ED450 File Offset: 0x002EB650
|
||||
[Token(Token = "0x1700208F")]
|
||||
public Asn1Encodable ID
|
||||
{
|
||||
[Token(Token = "0x600CDF8")]
|
||||
[Address(RVA = "0x2FF1090", Offset = "0x2FF0090", VA = "0x182FF1090")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CDF8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientIdentifier::get_ID()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1B:
|
||||
stloc:IssuerAndSerialNumber(var_4_21, call:IssuerAndSerialNumber(IssuerAndSerialNumber::GetInstance, ldloc:Asn1Encodable[exp:object](var_0_06)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CDF9 RID: 52729 RVA: 0x002ED480 File Offset: 0x002EB680
|
||||
[Token(Token = "0x600CDF9")]
|
||||
[Address(RVA = "0x415960", Offset = "0x414960", VA = "0x180415960", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.id.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x0400827B RID: 33403
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400827B")]
|
||||
private Asn1Encodable id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,223 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200201B RID: 8219
|
||||
[Token(Token = "0x200201B")]
|
||||
public class RecipientInfo : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CDFA RID: 52730 RVA: 0x002ED4A0 File Offset: 0x002EB6A0
|
||||
[Token(Token = "0x600CDFA")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public RecipientInfo(KeyTransRecipientInfo info)
|
||||
{
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDFB RID: 52731 RVA: 0x002ED4BC File Offset: 0x002EB6BC
|
||||
[Token(Token = "0x600CDFB")]
|
||||
[Address(RVA = "0x2FF15E0", Offset = "0x2FF05E0", VA = "0x182FF15E0")]
|
||||
public RecipientInfo(KeyAgreeRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 1, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDFC RID: 52732 RVA: 0x002ED4E4 File Offset: 0x002EB6E4
|
||||
[Token(Token = "0x600CDFC")]
|
||||
[Address(RVA = "0x2FF1560", Offset = "0x2FF0560", VA = "0x182FF1560")]
|
||||
public RecipientInfo(KekRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 2, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDFD RID: 52733 RVA: 0x002ED50C File Offset: 0x002EB70C
|
||||
[Token(Token = "0x600CDFD")]
|
||||
[Address(RVA = "0x2FF1460", Offset = "0x2FF0460", VA = "0x182FF1460")]
|
||||
public RecipientInfo(PasswordRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 3, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDFE RID: 52734 RVA: 0x002ED534 File Offset: 0x002EB734
|
||||
[Token(Token = "0x600CDFE")]
|
||||
[Address(RVA = "0x2FF14E0", Offset = "0x2FF04E0", VA = "0x182FF14E0")]
|
||||
public RecipientInfo(OtherRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 4, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CDFF RID: 52735 RVA: 0x002ED55C File Offset: 0x002EB75C
|
||||
[Token(Token = "0x600CDFF")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public RecipientInfo(Asn1Object info)
|
||||
{
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE00 RID: 52736 RVA: 0x002ED578 File Offset: 0x002EB778
|
||||
[Token(Token = "0x600CE00")]
|
||||
[Address(RVA = "0x2FF11F0", Offset = "0x2FF01F0", VA = "0x182FF11F0")]
|
||||
public static RecipientInfo GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE00)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_23:
|
||||
stloc:ArgumentException(var_7_34, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002090 RID: 8336
|
||||
// (get) Token: 0x0600CE01 RID: 52737 RVA: 0x002ED5BC File Offset: 0x002EB7BC
|
||||
[Token(Token = "0x17002090")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CE01")]
|
||||
[Address(RVA = "0x2FF19B0", Offset = "0x2FF09B0", VA = "0x182FF19B0")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
for (;;)
|
||||
{
|
||||
asn1Encodable = this.info;
|
||||
if (asn1Encodable == 0 || asn1Encodable == 0)
|
||||
{
|
||||
goto IL_55;
|
||||
}
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
goto IL_4C;
|
||||
}
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
goto IL_43;
|
||||
}
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
goto IL_36;
|
||||
}
|
||||
if (asn1Encodable == (ulong)1L)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
return derInteger;
|
||||
IL_36:
|
||||
Asn1Sequence asn1Sequence;
|
||||
return PasswordRecipientInfo.GetInstance(asn1Sequence).version;
|
||||
IL_43:
|
||||
Asn1Sequence asn1Sequence2;
|
||||
KekRecipientInfo instance = KekRecipientInfo.GetInstance(asn1Sequence2);
|
||||
IL_4C:
|
||||
Asn1Sequence asn1Sequence3;
|
||||
KeyAgreeRecipientInfo instance2 = KeyAgreeRecipientInfo.GetInstance(asn1Sequence3);
|
||||
IL_55:
|
||||
KeyTransRecipientInfo instance3 = KeyTransRecipientInfo.GetInstance(asn1Encodable);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002091 RID: 8337
|
||||
// (get) Token: 0x0600CE02 RID: 52738 RVA: 0x002ED62C File Offset: 0x002EB82C
|
||||
[Token(Token = "0x17002091")]
|
||||
public bool IsTagged
|
||||
{
|
||||
[Token(Token = "0x600CE02")]
|
||||
[Address(RVA = "0x2FF1930", Offset = "0x2FF0930", VA = "0x182FF1930")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.info;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002092 RID: 8338
|
||||
// (get) Token: 0x0600CE03 RID: 52739 RVA: 0x002ED658 File Offset: 0x002EB858
|
||||
[Token(Token = "0x17002092")]
|
||||
public Asn1Encodable Info
|
||||
{
|
||||
[Token(Token = "0x600CE03")]
|
||||
[Address(RVA = "0x2FF1660", Offset = "0x2FF0660", VA = "0x182FF1660")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE03)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientInfo::get_Info()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_8E:
|
||||
stloc:InvalidOperationException(var_18_98, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("unknown tag")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE04 RID: 52740 RVA: 0x002ED700 File Offset: 0x002EB900
|
||||
[Token(Token = "0x600CE04")]
|
||||
[Address(RVA = "0x2FF1430", Offset = "0x2FF0430", VA = "0x182FF1430")]
|
||||
private KekRecipientInfo GetKekInfo(Asn1TaggedObject o)
|
||||
{
|
||||
bool explicitly = o.explicitly;
|
||||
return KekRecipientInfo.GetInstance(Asn1Sequence.GetInstance(o, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CE05 RID: 52741 RVA: 0x002ED728 File Offset: 0x002EB928
|
||||
[Token(Token = "0x600CE05")]
|
||||
[Address(RVA = "0x415960", Offset = "0x414960", VA = "0x180415960", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.info.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x0400827C RID: 33404
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400827C")]
|
||||
internal Asn1Encodable info;
|
||||
}
|
||||
}
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200201C RID: 8220
|
||||
[Token(Token = "0x200201C")]
|
||||
public class RecipientKeyIdentifier : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE06 RID: 52742 RVA: 0x002ED748 File Offset: 0x002EB948
|
||||
[Token(Token = "0x600CE06")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
public RecipientKeyIdentifier(Asn1OctetString subjectKeyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
|
||||
{
|
||||
this.subjectKeyIdentifier = subjectKeyIdentifier;
|
||||
this.date = date;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE07 RID: 52743 RVA: 0x002ED770 File Offset: 0x002EB970
|
||||
[Token(Token = "0x600CE07")]
|
||||
[Address(RVA = "0x2FF1F30", Offset = "0x2FF0F30", VA = "0x182FF1F30")]
|
||||
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(subjectKeyIdentifier);
|
||||
int num = 0;
|
||||
this.subjectKeyIdentifier = derOctetString;
|
||||
this.date = num;
|
||||
this.other = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE08 RID: 52744 RVA: 0x002ED7A4 File Offset: 0x002EB9A4
|
||||
[Token(Token = "0x600CE08")]
|
||||
[Address(RVA = "0x2FF1FB0", Offset = "0x2FF0FB0", VA = "0x182FF1FB0")]
|
||||
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(subjectKeyIdentifier);
|
||||
this.subjectKeyIdentifier = derOctetString;
|
||||
this.date = date;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE09 RID: 52745 RVA: 0x002ED7D4 File Offset: 0x002EB9D4
|
||||
[Token(Token = "0x600CE09")]
|
||||
[Address(RVA = "0x2FF2040", Offset = "0x2FF1040", VA = "0x182FF2040")]
|
||||
public RecipientKeyIdentifier(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE09)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientKeyIdentifier::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_65:
|
||||
stloc:ArgumentException(var_9_6F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Invalid RecipientKeyIdentifier")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE0A RID: 52746 RVA: 0x002ED854 File Offset: 0x002EBA54
|
||||
[Token(Token = "0x600CE0A")]
|
||||
[Address(RVA = "0x2FF1D40", Offset = "0x2FF0D40", VA = "0x182FF1D40")]
|
||||
public static RecipientKeyIdentifier GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return RecipientKeyIdentifier.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CE0B RID: 52747 RVA: 0x002ED870 File Offset: 0x002EBA70
|
||||
[Token(Token = "0x600CE0B")]
|
||||
[Address(RVA = "0x2FF1B50", Offset = "0x2FF0B50", VA = "0x182FF1B50")]
|
||||
public static RecipientKeyIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE0B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientKeyIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientKeyIdentifier::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid RecipientKeyIdentifier: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002093 RID: 8339
|
||||
// (get) Token: 0x0600CE0C RID: 52748 RVA: 0x002ED8C0 File Offset: 0x002EBAC0
|
||||
[Token(Token = "0x17002093")]
|
||||
public Asn1OctetString SubjectKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CE0C")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.subjectKeyIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002094 RID: 8340
|
||||
// (get) Token: 0x0600CE0D RID: 52749 RVA: 0x002ED8D4 File Offset: 0x002EBAD4
|
||||
[Token(Token = "0x17002094")]
|
||||
public DerGeneralizedTime Date
|
||||
{
|
||||
[Token(Token = "0x600CE0D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.date;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002095 RID: 8341
|
||||
// (get) Token: 0x0600CE0E RID: 52750 RVA: 0x002ED8E8 File Offset: 0x002EBAE8
|
||||
[Token(Token = "0x17002095")]
|
||||
public OtherKeyAttribute OtherKeyAttribute
|
||||
{
|
||||
[Token(Token = "0x600CE0E")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.other;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE0F RID: 52751 RVA: 0x002ED8FC File Offset: 0x002EBAFC
|
||||
[Token(Token = "0x600CE0F")]
|
||||
[Address(RVA = "0x2FF1D60", Offset = "0x2FF0D60", VA = "0x182FF1D60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.subjectKeyIdentifier;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1OctetString;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
||||
DerGeneralizedTime derGeneralizedTime = this.date;
|
||||
if (derGeneralizedTime != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derGeneralizedTime;
|
||||
OtherKeyAttribute otherKeyAttribute = this.other;
|
||||
if (otherKeyAttribute != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = otherKeyAttribute;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400827D RID: 33405
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400827D")]
|
||||
private Asn1OctetString subjectKeyIdentifier;
|
||||
|
||||
// Token: 0x0400827E RID: 33406
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400827E")]
|
||||
private DerGeneralizedTime date;
|
||||
|
||||
// Token: 0x0400827F RID: 33407
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400827F")]
|
||||
private OtherKeyAttribute other;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200201D RID: 8221
|
||||
[Token(Token = "0x200201D")]
|
||||
public class ScvpReqRes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE10 RID: 52752 RVA: 0x002ED974 File Offset: 0x002EBB74
|
||||
[Token(Token = "0x600CE10")]
|
||||
[Address(RVA = "0x2FF41D0", Offset = "0x2FF31D0", VA = "0x182FF41D0")]
|
||||
public static ScvpReqRes GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
int num = 0;
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
ScvpReqRes scvpReqRes;
|
||||
if (parser != 0 && parser != 0)
|
||||
{
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
ContentInfo instance2 = ContentInfo.GetInstance(Asn1Sequence.GetInstance(asn1TaggedObject, true));
|
||||
scvpReqRes.request = instance2;
|
||||
Asn1SequenceParser parser3 = instance.Parser;
|
||||
}
|
||||
scvpReqRes.request = num;
|
||||
Asn1SequenceParser parser4 = instance.Parser;
|
||||
ContentInfo contentInfo;
|
||||
scvpReqRes.response = contentInfo;
|
||||
return scvpReqRes;
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CE11 RID: 52753 RVA: 0x002EDA00 File Offset: 0x002EBC00
|
||||
[Token(Token = "0x600CE11")]
|
||||
[Address(RVA = "0x2FF45C0", Offset = "0x2FF35C0", VA = "0x182FF45C0")]
|
||||
private ScvpReqRes(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser != 0 && parser != 0)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
ContentInfo instance = ContentInfo.GetInstance(Asn1Sequence.GetInstance(asn1TaggedObject, true));
|
||||
this.request = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
ContentInfo contentInfo;
|
||||
this.response = contentInfo;
|
||||
return;
|
||||
}
|
||||
this.request = (ulong)0L;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CE12 RID: 52754 RVA: 0x002EDA64 File Offset: 0x002EBC64
|
||||
[Token(Token = "0x600CE12")]
|
||||
[Address(RVA = "0x2FF46F0", Offset = "0x2FF36F0", VA = "0x182FF46F0")]
|
||||
public ScvpReqRes(ContentInfo response)
|
||||
{
|
||||
this.request = (ulong)0L;
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE13 RID: 52755 RVA: 0x002EDA88 File Offset: 0x002EBC88
|
||||
[Token(Token = "0x600CE13")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public ScvpReqRes(ContentInfo request, ContentInfo response)
|
||||
{
|
||||
this.request = request;
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
// Token: 0x17002096 RID: 8342
|
||||
// (get) Token: 0x0600CE14 RID: 52756 RVA: 0x002EDAAC File Offset: 0x002EBCAC
|
||||
[Token(Token = "0x17002096")]
|
||||
public virtual ContentInfo Request
|
||||
{
|
||||
[Token(Token = "0x600CE14")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.request;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002097 RID: 8343
|
||||
// (get) Token: 0x0600CE15 RID: 52757 RVA: 0x002EDAC0 File Offset: 0x002EBCC0
|
||||
[Token(Token = "0x17002097")]
|
||||
public virtual ContentInfo Response
|
||||
{
|
||||
[Token(Token = "0x600CE15")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.response;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE16 RID: 52758 RVA: 0x002EDAD4 File Offset: 0x002EBCD4
|
||||
[Token(Token = "0x600CE16")]
|
||||
[Address(RVA = "0x2FF43E0", Offset = "0x2FF33E0", VA = "0x182FF43E0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.request != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
ContentInfo contentInfo = this.request;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, contentInfo);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
ContentInfo contentInfo2 = this.response;
|
||||
if (contentInfo2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = contentInfo2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008280 RID: 33408
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008280")]
|
||||
private readonly ContentInfo request;
|
||||
|
||||
// Token: 0x04008281 RID: 33409
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008281")]
|
||||
private readonly ContentInfo response;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,432 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200201E RID: 8222
|
||||
[Token(Token = "0x200201E")]
|
||||
public class SignedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE17 RID: 52759 RVA: 0x002EDB50 File Offset: 0x002EBD50
|
||||
[Token(Token = "0x600CE17")]
|
||||
[Address(RVA = "0x2FF4D70", Offset = "0x2FF3D70", VA = "0x182FF4D70")]
|
||||
public static SignedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE17)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_28)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE18 RID: 52760 RVA: 0x002EDBA0 File Offset: 0x002EBDA0
|
||||
[Token(Token = "0x600CE18")]
|
||||
[Address(RVA = "0x2FF5870", Offset = "0x2FF4870", VA = "0x182FF5870")]
|
||||
public SignedData(Asn1Set digestAlgorithms, ContentInfo contentInfo, Asn1Set certificates, Asn1Set crls, Asn1Set signerInfos)
|
||||
{
|
||||
this.signerInfos = 0;
|
||||
DerInteger derInteger;
|
||||
this.version = derInteger;
|
||||
this.digestAlgorithms = digestAlgorithms;
|
||||
this.contentInfo = contentInfo;
|
||||
this.certificates = certificates;
|
||||
this.crls = 0;
|
||||
bool flag;
|
||||
this.crlsBer = flag;
|
||||
if (certificates != 0)
|
||||
{
|
||||
}
|
||||
bool flag2 = certificates != 0;
|
||||
this.certsBer = flag2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE19 RID: 52761 RVA: 0x002EDC08 File Offset: 0x002EBE08
|
||||
[Token(Token = "0x600CE19")]
|
||||
[Address(RVA = "0x2FF4720", Offset = "0x2FF3720", VA = "0x182FF4720")]
|
||||
private DerInteger CalculateVersion(DerObjectIdentifier contentOid, Asn1Set certs, Asn1Set crls, Asn1Set signerInfs)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (certs != 0)
|
||||
{
|
||||
IEnumerator enumerator = certs.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
while (enumerator == 0)
|
||||
{
|
||||
}
|
||||
while (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_8B;
|
||||
}
|
||||
if (enumerator != (ulong)1L && enumerator != (ulong)2L)
|
||||
{
|
||||
while (enumerator != (ulong)3L)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
goto IL_91;
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
if ((ulong)1L != 0UL)
|
||||
{
|
||||
goto IL_85;
|
||||
}
|
||||
}
|
||||
if (crls == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IEnumerator enumerator2 = crls.GetEnumerator();
|
||||
if (enumerator2 != 0)
|
||||
{
|
||||
while (enumerator2 == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
DerObjectIdentifier data = CmsObjectIdentifiers.Data;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
return SignedData.Version1;
|
||||
}
|
||||
return SignedData.Version3;
|
||||
IL_85:
|
||||
return SignedData.Version5;
|
||||
IL_8B:
|
||||
throw new NullReferenceException();
|
||||
IL_91:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CE1A RID: 52762 RVA: 0x002EDCAC File Offset: 0x002EBEAC
|
||||
[Token(Token = "0x600CE1A")]
|
||||
[Address(RVA = "0x2FF4BC0", Offset = "0x2FF3BC0", VA = "0x182FF4BC0")]
|
||||
private bool CheckForVersion3(Asn1Set signerInfs)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
int intValue;
|
||||
if (signerInfs.GetEnumerator() != 0)
|
||||
{
|
||||
SignerInfo signerInfo;
|
||||
intValue = signerInfo.version.Value.IntValue;
|
||||
while (intValue != 3)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (intValue != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
if (num != -1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CE1B RID: 52763 RVA: 0x002EDD08 File Offset: 0x002EBF08
|
||||
[Token(Token = "0x600CE1B")]
|
||||
[Address(RVA = "0x2FF54E0", Offset = "0x2FF44E0", VA = "0x182FF54E0")]
|
||||
private SignedData(Asn1Sequence seq)
|
||||
{
|
||||
ContentInfo contentInfo;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator == 0 || enumerator != 0)
|
||||
{
|
||||
this.version = enumerator;
|
||||
if (enumerator == 0 || enumerator != 0)
|
||||
{
|
||||
this.digestAlgorithms = enumerator;
|
||||
this.contentInfo = contentInfo;
|
||||
if (contentInfo == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (contentInfo == 0)
|
||||
{
|
||||
}
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
if (contentInfo == 0)
|
||||
{
|
||||
this.signerInfos = contentInfo;
|
||||
}
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
DerObjectIdentifier contentType = contentInfo.contentType;
|
||||
Asn1Set asn1Set;
|
||||
if (contentType == 0)
|
||||
{
|
||||
bool flag = contentType != 0;
|
||||
this.certsBer = flag;
|
||||
this.certificates = asn1Set;
|
||||
}
|
||||
bool flag2 = asn1Set != 0;
|
||||
this.crlsBer = flag2;
|
||||
Asn1Set asn1Set2;
|
||||
this.crls = asn1Set2;
|
||||
}
|
||||
|
||||
// Token: 0x17002098 RID: 8344
|
||||
// (get) Token: 0x0600CE1C RID: 52764 RVA: 0x002EDDCC File Offset: 0x002EBFCC
|
||||
[Token(Token = "0x17002098")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CE1C")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002099 RID: 8345
|
||||
// (get) Token: 0x0600CE1D RID: 52765 RVA: 0x002EDDE0 File Offset: 0x002EBFE0
|
||||
[Token(Token = "0x17002099")]
|
||||
public Asn1Set DigestAlgorithms
|
||||
{
|
||||
[Token(Token = "0x600CE1D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithms;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700209A RID: 8346
|
||||
// (get) Token: 0x0600CE1E RID: 52766 RVA: 0x002EDDF4 File Offset: 0x002EBFF4
|
||||
[Token(Token = "0x1700209A")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CE1E")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.contentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700209B RID: 8347
|
||||
// (get) Token: 0x0600CE1F RID: 52767 RVA: 0x002EDE08 File Offset: 0x002EC008
|
||||
[Token(Token = "0x1700209B")]
|
||||
public Asn1Set Certificates
|
||||
{
|
||||
[Token(Token = "0x600CE1F")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.certificates;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700209C RID: 8348
|
||||
// (get) Token: 0x0600CE20 RID: 52768 RVA: 0x002EDE1C File Offset: 0x002EC01C
|
||||
[Token(Token = "0x1700209C")]
|
||||
public Asn1Set CRLs
|
||||
{
|
||||
[Token(Token = "0x600CE20")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.crls;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700209D RID: 8349
|
||||
// (get) Token: 0x0600CE21 RID: 52769 RVA: 0x002EDE30 File Offset: 0x002EC030
|
||||
[Token(Token = "0x1700209D")]
|
||||
public Asn1Set SignerInfos
|
||||
{
|
||||
[Token(Token = "0x600CE21")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.signerInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE22 RID: 52770 RVA: 0x002EDE44 File Offset: 0x002EC044
|
||||
[Token(Token = "0x600CE22")]
|
||||
[Address(RVA = "0x2FF4F60", Offset = "0x2FF3F60", VA = "0x182FF4F60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1Set asn1Set = this.digestAlgorithms;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Set;
|
||||
ContentInfo contentInfo = this.contentInfo;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
}
|
||||
array[2] = contentInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
int num = 0;
|
||||
if (this.certificates != num)
|
||||
{
|
||||
if ((this.certsBer ? 1 : 0) == num)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[0];
|
||||
Asn1Set asn1Set2 = this.certificates;
|
||||
int num2;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num2 != 0, num3, asn1Set2);
|
||||
num3 = 0;
|
||||
num2 = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
Asn1Set asn1Set3 = this.certificates;
|
||||
int num4;
|
||||
int num5;
|
||||
BerTaggedObject berTaggedObject = new BerTaggedObject(num4 != 0, num5, asn1Set3);
|
||||
num5 = 0;
|
||||
num4 = 0;
|
||||
if (berTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (this.crls != num)
|
||||
{
|
||||
if ((this.crlsBer ? 1 : 0) == num)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set4 = this.crls;
|
||||
int num6;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num6 != 0, 1, asn1Set4);
|
||||
num6 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
Asn1Set asn1Set5 = this.crls;
|
||||
int num7;
|
||||
BerTaggedObject berTaggedObject2 = new BerTaggedObject(num7 != 0, 1, asn1Set5);
|
||||
num7 = 0;
|
||||
if (berTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set6 = this.signerInfos;
|
||||
if (asn1Set6 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = asn1Set6;
|
||||
asn1EncodableVector.Add(array4);
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008282 RID: 33410
|
||||
[Token(Token = "0x4008282")]
|
||||
private static readonly DerInteger Version1 = new DerInteger(1);
|
||||
|
||||
// Token: 0x04008283 RID: 33411
|
||||
[Token(Token = "0x4008283")]
|
||||
private static readonly DerInteger Version3 = new DerInteger(3);
|
||||
|
||||
// Token: 0x04008284 RID: 33412
|
||||
[Token(Token = "0x4008284")]
|
||||
private static readonly DerInteger Version4 = new DerInteger(4);
|
||||
|
||||
// Token: 0x04008285 RID: 33413
|
||||
[Token(Token = "0x4008285")]
|
||||
private static readonly DerInteger Version5 = new DerInteger(5);
|
||||
|
||||
// Token: 0x04008286 RID: 33414
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008286")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x04008287 RID: 33415
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008287")]
|
||||
private readonly Asn1Set digestAlgorithms;
|
||||
|
||||
// Token: 0x04008288 RID: 33416
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008288")]
|
||||
private readonly ContentInfo contentInfo;
|
||||
|
||||
// Token: 0x04008289 RID: 33417
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008289")]
|
||||
private readonly Asn1Set certificates;
|
||||
|
||||
// Token: 0x0400828A RID: 33418
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400828A")]
|
||||
private readonly Asn1Set crls;
|
||||
|
||||
// Token: 0x0400828B RID: 33419
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400828B")]
|
||||
private readonly Asn1Set signerInfos;
|
||||
|
||||
// Token: 0x0400828C RID: 33420
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400828C")]
|
||||
private readonly bool certsBer;
|
||||
|
||||
// Token: 0x0400828D RID: 33421
|
||||
[FieldOffset(Offset = "0x41")]
|
||||
[Token(Token = "0x400828D")]
|
||||
private readonly bool crlsBer;
|
||||
}
|
||||
}
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200201F RID: 8223
|
||||
[Token(Token = "0x200201F")]
|
||||
public class SignedDataParser
|
||||
{
|
||||
// Token: 0x0600CE24 RID: 52772 RVA: 0x002EDFC0 File Offset: 0x002EC1C0
|
||||
[Token(Token = "0x600CE24")]
|
||||
[Address(RVA = "0x23BAC10", Offset = "0x23B9C10", VA = "0x1823BAC10")]
|
||||
public static SignedDataParser GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE24)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedDataParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedDataParser::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_24:
|
||||
stloc:IOException(var_6_35, newobj:IOException(IOException::.ctor, call:string(string::Concat, ldstr:string("unknown object encountered: "), ldloc:string(var_5))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE25 RID: 52773 RVA: 0x002EE004 File Offset: 0x002EC204
|
||||
[Token(Token = "0x600CE25")]
|
||||
[Address(RVA = "0x23BAF00", Offset = "0x23B9F00", VA = "0x1823BAF00")]
|
||||
public SignedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this._seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x1700209E RID: 8350
|
||||
// (get) Token: 0x0600CE26 RID: 52774 RVA: 0x002EE034 File Offset: 0x002EC234
|
||||
[Token(Token = "0x1700209E")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CE26")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE27 RID: 52775 RVA: 0x002EE048 File Offset: 0x002EC248
|
||||
[Token(Token = "0x600CE27")]
|
||||
[Address(RVA = "0x23BAAE0", Offset = "0x23B9AE0", VA = "0x1823BAAE0")]
|
||||
public Asn1SetParser GetDigestAlgorithms()
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CE28 RID: 52776 RVA: 0x002EE064 File Offset: 0x002EC264
|
||||
[Token(Token = "0x600CE28")]
|
||||
[Address(RVA = "0x23BAB60", Offset = "0x23B9B60", VA = "0x1823BAB60")]
|
||||
public ContentInfoParser GetEncapContentInfo()
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
do
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
if (this == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (contentInfoParser == 0);
|
||||
return contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE29 RID: 52777 RVA: 0x002EE088 File Offset: 0x002EC288
|
||||
[Token(Token = "0x600CE29")]
|
||||
[Address(RVA = "0x23BA760", Offset = "0x23B9760", VA = "0x1823BA760")]
|
||||
public Asn1SetParser GetCertificates()
|
||||
{
|
||||
object nextObject2;
|
||||
int num;
|
||||
do
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
this._certsCalled = true;
|
||||
object nextObject = this._nextObject;
|
||||
nextObject2 = this._nextObject;
|
||||
num = 0;
|
||||
this._nextObject = num;
|
||||
}
|
||||
while (nextObject2 != 0 && num == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CE2A RID: 52778 RVA: 0x002EE0D0 File Offset: 0x002EC2D0
|
||||
[Token(Token = "0x600CE2A")]
|
||||
[Address(RVA = "0x23BA900", Offset = "0x23B9900", VA = "0x1823BA900")]
|
||||
public Asn1SetParser GetCrls()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE2A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedDataParser::GetCrls()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_68:
|
||||
stloc:IOException(var_7_72, newobj:IOException(IOException::.ctor, ldstr:string("GetCerts() has not been called.")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE2B RID: 52779 RVA: 0x002EE150 File Offset: 0x002EC350
|
||||
[Token(Token = "0x600CE2B")]
|
||||
[Address(RVA = "0x23BAE30", Offset = "0x23B9E30", VA = "0x1823BAE30")]
|
||||
public Asn1SetParser GetSignerInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE2B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedDataParser::GetSignerInfos()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2C:
|
||||
stloc:IOException(var_2_36, newobj:IOException(IOException::.ctor, ldstr:string("GetCerts() and/or GetCrls() has not been called.")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0400828E RID: 33422
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400828E")]
|
||||
private Asn1SequenceParser _seq;
|
||||
|
||||
// Token: 0x0400828F RID: 33423
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400828F")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04008290 RID: 33424
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008290")]
|
||||
private object _nextObject;
|
||||
|
||||
// Token: 0x04008291 RID: 33425
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008291")]
|
||||
private bool _certsCalled;
|
||||
|
||||
// Token: 0x04008292 RID: 33426
|
||||
[FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x4008292")]
|
||||
private bool _crlsCalled;
|
||||
}
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002020 RID: 8224
|
||||
[Token(Token = "0x2002020")]
|
||||
public class SignerIdentifier : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CE2C RID: 52780 RVA: 0x002EE194 File Offset: 0x002EC394
|
||||
[Token(Token = "0x600CE2C")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public SignerIdentifier(IssuerAndSerialNumber id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE2D RID: 52781 RVA: 0x002EE1B0 File Offset: 0x002EC3B0
|
||||
[Token(Token = "0x600CE2D")]
|
||||
[Address(RVA = "0x23BB2B0", Offset = "0x23BA2B0", VA = "0x1823BB2B0")]
|
||||
public SignerIdentifier(Asn1OctetString id)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, id);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE2E RID: 52782 RVA: 0x002EE1D8 File Offset: 0x002EC3D8
|
||||
[Token(Token = "0x600CE2E")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public SignerIdentifier(Asn1Object id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE2F RID: 52783 RVA: 0x002EE1F4 File Offset: 0x002EC3F4
|
||||
[Token(Token = "0x600CE2F")]
|
||||
[Address(RVA = "0x23BAFD0", Offset = "0x23B9FD0", VA = "0x1823BAFD0")]
|
||||
public static SignerIdentifier GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE2F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignerIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignerIdentifier::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:ArgumentException(var_10_4A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Illegal object in SignerIdentifier: "), ldloc:string(var_9))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x1700209F RID: 8351
|
||||
// (get) Token: 0x0600CE30 RID: 52784 RVA: 0x002EE24C File Offset: 0x002EC44C
|
||||
[Token(Token = "0x1700209F")]
|
||||
public bool IsTagged
|
||||
{
|
||||
[Token(Token = "0x600CE30")]
|
||||
[Address(RVA = "0x23BB400", Offset = "0x23BA400", VA = "0x1823BB400")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A0 RID: 8352
|
||||
// (get) Token: 0x0600CE31 RID: 52785 RVA: 0x002EE278 File Offset: 0x002EC478
|
||||
[Token(Token = "0x170020A0")]
|
||||
public Asn1Encodable ID
|
||||
{
|
||||
[Token(Token = "0x600CE31")]
|
||||
[Address(RVA = "0x23BB330", Offset = "0x23BA330", VA = "0x1823BB330")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
do
|
||||
{
|
||||
asn1Encodable = this.id;
|
||||
}
|
||||
while (asn1Encodable != 0 && asn1Encodable != 0 && asn1Encodable != 0 && asn1Encodable == 0);
|
||||
return asn1Encodable;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE32 RID: 52786 RVA: 0x002EE2A4 File Offset: 0x002EC4A4
|
||||
[Token(Token = "0x600CE32")]
|
||||
[Address(RVA = "0x415960", Offset = "0x414960", VA = "0x180415960", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.id.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x04008293 RID: 33427
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008293")]
|
||||
private Asn1Encodable id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,318 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002021 RID: 8225
|
||||
[Token(Token = "0x2002021")]
|
||||
public class SignerInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE33 RID: 52787 RVA: 0x002EE2C4 File Offset: 0x002EC4C4
|
||||
[Token(Token = "0x600CE33")]
|
||||
[Address(RVA = "0x23BB480", Offset = "0x23BA480", VA = "0x1823BB480")]
|
||||
public static SignerInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE33)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignerInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignerInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE34 RID: 52788 RVA: 0x002EE318 File Offset: 0x002EC518
|
||||
[Token(Token = "0x600CE34")]
|
||||
[Address(RVA = "0x23BBA60", Offset = "0x23BAA60", VA = "0x1823BBA60")]
|
||||
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Asn1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Asn1Set unauthenticatedAttributes)
|
||||
{
|
||||
bool isTagged = sid.IsTagged;
|
||||
DerInteger derInteger = new DerInteger(3);
|
||||
this.version = derInteger;
|
||||
this.digEncryptionAlgorithm = 0;
|
||||
this.encryptedDigest = 0;
|
||||
this.authenticatedAttributes = authenticatedAttributes;
|
||||
this.unauthenticatedAttributes = 0;
|
||||
this.sid = sid;
|
||||
this.digAlgorithm = digAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE35 RID: 52789 RVA: 0x002EE370 File Offset: 0x002EC570
|
||||
[Token(Token = "0x600CE35")]
|
||||
[Address(RVA = "0x23BBE70", Offset = "0x23BAE70", VA = "0x1823BBE70")]
|
||||
public SignerInfo(SignerIdentifier sid, AlgorithmIdentifier digAlgorithm, Attributes authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Attributes unauthenticatedAttributes)
|
||||
{
|
||||
bool isTagged = sid.IsTagged;
|
||||
DerInteger derInteger = new DerInteger(3);
|
||||
this.version = derInteger;
|
||||
this.sid = sid;
|
||||
this.digAlgorithm = digAlgorithm;
|
||||
Asn1Set instance = Asn1Set.GetInstance(authenticatedAttributes);
|
||||
this.authenticatedAttributes = instance;
|
||||
this.digEncryptionAlgorithm = 0;
|
||||
this.encryptedDigest = 0;
|
||||
Asn1Set asn1Set;
|
||||
this.unauthenticatedAttributes = asn1Set;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE36 RID: 52790 RVA: 0x002EE3D0 File Offset: 0x002EC5D0
|
||||
[Token(Token = "0x600CE36")]
|
||||
[Address(RVA = "0x23BBB40", Offset = "0x23BAB40", VA = "0x1823BBB40")]
|
||||
[Obsolete]
|
||||
public SignerInfo(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
num = 0;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
this.version = enumerator;
|
||||
SignerIdentifier signerIdentifier;
|
||||
this.sid = signerIdentifier;
|
||||
AlgorithmIdentifier instance = AlgorithmIdentifier.GetInstance(signerIdentifier);
|
||||
this.digAlgorithm = instance;
|
||||
Asn1Set asn1Set;
|
||||
if (instance != 0 && instance != 0)
|
||||
{
|
||||
if (instance == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
this.authenticatedAttributes = asn1Set;
|
||||
}
|
||||
this.authenticatedAttributes = num;
|
||||
AlgorithmIdentifier instance2 = AlgorithmIdentifier.GetInstance(asn1Set);
|
||||
this.digEncryptionAlgorithm = instance2;
|
||||
Asn1OctetString instance3 = Asn1OctetString.GetInstance(instance2);
|
||||
this.encryptedDigest = instance3;
|
||||
if (instance3 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance3 == 0 || instance3 != 0)
|
||||
{
|
||||
goto IL_9A;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.unauthenticatedAttributes = num;
|
||||
return;
|
||||
IL_9A:
|
||||
Asn1Set asn1Set2;
|
||||
this.unauthenticatedAttributes = asn1Set2;
|
||||
}
|
||||
|
||||
// Token: 0x170020A1 RID: 8353
|
||||
// (get) Token: 0x0600CE37 RID: 52791 RVA: 0x002EE488 File Offset: 0x002EC688
|
||||
[Token(Token = "0x170020A1")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CE37")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A2 RID: 8354
|
||||
// (get) Token: 0x0600CE38 RID: 52792 RVA: 0x002EE49C File Offset: 0x002EC69C
|
||||
[Token(Token = "0x170020A2")]
|
||||
public SignerIdentifier SignerID
|
||||
{
|
||||
[Token(Token = "0x600CE38")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.sid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A3 RID: 8355
|
||||
// (get) Token: 0x0600CE39 RID: 52793 RVA: 0x002EE4B0 File Offset: 0x002EC6B0
|
||||
[Token(Token = "0x170020A3")]
|
||||
public Asn1Set AuthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600CE39")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.authenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A4 RID: 8356
|
||||
// (get) Token: 0x0600CE3A RID: 52794 RVA: 0x002EE4C4 File Offset: 0x002EC6C4
|
||||
[Token(Token = "0x170020A4")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CE3A")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.digAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A5 RID: 8357
|
||||
// (get) Token: 0x0600CE3B RID: 52795 RVA: 0x002EE4D8 File Offset: 0x002EC6D8
|
||||
[Token(Token = "0x170020A5")]
|
||||
public Asn1OctetString EncryptedDigest
|
||||
{
|
||||
[Token(Token = "0x600CE3B")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A6 RID: 8358
|
||||
// (get) Token: 0x0600CE3C RID: 52796 RVA: 0x002EE4EC File Offset: 0x002EC6EC
|
||||
[Token(Token = "0x170020A6")]
|
||||
public AlgorithmIdentifier DigestEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CE3C")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.digEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A7 RID: 8359
|
||||
// (get) Token: 0x0600CE3D RID: 52797 RVA: 0x002EE500 File Offset: 0x002EC700
|
||||
[Token(Token = "0x170020A7")]
|
||||
public Asn1Set UnauthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600CE3D")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE3E RID: 52798 RVA: 0x002EE514 File Offset: 0x002EC714
|
||||
[Token(Token = "0x600CE3E")]
|
||||
[Address(RVA = "0x23BB680", Offset = "0x23BA680", VA = "0x1823BB680", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
SignerIdentifier signerIdentifier = this.sid;
|
||||
if (signerIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = signerIdentifier;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.digAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[2] = algorithmIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.authenticatedAttributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.authenticatedAttributes;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.digEncryptionAlgorithm;
|
||||
if (algorithmIdentifier2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = algorithmIdentifier2;
|
||||
Asn1OctetString asn1OctetString = this.encryptedDigest;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array3);
|
||||
if (this.unauthenticatedAttributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set2 = this.unauthenticatedAttributes;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008294 RID: 33428
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008294")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008295 RID: 33429
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008295")]
|
||||
private SignerIdentifier sid;
|
||||
|
||||
// Token: 0x04008296 RID: 33430
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008296")]
|
||||
private AlgorithmIdentifier digAlgorithm;
|
||||
|
||||
// Token: 0x04008297 RID: 33431
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008297")]
|
||||
private Asn1Set authenticatedAttributes;
|
||||
|
||||
// Token: 0x04008298 RID: 33432
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008298")]
|
||||
private AlgorithmIdentifier digEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008299 RID: 33433
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008299")]
|
||||
private Asn1OctetString encryptedDigest;
|
||||
|
||||
// Token: 0x0400829A RID: 33434
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400829A")]
|
||||
private Asn1Set unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002022 RID: 8226
|
||||
[Token(Token = "0x2002022")]
|
||||
public class Time : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CE3F RID: 52799 RVA: 0x002EE640 File Offset: 0x002EC840
|
||||
[Token(Token = "0x600CE3F")]
|
||||
[Address(RVA = "0x23BDDB0", Offset = "0x23BCDB0", VA = "0x1823BDDB0")]
|
||||
public static Time GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return Time.GetInstance(obj.GetObject());
|
||||
}
|
||||
|
||||
// Token: 0x0600CE40 RID: 52800 RVA: 0x002EE660 File Offset: 0x002EC860
|
||||
[Token(Token = "0x600CE40")]
|
||||
[Address(RVA = "0x23BDF20", Offset = "0x23BCF20", VA = "0x1823BDF20")]
|
||||
public Time(Asn1Object time)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE40)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Time::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:ArgumentException(var_3_33, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown object passed to Time")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE41 RID: 52801 RVA: 0x002EE6A0 File Offset: 0x002EC8A0
|
||||
[Token(Token = "0x600CE41")]
|
||||
[Address(RVA = "0x23BDDE0", Offset = "0x23BCDE0", VA = "0x1823BDDE0")]
|
||||
public Time(DateTime date)
|
||||
{
|
||||
CultureInfo invariantCulture = CultureInfo.InvariantCulture;
|
||||
string text2;
|
||||
string text = text2 + "Z";
|
||||
int num = 0;
|
||||
int num2 = int.Parse(text.Substring(num, 4));
|
||||
num2 += -1950;
|
||||
if (num2 <= 99)
|
||||
{
|
||||
DerUtcTime derUtcTime = new DerUtcTime(text.Substring(2));
|
||||
this.time = derUtcTime;
|
||||
return;
|
||||
}
|
||||
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(text);
|
||||
this.time = derGeneralizedTime;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE42 RID: 52802 RVA: 0x002EE718 File Offset: 0x002EC918
|
||||
[Token(Token = "0x600CE42")]
|
||||
[Address(RVA = "0x23BDB20", Offset = "0x23BCB20", VA = "0x1823BDB20")]
|
||||
public static Time GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE42)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Time BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Time::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_34:
|
||||
stloc:string(var_8_3A, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_52, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_3A)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x170020A8 RID: 8360
|
||||
// (get) Token: 0x0600CE43 RID: 52803 RVA: 0x002EE778 File Offset: 0x002EC978
|
||||
[Token(Token = "0x170020A8")]
|
||||
public string TimeString
|
||||
{
|
||||
[Token(Token = "0x600CE43")]
|
||||
[Address(RVA = "0x23BE310", Offset = "0x23BD310", VA = "0x1823BE310")]
|
||||
get
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
asn1Object = this.time;
|
||||
}
|
||||
while ((asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0)) || asn1Object == 0 || asn1Object == 0);
|
||||
string text;
|
||||
return text;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020A9 RID: 8361
|
||||
// (get) Token: 0x0600CE44 RID: 52804 RVA: 0x002EE7B8 File Offset: 0x002EC9B8
|
||||
[Token(Token = "0x170020A9")]
|
||||
public DateTime Date
|
||||
{
|
||||
[Token(Token = "0x600CE44")]
|
||||
[Address(RVA = "0x23BE050", Offset = "0x23BD050", VA = "0x1823BE050")]
|
||||
get
|
||||
{
|
||||
Asn1Object asn1Object = this.time;
|
||||
if (asn1Object != 0 && asn1Object != 0)
|
||||
{
|
||||
if (asn1Object == 0 || asn1Object == 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
int num = 0;
|
||||
string text;
|
||||
char c = text[num];
|
||||
string text2 = text + text;
|
||||
}
|
||||
if (asn1Object != 0 && asn1Object != 0)
|
||||
{
|
||||
DateTime dateTime;
|
||||
return dateTime;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE45 RID: 52805 RVA: 0x002EE82C File Offset: 0x002ECA2C
|
||||
[Token(Token = "0x600CE45")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.time;
|
||||
}
|
||||
|
||||
// Token: 0x0400829B RID: 33435
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400829B")]
|
||||
private readonly Asn1Object time;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002023 RID: 8227
|
||||
[Token(Token = "0x2002023")]
|
||||
public class TimeStampAndCrl : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE46 RID: 52806 RVA: 0x002EE840 File Offset: 0x002ECA40
|
||||
[Token(Token = "0x600CE46")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public TimeStampAndCrl(ContentInfo timeStamp)
|
||||
{
|
||||
this.timeStamp = timeStamp;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE47 RID: 52807 RVA: 0x002EE85C File Offset: 0x002ECA5C
|
||||
[Token(Token = "0x600CE47")]
|
||||
[Address(RVA = "0x23BC840", Offset = "0x23BB840", VA = "0x1823BC840")]
|
||||
private TimeStampAndCrl(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
ContentInfo contentInfo;
|
||||
this.timeStamp = contentInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable == (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
CertificateList certificateList;
|
||||
this.crl = certificateList;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE48 RID: 52808 RVA: 0x002EE898 File Offset: 0x002ECA98
|
||||
[Token(Token = "0x600CE48")]
|
||||
[Address(RVA = "0x23BC560", Offset = "0x23BB560", VA = "0x1823BC560")]
|
||||
public static TimeStampAndCrl GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
TimeStampAndCrl timeStampAndCrl;
|
||||
if (obj == 0)
|
||||
{
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
ContentInfo contentInfo;
|
||||
timeStampAndCrl.timeStamp = contentInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable == (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
CertificateList certificateList;
|
||||
timeStampAndCrl.crl = certificateList;
|
||||
}
|
||||
return timeStampAndCrl;
|
||||
}
|
||||
if (timeStampAndCrl != 0)
|
||||
{
|
||||
return timeStampAndCrl;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170020AA RID: 8362
|
||||
// (get) Token: 0x0600CE49 RID: 52809 RVA: 0x002EE8F0 File Offset: 0x002ECAF0
|
||||
[Token(Token = "0x170020AA")]
|
||||
public virtual ContentInfo TimeStampToken
|
||||
{
|
||||
[Token(Token = "0x600CE49")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.timeStamp;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020AB RID: 8363
|
||||
// (get) Token: 0x0600CE4A RID: 52810 RVA: 0x002EE904 File Offset: 0x002ECB04
|
||||
[Token(Token = "0x170020AB")]
|
||||
public virtual CertificateList Crl
|
||||
{
|
||||
[Token(Token = "0x600CE4A")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.crl;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE4B RID: 52811 RVA: 0x002EE918 File Offset: 0x002ECB18
|
||||
[Token(Token = "0x600CE4B")]
|
||||
[Address(RVA = "0x23BC6D0", Offset = "0x23BB6D0", VA = "0x1823BC6D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
ContentInfo contentInfo = this.timeStamp;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
}
|
||||
array[0] = contentInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
CertificateList certificateList = this.crl;
|
||||
if (certificateList != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = certificateList;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400829C RID: 33436
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400829C")]
|
||||
private ContentInfo timeStamp;
|
||||
|
||||
// Token: 0x0400829D RID: 33437
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400829D")]
|
||||
private CertificateList crl;
|
||||
}
|
||||
}
|
||||
+182
@@ -0,0 +1,182 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002024 RID: 8228
|
||||
[Token(Token = "0x2002024")]
|
||||
public class TimeStampTokenEvidence : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE4C RID: 52812 RVA: 0x002EE978 File Offset: 0x002ECB78
|
||||
[Token(Token = "0x600CE4C")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl[] timeStampAndCrls)
|
||||
{
|
||||
this.timeStampAndCrls = timeStampAndCrls;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE4D RID: 52813 RVA: 0x002EE994 File Offset: 0x002ECB94
|
||||
[Token(Token = "0x600CE4D")]
|
||||
[Address(RVA = "0x23BCF90", Offset = "0x23BBF90", VA = "0x1823BCF90")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl timeStampAndCrl)
|
||||
{
|
||||
TimeStampAndCrl[] array = new TimeStampAndCrl[1];
|
||||
if (timeStampAndCrl != 0)
|
||||
{
|
||||
}
|
||||
array[0] = timeStampAndCrl;
|
||||
this.timeStampAndCrls = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE4E RID: 52814 RVA: 0x002EE9C8 File Offset: 0x002ECBC8
|
||||
[Token(Token = "0x600CE4E")]
|
||||
[Address(RVA = "0x23BCBB0", Offset = "0x23BBBB0", VA = "0x1823BCBB0")]
|
||||
private TimeStampTokenEvidence(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
Asn1Encodable asn1Encodable;
|
||||
TimeStampAndCrl[] array = new TimeStampAndCrl[asn1Encodable];
|
||||
this.timeStampAndCrls = array;
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_B7;
|
||||
}
|
||||
TimeStampAndCrl[] array2 = this.timeStampAndCrls;
|
||||
num++;
|
||||
TimeStampAndCrl timeStampAndCrl;
|
||||
ContentInfo instance = ContentInfo.GetInstance(timeStampAndCrl);
|
||||
timeStampAndCrl.timeStamp = instance;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable2 == (ulong)2L)
|
||||
{
|
||||
Asn1Sequence asn1Sequence;
|
||||
Asn1SequenceParser parser = asn1Sequence.Parser;
|
||||
CertificateList certificateList;
|
||||
timeStampAndCrl.crl = certificateList;
|
||||
if (asn1Sequence == 0)
|
||||
{
|
||||
goto IL_9F;
|
||||
}
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = num;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_9F:
|
||||
throw new ArrayTypeMismatchException();
|
||||
IL_B7:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CE4F RID: 52815 RVA: 0x002EEA94 File Offset: 0x002ECC94
|
||||
[Token(Token = "0x600CE4F")]
|
||||
[Address(RVA = "0x23BC9D0", Offset = "0x23BB9D0", VA = "0x1823BC9D0")]
|
||||
public static TimeStampTokenEvidence GetInstance(Asn1TaggedObject tagged, bool isExplicit)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
Asn1Sequence instance2;
|
||||
for (;;)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(tagged, isExplicit);
|
||||
if (instance == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
instance2 = Asn1Sequence.GetInstance(instance);
|
||||
return new TimeStampTokenEvidence(instance2);
|
||||
}
|
||||
|
||||
// Token: 0x0600CE50 RID: 52816 RVA: 0x002EEAD0 File Offset: 0x002ECCD0
|
||||
[Token(Token = "0x600CE50")]
|
||||
[Address(RVA = "0x23BC8D0", Offset = "0x23BB8D0", VA = "0x1823BC8D0")]
|
||||
public static TimeStampTokenEvidence GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new TimeStampTokenEvidence(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE51 RID: 52817 RVA: 0x002EEB04 File Offset: 0x002ECD04
|
||||
[Token(Token = "0x600CE51")]
|
||||
[Address(RVA = "0x23BCB30", Offset = "0x23BBB30", VA = "0x1823BCB30", Slot = "6")]
|
||||
public virtual TimeStampAndCrl[] ToTimeStampAndCrlArray()
|
||||
{
|
||||
TimeStampAndCrl[] array = this.timeStampAndCrls;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CE52 RID: 52818 RVA: 0x002EEB20 File Offset: 0x002ECD20
|
||||
[Token(Token = "0x600CE52")]
|
||||
[Address(RVA = "0x23BCAD0", Offset = "0x23BBAD0", VA = "0x1823BCAD0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE52)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.TimeStampTokenEvidence::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_0B, newobj:DerSequence(DerSequence::.ctor, ldfld:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.TimeStampAndCrl[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](TimeStampTokenEvidence::timeStampAndCrls, ldloc:TimeStampTokenEvidence(this))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0400829E RID: 33438
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400829E")]
|
||||
private TimeStampAndCrl[] timeStampAndCrls;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002025 RID: 8229
|
||||
[Token(Token = "0x2002025")]
|
||||
public class TimeStampedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE53 RID: 52819 RVA: 0x002EEB38 File Offset: 0x002ECD38
|
||||
[Token(Token = "0x600CE53")]
|
||||
[Address(RVA = "0x23BD7F0", Offset = "0x23BC7F0", VA = "0x1823BD7F0")]
|
||||
public TimeStampedData(DerIA5String dataUri, MetaData metaData, Asn1OctetString content, Evidence temporalEvidence)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(1);
|
||||
this.version = derInteger;
|
||||
this.metaData = metaData;
|
||||
this.content = content;
|
||||
this.temporalEvidence = 0;
|
||||
this.dataUri = dataUri;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE54 RID: 52820 RVA: 0x002EEB78 File Offset: 0x002ECD78
|
||||
[Token(Token = "0x600CE54")]
|
||||
[Address(RVA = "0x23BD890", Offset = "0x23BC890", VA = "0x1823BD890")]
|
||||
private TimeStampedData(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.version = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerIA5String derIA5String;
|
||||
this.dataUri = derIA5String;
|
||||
}
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
if (parser4 == 0 || parser4 == 0)
|
||||
{
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 == 0 || parser5 == 0)
|
||||
{
|
||||
goto IL_6F;
|
||||
}
|
||||
}
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
MetaData metaData;
|
||||
this.metaData = metaData;
|
||||
IL_6F:
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
if (parser7 != 0 && parser7 != 0)
|
||||
{
|
||||
Asn1SequenceParser parser8 = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.content = asn1OctetString;
|
||||
}
|
||||
Asn1SequenceParser parser9 = seq.Parser;
|
||||
Evidence evidence;
|
||||
this.temporalEvidence = evidence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE55 RID: 52821 RVA: 0x002EEC30 File Offset: 0x002ECE30
|
||||
[Token(Token = "0x600CE55")]
|
||||
[Address(RVA = "0x23BD460", Offset = "0x23BC460", VA = "0x1823BD460")]
|
||||
public static TimeStampedData GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new TimeStampedData(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020AC RID: 8364
|
||||
// (get) Token: 0x0600CE56 RID: 52822 RVA: 0x002EEC64 File Offset: 0x002ECE64
|
||||
[Token(Token = "0x170020AC")]
|
||||
public virtual DerIA5String DataUri
|
||||
{
|
||||
[Token(Token = "0x600CE56")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.dataUri;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020AD RID: 8365
|
||||
// (get) Token: 0x0600CE57 RID: 52823 RVA: 0x002EEC78 File Offset: 0x002ECE78
|
||||
[Token(Token = "0x170020AD")]
|
||||
public MetaData MetaData
|
||||
{
|
||||
[Token(Token = "0x600CE57")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.metaData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020AE RID: 8366
|
||||
// (get) Token: 0x0600CE58 RID: 52824 RVA: 0x002EEC8C File Offset: 0x002ECE8C
|
||||
[Token(Token = "0x170020AE")]
|
||||
public Asn1OctetString Content
|
||||
{
|
||||
[Token(Token = "0x600CE58")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020AF RID: 8367
|
||||
// (get) Token: 0x0600CE59 RID: 52825 RVA: 0x002EECA0 File Offset: 0x002ECEA0
|
||||
[Token(Token = "0x170020AF")]
|
||||
public Evidence TemporalEvidence
|
||||
{
|
||||
[Token(Token = "0x600CE59")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.temporalEvidence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE5A RID: 52826 RVA: 0x002EECB4 File Offset: 0x002ECEB4
|
||||
[Token(Token = "0x600CE5A")]
|
||||
[Address(RVA = "0x23BD560", Offset = "0x23BC560", VA = "0x1823BD560", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[3];
|
||||
DerIA5String derIA5String = this.dataUri;
|
||||
if (derIA5String != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derIA5String;
|
||||
MetaData metaData = this.metaData;
|
||||
if (metaData != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = metaData;
|
||||
Asn1OctetString asn1OctetString = this.content;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array2[2] = asn1OctetString;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
Evidence evidence = this.temporalEvidence;
|
||||
if (evidence != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = evidence;
|
||||
asn1EncodableVector.Add(array3);
|
||||
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400829F RID: 33439
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400829F")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040082A0 RID: 33440
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082A0")]
|
||||
private DerIA5String dataUri;
|
||||
|
||||
// Token: 0x040082A1 RID: 33441
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082A1")]
|
||||
private MetaData metaData;
|
||||
|
||||
// Token: 0x040082A2 RID: 33442
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40082A2")]
|
||||
private Asn1OctetString content;
|
||||
|
||||
// Token: 0x040082A3 RID: 33443
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40082A3")]
|
||||
private Evidence temporalEvidence;
|
||||
}
|
||||
}
|
||||
+149
@@ -0,0 +1,149 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02002026 RID: 8230
|
||||
[Token(Token = "0x2002026")]
|
||||
public class TimeStampedDataParser
|
||||
{
|
||||
// Token: 0x0600CE5B RID: 52827 RVA: 0x002EED68 File Offset: 0x002ECF68
|
||||
[Token(Token = "0x600CE5B")]
|
||||
[Address(RVA = "0x23BD280", Offset = "0x23BC280", VA = "0x1823BD280")]
|
||||
private TimeStampedDataParser(Asn1SequenceParser parser)
|
||||
{
|
||||
MetaData instance3;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
this.parser = parser;
|
||||
DerInteger instance = DerInteger.GetInstance(0);
|
||||
this.version = instance;
|
||||
if (instance != 0 && instance != 0)
|
||||
{
|
||||
DerIA5String instance2 = DerIA5String.GetInstance(instance);
|
||||
this.dataUri = instance2;
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
instance3 = MetaData.GetInstance(instance.ToAsn1Object());
|
||||
this.metaData = instance3;
|
||||
}
|
||||
if (instance3 == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
while (instance3 != 0 && instance3 == 0);
|
||||
this.content = instance3;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE5C RID: 52828 RVA: 0x002EEDD8 File Offset: 0x002ECFD8
|
||||
[Token(Token = "0x600CE5C")]
|
||||
[Address(RVA = "0x23BD040", Offset = "0x23BC040", VA = "0x1823BD040")]
|
||||
public static TimeStampedDataParser GetInstance(object obj)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
TimeStampedDataParser timeStampedDataParser;
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (timeStampedDataParser != 0)
|
||||
{
|
||||
return timeStampedDataParser;
|
||||
}
|
||||
}
|
||||
TimeStampedDataParser timeStampedDataParser2;
|
||||
return timeStampedDataParser2;
|
||||
}
|
||||
|
||||
// Token: 0x170020B0 RID: 8368
|
||||
// (get) Token: 0x0600CE5D RID: 52829 RVA: 0x002EEE04 File Offset: 0x002ED004
|
||||
[Token(Token = "0x170020B0")]
|
||||
public virtual DerIA5String DataUri
|
||||
{
|
||||
[Token(Token = "0x600CE5D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.dataUri;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B1 RID: 8369
|
||||
// (get) Token: 0x0600CE5E RID: 52830 RVA: 0x002EEE18 File Offset: 0x002ED018
|
||||
[Token(Token = "0x170020B1")]
|
||||
public virtual MetaData MetaData
|
||||
{
|
||||
[Token(Token = "0x600CE5E")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.metaData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B2 RID: 8370
|
||||
// (get) Token: 0x0600CE5F RID: 52831 RVA: 0x002EEE2C File Offset: 0x002ED02C
|
||||
[Token(Token = "0x170020B2")]
|
||||
public virtual Asn1OctetStringParser Content
|
||||
{
|
||||
[Token(Token = "0x600CE5F")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE60 RID: 52832 RVA: 0x002EEE40 File Offset: 0x002ED040
|
||||
[Token(Token = "0x600CE60")]
|
||||
[Address(RVA = "0x23BD200", Offset = "0x23BC200", VA = "0x1823BD200", Slot = "7")]
|
||||
public virtual Evidence GetTemporalEvidence()
|
||||
{
|
||||
Evidence evidence = this.temporalEvidence;
|
||||
if (evidence == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.parser;
|
||||
Evidence instance = Evidence.GetInstance(evidence);
|
||||
this.temporalEvidence = instance;
|
||||
}
|
||||
return evidence;
|
||||
}
|
||||
|
||||
// Token: 0x040082A4 RID: 33444
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082A4")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040082A5 RID: 33445
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082A5")]
|
||||
private DerIA5String dataUri;
|
||||
|
||||
// Token: 0x040082A6 RID: 33446
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082A6")]
|
||||
private MetaData metaData;
|
||||
|
||||
// Token: 0x040082A7 RID: 33447
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40082A7")]
|
||||
private Asn1OctetStringParser content;
|
||||
|
||||
// Token: 0x040082A8 RID: 33448
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40082A8")]
|
||||
private Evidence temporalEvidence;
|
||||
|
||||
// Token: 0x040082A9 RID: 33449
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40082A9")]
|
||||
private Asn1SequenceParser parser;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user