oh dear
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F18 RID: 7960
|
||||
[Token(Token = "0x2001F18")]
|
||||
public class Attribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C91F RID: 51487 RVA: 0x002E0FE4 File Offset: 0x002DF1E4
|
||||
[Token(Token = "0x600C91F")]
|
||||
[Address(RVA = "0x2AD03C0", Offset = "0x2ACF1C0", VA = "0x182AD03C0")]
|
||||
public static Attribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C91F)
|
||||
|
||||
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: 0x0600C920 RID: 51488 RVA: 0x002E103C File Offset: 0x002DF23C
|
||||
[Token(Token = "0x600C920")]
|
||||
[Address(RVA = "0x2AD07D0", Offset = "0x2ACF5D0", VA = "0x182AD07D0")]
|
||||
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: 0x0600C921 RID: 51489 RVA: 0x002E1088 File Offset: 0x002DF288
|
||||
[Token(Token = "0x600C921")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public Attribute(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x17001F97 RID: 8087
|
||||
// (get) Token: 0x0600C922 RID: 51490 RVA: 0x002E10AC File Offset: 0x002DF2AC
|
||||
[Token(Token = "0x17001F97")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600C922")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F98 RID: 8088
|
||||
// (get) Token: 0x0600C923 RID: 51491 RVA: 0x002E10C0 File Offset: 0x002DF2C0
|
||||
[Token(Token = "0x17001F98")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600C923")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C924 RID: 51492 RVA: 0x002E10D4 File Offset: 0x002DF2D4
|
||||
[Token(Token = "0x600C924")]
|
||||
[Address(RVA = "0x2AD06C0", Offset = "0x2ACF4C0", VA = "0x182AD06C0", 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: 0x0400804E RID: 32846
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400804E")]
|
||||
private DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x0400804F RID: 32847
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400804F")]
|
||||
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: 0x02001F19 RID: 7961
|
||||
[Token(Token = "0x2001F19")]
|
||||
public class AttributeTable
|
||||
{
|
||||
// Token: 0x0600C925 RID: 51493 RVA: 0x002E111C File Offset: 0x002DF31C
|
||||
[Token(Token = "0x600C925")]
|
||||
[Address(RVA = "0x2ACF930", Offset = "0x2ACE730", VA = "0x182ACF930")]
|
||||
[Obsolete]
|
||||
public AttributeTable(Hashtable attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600C926 RID: 51494 RVA: 0x002E1140 File Offset: 0x002DF340
|
||||
[Token(Token = "0x600C926")]
|
||||
[Address(RVA = "0x2ACF8C0", Offset = "0x2ACE6C0", VA = "0x182ACF8C0")]
|
||||
public AttributeTable(IDictionary attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600C927 RID: 51495 RVA: 0x002E1164 File Offset: 0x002DF364
|
||||
[Token(Token = "0x600C927")]
|
||||
[Address(RVA = "0x2ACF6A0", Offset = "0x2ACE4A0", VA = "0x182ACF6A0")]
|
||||
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: 0x0600C928 RID: 51496 RVA: 0x002E11D8 File Offset: 0x002DF3D8
|
||||
[Token(Token = "0x600C928")]
|
||||
[Address(RVA = "0x2ACF9A0", Offset = "0x2ACE7A0", VA = "0x182ACF9A0")]
|
||||
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: 0x0600C929 RID: 51497 RVA: 0x002E1214 File Offset: 0x002DF414
|
||||
[Token(Token = "0x600C929")]
|
||||
[Address(RVA = "0x2ACF570", Offset = "0x2ACE370", VA = "0x182ACF570")]
|
||||
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: 0x0600C92A RID: 51498 RVA: 0x002E125C File Offset: 0x002DF45C
|
||||
[Token(Token = "0x600C92A")]
|
||||
[Address(RVA = "0x2ACE7A0", Offset = "0x2ACD5A0", VA = "0x182ACE7A0")]
|
||||
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: 0x17001F99 RID: 8089
|
||||
[Token(Token = "0x17001F99")]
|
||||
public Attribute this[DerObjectIdentifier oid]
|
||||
{
|
||||
[Token(Token = "0x600C92B")]
|
||||
[Address(RVA = "0x2ACFCB0", Offset = "0x2ACEAB0", VA = "0x182ACFCB0")]
|
||||
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: 0x0600C92C RID: 51500 RVA: 0x002E12EC File Offset: 0x002DF4EC
|
||||
[Token(Token = "0x600C92C")]
|
||||
[Address(RVA = "0x2ACEED0", Offset = "0x2ACDCD0", VA = "0x182ACEED0")]
|
||||
[Obsolete]
|
||||
public Attribute Get(DerObjectIdentifier oid)
|
||||
{
|
||||
return this[oid];
|
||||
}
|
||||
|
||||
// Token: 0x0600C92D RID: 51501 RVA: 0x002E1300 File Offset: 0x002DF500
|
||||
[Token(Token = "0x600C92D")]
|
||||
[Address(RVA = "0x2ACEA40", Offset = "0x2ACD840", VA = "0x182ACEA40")]
|
||||
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: 0x17001F9A RID: 8090
|
||||
// (get) Token: 0x0600C92E RID: 51502 RVA: 0x002E13BC File Offset: 0x002DF5BC
|
||||
[Token(Token = "0x17001F9A")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600C92E")]
|
||||
[Address(RVA = "0x2ACFAA0", Offset = "0x2ACE8A0", VA = "0x182ACFAA0")]
|
||||
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: 0x0600C92F RID: 51503 RVA: 0x002E140C File Offset: 0x002DF60C
|
||||
[Token(Token = "0x600C92F")]
|
||||
[Address(RVA = "0x2ACF4B0", Offset = "0x2ACE2B0", VA = "0x182ACF4B0")]
|
||||
public IDictionary ToDictionary()
|
||||
{
|
||||
return Platform.CreateHashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600C930 RID: 51504 RVA: 0x002E1424 File Offset: 0x002DF624
|
||||
[Token(Token = "0x600C930")]
|
||||
[Address(RVA = "0x2ACF510", Offset = "0x2ACE310", VA = "0x182ACF510")]
|
||||
[Obsolete]
|
||||
public Hashtable ToHashtable()
|
||||
{
|
||||
return new Hashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600C931 RID: 51505 RVA: 0x002E143C File Offset: 0x002DF63C
|
||||
[Token(Token = "0x600C931")]
|
||||
[Address(RVA = "0x2ACF010", Offset = "0x2ACDE10", VA = "0x182ACF010")]
|
||||
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: 0x0600C932 RID: 51506 RVA: 0x002E1500 File Offset: 0x002DF700
|
||||
[Token(Token = "0x600C932")]
|
||||
[Address(RVA = "0x2ACF400", Offset = "0x2ACE200", VA = "0x182ACF400")]
|
||||
public Attributes ToAttributes()
|
||||
{
|
||||
BerSet berSet = new BerSet(this.ToAsn1EncodableVector());
|
||||
Attributes attributes;
|
||||
attributes.attributes = berSet;
|
||||
return attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600C933 RID: 51507 RVA: 0x002E1524 File Offset: 0x002DF724
|
||||
[Token(Token = "0x600C933")]
|
||||
[Address(RVA = "0x2ACE930", Offset = "0x2ACD730", VA = "0x182ACE930")]
|
||||
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: 0x0600C934 RID: 51508 RVA: 0x002E1564 File Offset: 0x002DF764
|
||||
[Token(Token = "0x600C934")]
|
||||
[Address(RVA = "0x2ACEEE0", Offset = "0x2ACDCE0", VA = "0x182ACEEE0")]
|
||||
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: 0x04008050 RID: 32848
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008050")]
|
||||
private readonly IDictionary attributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1A RID: 7962
|
||||
[Token(Token = "0x2001F1A")]
|
||||
public class Attributes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C935 RID: 51509 RVA: 0x002E1598 File Offset: 0x002DF798
|
||||
[Token(Token = "0x600C935")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private Attributes(Asn1Set attributes)
|
||||
{
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600C936 RID: 51510 RVA: 0x002E15B4 File Offset: 0x002DF7B4
|
||||
[Token(Token = "0x600C936")]
|
||||
[Address(RVA = "0x2AD0B20", Offset = "0x2ACF920", VA = "0x182AD0B20")]
|
||||
public Attributes(Asn1EncodableVector v)
|
||||
{
|
||||
BerSet berSet = new BerSet(v);
|
||||
this.attributes = berSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600C937 RID: 51511 RVA: 0x002E15D8 File Offset: 0x002DF7D8
|
||||
[Token(Token = "0x600C937")]
|
||||
[Address(RVA = "0x2AD0A20", Offset = "0x2ACF820", VA = "0x182AD0A20")]
|
||||
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: 0x0600C938 RID: 51512 RVA: 0x002E160C File Offset: 0x002DF80C
|
||||
[Token(Token = "0x600C938")]
|
||||
[Address(RVA = "0x2AD0910", Offset = "0x2ACF710", VA = "0x182AD0910", 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: 0x0600C939 RID: 51513 RVA: 0x002E1658 File Offset: 0x002DF858
|
||||
[Token(Token = "0x600C939")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C939)
|
||||
|
||||
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: 0x04008051 RID: 32849
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008051")]
|
||||
private readonly Asn1Set attributes;
|
||||
}
|
||||
}
|
||||
+325
@@ -0,0 +1,325 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1B RID: 7963
|
||||
[Token(Token = "0x2001F1B")]
|
||||
public class AuthEnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C93A RID: 51514 RVA: 0x002E166C File Offset: 0x002DF86C
|
||||
[Token(Token = "0x600C93A")]
|
||||
[Address(RVA = "0x2AD1920", Offset = "0x2AD0720", VA = "0x182AD1920")]
|
||||
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: 0x0600C93B RID: 51515 RVA: 0x002E16BC File Offset: 0x002DF8BC
|
||||
[Token(Token = "0x600C93B")]
|
||||
[Address(RVA = "0x2AD19D0", Offset = "0x2AD07D0", VA = "0x182AD19D0")]
|
||||
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: 0x0600C93C RID: 51516 RVA: 0x002E1794 File Offset: 0x002DF994
|
||||
[Token(Token = "0x600C93C")]
|
||||
[Address(RVA = "0x2AD12B0", Offset = "0x2AD00B0", VA = "0x182AD12B0")]
|
||||
public static AuthEnvelopedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthEnvelopedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C93D RID: 51517 RVA: 0x002E17B0 File Offset: 0x002DF9B0
|
||||
[Token(Token = "0x600C93D")]
|
||||
[Address(RVA = "0x2AD12D0", Offset = "0x2AD00D0", VA = "0x182AD12D0")]
|
||||
public static AuthEnvelopedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C93D)
|
||||
|
||||
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: 0x17001F9B RID: 8091
|
||||
// (get) Token: 0x0600C93E RID: 51518 RVA: 0x002E1800 File Offset: 0x002DFA00
|
||||
[Token(Token = "0x17001F9B")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C93E")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9C RID: 8092
|
||||
// (get) Token: 0x0600C93F RID: 51519 RVA: 0x002E1814 File Offset: 0x002DFA14
|
||||
[Token(Token = "0x17001F9C")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600C93F")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9D RID: 8093
|
||||
// (get) Token: 0x0600C940 RID: 51520 RVA: 0x002E1828 File Offset: 0x002DFA28
|
||||
[Token(Token = "0x17001F9D")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600C940")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9E RID: 8094
|
||||
// (get) Token: 0x0600C941 RID: 51521 RVA: 0x002E183C File Offset: 0x002DFA3C
|
||||
[Token(Token = "0x17001F9E")]
|
||||
public EncryptedContentInfo AuthEncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C941")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.authEncryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F9F RID: 8095
|
||||
// (get) Token: 0x0600C942 RID: 51522 RVA: 0x002E1850 File Offset: 0x002DFA50
|
||||
[Token(Token = "0x17001F9F")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C942")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA0 RID: 8096
|
||||
// (get) Token: 0x0600C943 RID: 51523 RVA: 0x002E1864 File Offset: 0x002DFA64
|
||||
[Token(Token = "0x17001FA0")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600C943")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA1 RID: 8097
|
||||
// (get) Token: 0x0600C944 RID: 51524 RVA: 0x002E1878 File Offset: 0x002DFA78
|
||||
[Token(Token = "0x17001FA1")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C944")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C945 RID: 51525 RVA: 0x002E188C File Offset: 0x002DFA8C
|
||||
[Token(Token = "0x600C945")]
|
||||
[Address(RVA = "0x2AD14C0", Offset = "0x2AD02C0", VA = "0x182AD14C0", 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: 0x04008052 RID: 32850
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008052")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008053 RID: 32851
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008053")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x04008054 RID: 32852
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008054")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04008055 RID: 32853
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008055")]
|
||||
private EncryptedContentInfo authEncryptedContentInfo;
|
||||
|
||||
// Token: 0x04008056 RID: 32854
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008056")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04008057 RID: 32855
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008057")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04008058 RID: 32856
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008058")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F1C RID: 7964
|
||||
[Token(Token = "0x2001F1C")]
|
||||
public class AuthEnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600C946 RID: 51526 RVA: 0x002E19F0 File Offset: 0x002DFBF0
|
||||
[Token(Token = "0x600C946")]
|
||||
[Address(RVA = "0x2AD11E0", Offset = "0x2ACFFE0", VA = "0x182AD11E0")]
|
||||
public AuthEnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001FA2 RID: 8098
|
||||
// (get) Token: 0x0600C947 RID: 51527 RVA: 0x002E1A20 File Offset: 0x002DFC20
|
||||
[Token(Token = "0x17001FA2")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C947")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C948 RID: 51528 RVA: 0x002E1A34 File Offset: 0x002DFC34
|
||||
[Token(Token = "0x600C948")]
|
||||
[Address(RVA = "0x2AD0E20", Offset = "0x2ACFC20", VA = "0x182AD0E20")]
|
||||
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: 0x0600C949 RID: 51529 RVA: 0x002E1AA0 File Offset: 0x002DFCA0
|
||||
[Token(Token = "0x600C949")]
|
||||
[Address(RVA = "0x2AD1020", Offset = "0x2ACFE20", VA = "0x182AD1020")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C949)
|
||||
|
||||
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: 0x0600C94A RID: 51530 RVA: 0x002E1AE0 File Offset: 0x002DFCE0
|
||||
[Token(Token = "0x600C94A")]
|
||||
[Address(RVA = "0x2AD0CD0", Offset = "0x2ACFAD0", VA = "0x182AD0CD0")]
|
||||
public EncryptedContentInfoParser GetAuthEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C94B RID: 51531 RVA: 0x002E1B0C File Offset: 0x002DFD0C
|
||||
[Token(Token = "0x600C94B")]
|
||||
[Address(RVA = "0x2AD0B90", Offset = "0x2ACF990", VA = "0x182AD0B90")]
|
||||
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: 0x0600C94C RID: 51532 RVA: 0x002E1B5C File Offset: 0x002DFD5C
|
||||
[Token(Token = "0x600C94C")]
|
||||
[Address(RVA = "0x2AD0DA0", Offset = "0x2ACFBA0", VA = "0x182AD0DA0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C94D RID: 51533 RVA: 0x002E1B8C File Offset: 0x002DFD8C
|
||||
[Token(Token = "0x600C94D")]
|
||||
[Address(RVA = "0x2AD10C0", Offset = "0x2ACFEC0", VA = "0x182AD10C0")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C94D)
|
||||
|
||||
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: 0x04008059 RID: 32857
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008059")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x0400805A RID: 32858
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400805A")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400805B RID: 32859
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400805B")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x0400805C RID: 32860
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400805C")]
|
||||
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: 0x02001F1D RID: 7965
|
||||
[Token(Token = "0x2001F1D")]
|
||||
public class AuthenticatedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C94E RID: 51534 RVA: 0x002E1BB4 File Offset: 0x002DFDB4
|
||||
[Token(Token = "0x600C94E")]
|
||||
[Address(RVA = "0x2AD3600", Offset = "0x2AD2400", VA = "0x182AD3600")]
|
||||
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: 0x0600C94F RID: 51535 RVA: 0x002E1C20 File Offset: 0x002DFE20
|
||||
[Token(Token = "0x600C94F")]
|
||||
[Address(RVA = "0x2AD31C0", Offset = "0x2AD1FC0", VA = "0x182AD31C0")]
|
||||
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: 0x0600C950 RID: 51536 RVA: 0x002E1D30 File Offset: 0x002DFF30
|
||||
[Token(Token = "0x600C950")]
|
||||
[Address(RVA = "0x2AD2C40", Offset = "0x2AD1A40", VA = "0x182AD2C40")]
|
||||
public static AuthenticatedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthenticatedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C951 RID: 51537 RVA: 0x002E1D4C File Offset: 0x002DFF4C
|
||||
[Token(Token = "0x600C951")]
|
||||
[Address(RVA = "0x2AD2A50", Offset = "0x2AD1850", VA = "0x182AD2A50")]
|
||||
public static AuthenticatedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C951)
|
||||
|
||||
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: 0x17001FA3 RID: 8099
|
||||
// (get) Token: 0x0600C952 RID: 51538 RVA: 0x002E1D9C File Offset: 0x002DFF9C
|
||||
[Token(Token = "0x17001FA3")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C952")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA4 RID: 8100
|
||||
// (get) Token: 0x0600C953 RID: 51539 RVA: 0x002E1DB0 File Offset: 0x002DFFB0
|
||||
[Token(Token = "0x17001FA4")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600C953")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA5 RID: 8101
|
||||
// (get) Token: 0x0600C954 RID: 51540 RVA: 0x002E1DC4 File Offset: 0x002DFFC4
|
||||
[Token(Token = "0x17001FA5")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600C954")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA6 RID: 8102
|
||||
// (get) Token: 0x0600C955 RID: 51541 RVA: 0x002E1DD8 File Offset: 0x002DFFD8
|
||||
[Token(Token = "0x17001FA6")]
|
||||
public AlgorithmIdentifier MacAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C955")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.macAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA7 RID: 8103
|
||||
// (get) Token: 0x0600C956 RID: 51542 RVA: 0x002E1DEC File Offset: 0x002DFFEC
|
||||
[Token(Token = "0x17001FA7")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C956")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA8 RID: 8104
|
||||
// (get) Token: 0x0600C957 RID: 51543 RVA: 0x002E1E00 File Offset: 0x002E0000
|
||||
[Token(Token = "0x17001FA8")]
|
||||
public ContentInfo EncapsulatedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C957")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.encapsulatedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FA9 RID: 8105
|
||||
// (get) Token: 0x0600C958 RID: 51544 RVA: 0x002E1E14 File Offset: 0x002E0014
|
||||
[Token(Token = "0x17001FA9")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C958")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAA RID: 8106
|
||||
// (get) Token: 0x0600C959 RID: 51545 RVA: 0x002E1E28 File Offset: 0x002E0028
|
||||
[Token(Token = "0x17001FAA")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600C959")]
|
||||
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAB RID: 8107
|
||||
// (get) Token: 0x0600C95A RID: 51546 RVA: 0x002E1E3C File Offset: 0x002E003C
|
||||
[Token(Token = "0x17001FAB")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600C95A")]
|
||||
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C95B RID: 51547 RVA: 0x002E1E50 File Offset: 0x002E0050
|
||||
[Token(Token = "0x600C95B")]
|
||||
[Address(RVA = "0x2AD2C60", Offset = "0x2AD1A60", VA = "0x182AD2C60", 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: 0x0600C95C RID: 51548 RVA: 0x002E201C File Offset: 0x002E021C
|
||||
[Token(Token = "0x600C95C")]
|
||||
[Address(RVA = "0x2AD26F0", Offset = "0x2AD14F0", VA = "0x182AD26F0")]
|
||||
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: 0x0400805D RID: 32861
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400805D")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400805E RID: 32862
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400805E")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400805F RID: 32863
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400805F")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04008060 RID: 32864
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008060")]
|
||||
private AlgorithmIdentifier macAlgorithm;
|
||||
|
||||
// Token: 0x04008061 RID: 32865
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008061")]
|
||||
private AlgorithmIdentifier digestAlgorithm;
|
||||
|
||||
// Token: 0x04008062 RID: 32866
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008062")]
|
||||
private ContentInfo encapsulatedContentInfo;
|
||||
|
||||
// Token: 0x04008063 RID: 32867
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4008063")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04008064 RID: 32868
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4008064")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04008065 RID: 32869
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4008065")]
|
||||
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: 0x02001F1E RID: 7966
|
||||
[Token(Token = "0x2001F1E")]
|
||||
public class AuthenticatedDataParser
|
||||
{
|
||||
// Token: 0x0600C95D RID: 51549 RVA: 0x002E2098 File Offset: 0x002E0298
|
||||
[Token(Token = "0x600C95D")]
|
||||
[Address(RVA = "0x2AD2620", Offset = "0x2AD1420", VA = "0x182AD2620")]
|
||||
public AuthenticatedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001FAC RID: 8108
|
||||
// (get) Token: 0x0600C95E RID: 51550 RVA: 0x002E20C8 File Offset: 0x002E02C8
|
||||
[Token(Token = "0x17001FAC")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C95E")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C95F RID: 51551 RVA: 0x002E20DC File Offset: 0x002E02DC
|
||||
[Token(Token = "0x600C95F")]
|
||||
[Address(RVA = "0x2AD2260", Offset = "0x2AD1060", VA = "0x182AD2260")]
|
||||
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: 0x0600C960 RID: 51552 RVA: 0x002E2148 File Offset: 0x002E0348
|
||||
[Token(Token = "0x600C960")]
|
||||
[Address(RVA = "0x2AD2460", Offset = "0x2AD1260", VA = "0x182AD2460")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C960)
|
||||
|
||||
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: 0x0600C961 RID: 51553 RVA: 0x002E2188 File Offset: 0x002E0388
|
||||
[Token(Token = "0x600C961")]
|
||||
[Address(RVA = "0x2AD2100", Offset = "0x2AD0F00", VA = "0x182AD2100")]
|
||||
public AlgorithmIdentifier GetMacAlgorithm()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
return AlgorithmIdentifier.GetInstance(0);
|
||||
}
|
||||
|
||||
// Token: 0x0600C962 RID: 51554 RVA: 0x002E21B4 File Offset: 0x002E03B4
|
||||
[Token(Token = "0x600C962")]
|
||||
[Address(RVA = "0x2AD1F40", Offset = "0x2AD0D40", VA = "0x182AD1F40")]
|
||||
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: 0x0600C963 RID: 51555 RVA: 0x002E2204 File Offset: 0x002E0404
|
||||
[Token(Token = "0x600C963")]
|
||||
[Address(RVA = "0x2AD2030", Offset = "0x2AD0E30", VA = "0x182AD2030")]
|
||||
public ContentInfoParser GetEnapsulatedContentInfo()
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (contentInfoParser == 0);
|
||||
return contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C964 RID: 51556 RVA: 0x002E2230 File Offset: 0x002E0430
|
||||
[Token(Token = "0x600C964")]
|
||||
[Address(RVA = "0x2AD1E00", Offset = "0x2AD0C00", VA = "0x182AD1E00")]
|
||||
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: 0x0600C965 RID: 51557 RVA: 0x002E2280 File Offset: 0x002E0480
|
||||
[Token(Token = "0x600C965")]
|
||||
[Address(RVA = "0x2AD21E0", Offset = "0x2AD0FE0", VA = "0x182AD21E0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C966 RID: 51558 RVA: 0x002E22B0 File Offset: 0x002E04B0
|
||||
[Token(Token = "0x600C966")]
|
||||
[Address(RVA = "0x2AD2500", Offset = "0x2AD1300", VA = "0x182AD2500")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C966)
|
||||
|
||||
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: 0x04008066 RID: 32870
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008066")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04008067 RID: 32871
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008067")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008068 RID: 32872
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008068")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04008069 RID: 32873
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008069")]
|
||||
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: 0x02001F1F RID: 7967
|
||||
[Token(Token = "0x2001F1F")]
|
||||
public abstract class CmsAttributes
|
||||
{
|
||||
// Token: 0x0600C967 RID: 51559 RVA: 0x002E22D8 File Offset: 0x002E04D8
|
||||
[Token(Token = "0x600C967")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected CmsAttributes()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400806A RID: 32874
|
||||
[Token(Token = "0x400806A")]
|
||||
public static readonly DerObjectIdentifier ContentType = PkcsObjectIdentifiers.Pkcs9AtContentType;
|
||||
|
||||
// Token: 0x0400806B RID: 32875
|
||||
[Token(Token = "0x400806B")]
|
||||
public static readonly DerObjectIdentifier MessageDigest = PkcsObjectIdentifiers.Pkcs9AtMessageDigest;
|
||||
|
||||
// Token: 0x0400806C RID: 32876
|
||||
[Token(Token = "0x400806C")]
|
||||
public static readonly DerObjectIdentifier SigningTime = PkcsObjectIdentifiers.Pkcs9AtSigningTime;
|
||||
|
||||
// Token: 0x0400806D RID: 32877
|
||||
[Token(Token = "0x400806D")]
|
||||
public static readonly DerObjectIdentifier CounterSignature = PkcsObjectIdentifiers.Pkcs9AtCounterSignature;
|
||||
|
||||
// Token: 0x0400806E RID: 32878
|
||||
[Token(Token = "0x400806E")]
|
||||
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: 0x02001F20 RID: 7968
|
||||
[Token(Token = "0x2001F20")]
|
||||
public abstract class CmsObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600C969 RID: 51561 RVA: 0x002E232C File Offset: 0x002E052C
|
||||
[Token(Token = "0x600C969")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected CmsObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400806F RID: 32879
|
||||
[Token(Token = "0x400806F")]
|
||||
public static readonly DerObjectIdentifier Data = PkcsObjectIdentifiers.Data;
|
||||
|
||||
// Token: 0x04008070 RID: 32880
|
||||
[Token(Token = "0x4008070")]
|
||||
public static readonly DerObjectIdentifier SignedData = PkcsObjectIdentifiers.SignedData;
|
||||
|
||||
// Token: 0x04008071 RID: 32881
|
||||
[Token(Token = "0x4008071")]
|
||||
public static readonly DerObjectIdentifier EnvelopedData = PkcsObjectIdentifiers.EnvelopedData;
|
||||
|
||||
// Token: 0x04008072 RID: 32882
|
||||
[Token(Token = "0x4008072")]
|
||||
public static readonly DerObjectIdentifier SignedAndEnvelopedData = PkcsObjectIdentifiers.SignedAndEnvelopedData;
|
||||
|
||||
// Token: 0x04008073 RID: 32883
|
||||
[Token(Token = "0x4008073")]
|
||||
public static readonly DerObjectIdentifier DigestedData = PkcsObjectIdentifiers.DigestedData;
|
||||
|
||||
// Token: 0x04008074 RID: 32884
|
||||
[Token(Token = "0x4008074")]
|
||||
public static readonly DerObjectIdentifier EncryptedData = PkcsObjectIdentifiers.EncryptedData;
|
||||
|
||||
// Token: 0x04008075 RID: 32885
|
||||
[Token(Token = "0x4008075")]
|
||||
public static readonly DerObjectIdentifier AuthenticatedData = PkcsObjectIdentifiers.IdCTAuthData;
|
||||
|
||||
// Token: 0x04008076 RID: 32886
|
||||
[Token(Token = "0x4008076")]
|
||||
public static readonly DerObjectIdentifier CompressedData = PkcsObjectIdentifiers.IdCTCompressedData;
|
||||
|
||||
// Token: 0x04008077 RID: 32887
|
||||
[Token(Token = "0x4008077")]
|
||||
public static readonly DerObjectIdentifier AuthEnvelopedData = PkcsObjectIdentifiers.IdCTAuthEnvelopedData;
|
||||
|
||||
// Token: 0x04008078 RID: 32888
|
||||
[Token(Token = "0x4008078")]
|
||||
public static readonly DerObjectIdentifier timestampedData = PkcsObjectIdentifiers.IdCTTimestampedData;
|
||||
|
||||
// Token: 0x04008079 RID: 32889
|
||||
[Token(Token = "0x4008079")]
|
||||
public static readonly DerObjectIdentifier id_ri = new DerObjectIdentifier("1.3.6.1.5.5.7.16");
|
||||
|
||||
// Token: 0x0400807A RID: 32890
|
||||
[Token(Token = "0x400807A")]
|
||||
public static readonly DerObjectIdentifier id_ri_ocsp_response = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x0400807B RID: 32891
|
||||
[Token(Token = "0x400807B")]
|
||||
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: 0x02001F21 RID: 7969
|
||||
[Token(Token = "0x2001F21")]
|
||||
public class CompressedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C96B RID: 51563 RVA: 0x002E23E4 File Offset: 0x002E05E4
|
||||
[Token(Token = "0x600C96B")]
|
||||
[Address(RVA = "0x2AD5450", Offset = "0x2AD4250", VA = "0x182AD5450")]
|
||||
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: 0x0600C96C RID: 51564 RVA: 0x002E2418 File Offset: 0x002E0618
|
||||
[Token(Token = "0x600C96C")]
|
||||
[Address(RVA = "0x2AD54D0", Offset = "0x2AD42D0", VA = "0x182AD54D0")]
|
||||
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: 0x0600C96D RID: 51565 RVA: 0x002E2468 File Offset: 0x002E0668
|
||||
[Token(Token = "0x600C96D")]
|
||||
[Address(RVA = "0x2AD4FF0", Offset = "0x2AD3DF0", VA = "0x182AD4FF0")]
|
||||
public static CompressedData GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return CompressedData.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C96E RID: 51566 RVA: 0x002E2484 File Offset: 0x002E0684
|
||||
[Token(Token = "0x600C96E")]
|
||||
[Address(RVA = "0x2AD5010", Offset = "0x2AD3E10", VA = "0x182AD5010")]
|
||||
public static CompressedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C96E)
|
||||
|
||||
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: 0x17001FAD RID: 8109
|
||||
// (get) Token: 0x0600C96F RID: 51567 RVA: 0x002E24E8 File Offset: 0x002E06E8
|
||||
[Token(Token = "0x17001FAD")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C96F")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAE RID: 8110
|
||||
// (get) Token: 0x0600C970 RID: 51568 RVA: 0x002E24FC File Offset: 0x002E06FC
|
||||
[Token(Token = "0x17001FAE")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C970")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAF RID: 8111
|
||||
// (get) Token: 0x0600C971 RID: 51569 RVA: 0x002E2510 File Offset: 0x002E0710
|
||||
[Token(Token = "0x17001FAF")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C971")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.encapContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C972 RID: 51570 RVA: 0x002E2524 File Offset: 0x002E0724
|
||||
[Token(Token = "0x600C972")]
|
||||
[Address(RVA = "0x2AD52E0", Offset = "0x2AD40E0", VA = "0x182AD52E0", 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: 0x0400807C RID: 32892
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400807C")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400807D RID: 32893
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400807D")]
|
||||
private AlgorithmIdentifier compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400807E RID: 32894
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400807E")]
|
||||
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: 0x02001F22 RID: 7970
|
||||
[Token(Token = "0x2001F22")]
|
||||
public class CompressedDataParser
|
||||
{
|
||||
// Token: 0x0600C973 RID: 51571 RVA: 0x002E2580 File Offset: 0x002E0780
|
||||
[Token(Token = "0x600C973")]
|
||||
[Address(RVA = "0x2AD4E70", Offset = "0x2AD3C70", VA = "0x182AD4E70")]
|
||||
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: 0x17001FB0 RID: 8112
|
||||
// (get) Token: 0x0600C974 RID: 51572 RVA: 0x002E25C0 File Offset: 0x002E07C0
|
||||
[Token(Token = "0x17001FB0")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C974")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB1 RID: 8113
|
||||
// (get) Token: 0x0600C975 RID: 51573 RVA: 0x002E25D4 File Offset: 0x002E07D4
|
||||
[Token(Token = "0x17001FB1")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C975")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this._compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C976 RID: 51574 RVA: 0x002E25E8 File Offset: 0x002E07E8
|
||||
[Token(Token = "0x600C976")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
public ContentInfoParser GetEncapContentInfo()
|
||||
{
|
||||
return this._encapContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0400807F RID: 32895
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400807F")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04008080 RID: 32896
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008080")]
|
||||
private AlgorithmIdentifier _compressionAlgorithm;
|
||||
|
||||
// Token: 0x04008081 RID: 32897
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008081")]
|
||||
private ContentInfoParser _encapContentInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F23 RID: 7971
|
||||
[Token(Token = "0x2001F23")]
|
||||
public class ContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C977 RID: 51575 RVA: 0x002E25FC File Offset: 0x002E07FC
|
||||
[Token(Token = "0x600C977")]
|
||||
[Address(RVA = "0x2AD5BD0", Offset = "0x2AD49D0", VA = "0x182AD5BD0")]
|
||||
public static ContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C977)
|
||||
|
||||
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: 0x0600C978 RID: 51576 RVA: 0x002E264C File Offset: 0x002E084C
|
||||
[Token(Token = "0x600C978")]
|
||||
[Address(RVA = "0x2AD5BB0", Offset = "0x2AD49B0", VA = "0x182AD5BB0")]
|
||||
public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return ContentInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C979 RID: 51577 RVA: 0x002E2668 File Offset: 0x002E0868
|
||||
[Token(Token = "0x600C979")]
|
||||
[Address(RVA = "0x2AD5F60", Offset = "0x2AD4D60", VA = "0x182AD5F60")]
|
||||
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: 0x0600C97A RID: 51578 RVA: 0x002E26C4 File Offset: 0x002E08C4
|
||||
[Token(Token = "0x600C97A")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
// Token: 0x17001FB2 RID: 8114
|
||||
// (get) Token: 0x0600C97B RID: 51579 RVA: 0x002E26E8 File Offset: 0x002E08E8
|
||||
[Token(Token = "0x17001FB2")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C97B")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB3 RID: 8115
|
||||
// (get) Token: 0x0600C97C RID: 51580 RVA: 0x002E26FC File Offset: 0x002E08FC
|
||||
[Token(Token = "0x17001FB3")]
|
||||
public Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600C97C")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C97D RID: 51581 RVA: 0x002E2710 File Offset: 0x002E0910
|
||||
[Token(Token = "0x600C97D")]
|
||||
[Address(RVA = "0x2AD5DC0", Offset = "0x2AD4BC0", VA = "0x182AD5DC0", 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: 0x04008082 RID: 32898
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008082")]
|
||||
private readonly DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04008083 RID: 32899
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008083")]
|
||||
private readonly Asn1Encodable content;
|
||||
}
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F24 RID: 7972
|
||||
[Token(Token = "0x2001F24")]
|
||||
public class ContentInfoParser
|
||||
{
|
||||
// Token: 0x0600C97E RID: 51582 RVA: 0x002E2788 File Offset: 0x002E0988
|
||||
[Token(Token = "0x600C97E")]
|
||||
[Address(RVA = "0x2AD5A90", Offset = "0x2AD4890", VA = "0x182AD5A90")]
|
||||
public ContentInfoParser(Asn1SequenceParser seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this.contentType = seq;
|
||||
if (seq == 0 || seq != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001FB4 RID: 8116
|
||||
// (get) Token: 0x0600C97F RID: 51583 RVA: 0x002E27C0 File Offset: 0x002E09C0
|
||||
[Token(Token = "0x17001FB4")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C97F")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C980 RID: 51584 RVA: 0x002E27D4 File Offset: 0x002E09D4
|
||||
[Token(Token = "0x600C980")]
|
||||
[Address(RVA = "0x2AD5A20", Offset = "0x2AD4820", VA = "0x182AD5A20")]
|
||||
public IAsn1Convertible GetContent(int tag)
|
||||
{
|
||||
if (this.content != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04008084 RID: 32900
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008084")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04008085 RID: 32901
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008085")]
|
||||
private Asn1TaggedObjectParser content;
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc
|
||||
{
|
||||
// Token: 0x02001F47 RID: 8007
|
||||
[Token(Token = "0x2001F47")]
|
||||
public class MQVuserKeyingMaterial : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA93 RID: 51859 RVA: 0x002E66B8 File Offset: 0x002E48B8
|
||||
[Token(Token = "0x600CA93")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public MQVuserKeyingMaterial(OriginatorPublicKey ephemeralPublicKey, Asn1OctetString addedukm)
|
||||
{
|
||||
this.ephemeralPublicKey = ephemeralPublicKey;
|
||||
this.addedukm = addedukm;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA94 RID: 51860 RVA: 0x002E66DC File Offset: 0x002E48DC
|
||||
[Token(Token = "0x600CA94")]
|
||||
[Address(RVA = "0x2ADAC20", Offset = "0x2AD9A20", VA = "0x182ADAC20")]
|
||||
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: 0x0600CA95 RID: 51861 RVA: 0x002E6724 File Offset: 0x002E4924
|
||||
[Token(Token = "0x600CA95")]
|
||||
[Address(RVA = "0x2ADAA60", Offset = "0x2AD9860", VA = "0x182ADAA60")]
|
||||
public static MQVuserKeyingMaterial GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return MQVuserKeyingMaterial.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA96 RID: 51862 RVA: 0x002E6740 File Offset: 0x002E4940
|
||||
[Token(Token = "0x600CA96")]
|
||||
[Address(RVA = "0x2ADA790", Offset = "0x2AD9590", VA = "0x182ADA790")]
|
||||
public static MQVuserKeyingMaterial GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA96)
|
||||
|
||||
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: 0x17002016 RID: 8214
|
||||
// (get) Token: 0x0600CA97 RID: 51863 RVA: 0x002E67A0 File Offset: 0x002E49A0
|
||||
[Token(Token = "0x17002016")]
|
||||
public OriginatorPublicKey EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x600CA97")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002017 RID: 8215
|
||||
// (get) Token: 0x0600CA98 RID: 51864 RVA: 0x002E67B4 File Offset: 0x002E49B4
|
||||
[Token(Token = "0x17002017")]
|
||||
public Asn1OctetString AddedUkm
|
||||
{
|
||||
[Token(Token = "0x600CA98")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.addedukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA99 RID: 51865 RVA: 0x002E67C8 File Offset: 0x002E49C8
|
||||
[Token(Token = "0x600CA99")]
|
||||
[Address(RVA = "0x2ADAA80", Offset = "0x2AD9880", VA = "0x182ADAA80", 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: 0x040080F1 RID: 33009
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080F1")]
|
||||
private OriginatorPublicKey ephemeralPublicKey;
|
||||
|
||||
// Token: 0x040080F2 RID: 33010
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080F2")]
|
||||
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: 0x02001F25 RID: 7973
|
||||
[Token(Token = "0x2001F25")]
|
||||
public class EncryptedContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C981 RID: 51585 RVA: 0x002E27EC File Offset: 0x002E09EC
|
||||
[Token(Token = "0x600C981")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
public EncryptedContentInfo(DerObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, Asn1OctetString encryptedContent)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.contentEncryptionAlgorithm = contentEncryptionAlgorithm;
|
||||
this.encryptedContent = encryptedContent;
|
||||
}
|
||||
|
||||
// Token: 0x0600C982 RID: 51586 RVA: 0x002E2814 File Offset: 0x002E0A14
|
||||
[Token(Token = "0x600C982")]
|
||||
[Address(RVA = "0x2AD6700", Offset = "0x2AD5500", VA = "0x182AD6700")]
|
||||
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: 0x0600C983 RID: 51587 RVA: 0x002E2878 File Offset: 0x002E0A78
|
||||
[Token(Token = "0x600C983")]
|
||||
[Address(RVA = "0x2AD6310", Offset = "0x2AD5110", VA = "0x182AD6310")]
|
||||
public static EncryptedContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C983)
|
||||
|
||||
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: 0x17001FB5 RID: 8117
|
||||
// (get) Token: 0x0600C984 RID: 51588 RVA: 0x002E28C8 File Offset: 0x002E0AC8
|
||||
[Token(Token = "0x17001FB5")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C984")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB6 RID: 8118
|
||||
// (get) Token: 0x0600C985 RID: 51589 RVA: 0x002E28DC File Offset: 0x002E0ADC
|
||||
[Token(Token = "0x17001FB6")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C985")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB7 RID: 8119
|
||||
// (get) Token: 0x0600C986 RID: 51590 RVA: 0x002E28F0 File Offset: 0x002E0AF0
|
||||
[Token(Token = "0x17001FB7")]
|
||||
public Asn1OctetString EncryptedContent
|
||||
{
|
||||
[Token(Token = "0x600C986")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C987 RID: 51591 RVA: 0x002E2904 File Offset: 0x002E0B04
|
||||
[Token(Token = "0x600C987")]
|
||||
[Address(RVA = "0x2AD6500", Offset = "0x2AD5300", VA = "0x182AD6500", 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: 0x04008086 RID: 32902
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008086")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04008087 RID: 32903
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008087")]
|
||||
private AlgorithmIdentifier contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04008088 RID: 32904
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008088")]
|
||||
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: 0x02001F26 RID: 7974
|
||||
[Token(Token = "0x2001F26")]
|
||||
public class EncryptedContentInfoParser
|
||||
{
|
||||
// Token: 0x0600C988 RID: 51592 RVA: 0x002E2998 File Offset: 0x002E0B98
|
||||
[Token(Token = "0x600C988")]
|
||||
[Address(RVA = "0x2AD61C0", Offset = "0x2AD4FC0", VA = "0x182AD61C0")]
|
||||
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: 0x17001FB8 RID: 8120
|
||||
// (get) Token: 0x0600C989 RID: 51593 RVA: 0x002E29D8 File Offset: 0x002E0BD8
|
||||
[Token(Token = "0x17001FB8")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600C989")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this._contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FB9 RID: 8121
|
||||
// (get) Token: 0x0600C98A RID: 51594 RVA: 0x002E29EC File Offset: 0x002E0BEC
|
||||
[Token(Token = "0x17001FB9")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C98A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this._contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C98B RID: 51595 RVA: 0x002E2A00 File Offset: 0x002E0C00
|
||||
[Token(Token = "0x600C98B")]
|
||||
[Address(RVA = "0x2AD6160", Offset = "0x2AD4F60", VA = "0x182AD6160")]
|
||||
public IAsn1Convertible GetEncryptedContent(int tag)
|
||||
{
|
||||
Asn1TaggedObjectParser encryptedContent = this._encryptedContent;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04008089 RID: 32905
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008089")]
|
||||
private DerObjectIdentifier _contentType;
|
||||
|
||||
// Token: 0x0400808A RID: 32906
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400808A")]
|
||||
private AlgorithmIdentifier _contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x0400808B RID: 32907
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400808B")]
|
||||
private Asn1TaggedObjectParser _encryptedContent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F27 RID: 7975
|
||||
[Token(Token = "0x2001F27")]
|
||||
public class EncryptedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C98C RID: 51596 RVA: 0x002E2A1C File Offset: 0x002E0C1C
|
||||
[Token(Token = "0x600C98C")]
|
||||
[Address(RVA = "0x2AD6880", Offset = "0x2AD5680", VA = "0x182AD6880")]
|
||||
public static EncryptedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C98C)
|
||||
|
||||
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: 0x0600C98D RID: 51597 RVA: 0x002E2A68 File Offset: 0x002E0C68
|
||||
[Token(Token = "0x600C98D")]
|
||||
[Address(RVA = "0x2AD6F00", Offset = "0x2AD5D00", VA = "0x182AD6F00")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C98D)
|
||||
|
||||
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: 0x0600C98E RID: 51598 RVA: 0x002E2AAC File Offset: 0x002E0CAC
|
||||
[Token(Token = "0x600C98E")]
|
||||
[Address(RVA = "0x2AD6C70", Offset = "0x2AD5A70", VA = "0x182AD6C70")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C98E)
|
||||
|
||||
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: 0x0600C98F RID: 51599 RVA: 0x002E2AEC File Offset: 0x002E0CEC
|
||||
[Token(Token = "0x600C98F")]
|
||||
[Address(RVA = "0x2AD6D40", Offset = "0x2AD5B40", VA = "0x182AD6D40")]
|
||||
private EncryptedData(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C98F)
|
||||
|
||||
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: 0x17001FBA RID: 8122
|
||||
// (get) Token: 0x0600C990 RID: 51600 RVA: 0x002E2B44 File Offset: 0x002E0D44
|
||||
[Token(Token = "0x17001FBA")]
|
||||
public virtual DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C990")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FBB RID: 8123
|
||||
// (get) Token: 0x0600C991 RID: 51601 RVA: 0x002E2B58 File Offset: 0x002E0D58
|
||||
[Token(Token = "0x17001FBB")]
|
||||
public virtual EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C991")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FBC RID: 8124
|
||||
// (get) Token: 0x0600C992 RID: 51602 RVA: 0x002E2B6C File Offset: 0x002E0D6C
|
||||
[Token(Token = "0x17001FBC")]
|
||||
public virtual Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600C992")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C993 RID: 51603 RVA: 0x002E2B80 File Offset: 0x002E0D80
|
||||
[Token(Token = "0x600C993")]
|
||||
[Address(RVA = "0x2AD6A70", Offset = "0x2AD5870", VA = "0x182AD6A70", 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: 0x0400808C RID: 32908
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400808C")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x0400808D RID: 32909
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400808D")]
|
||||
private readonly EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x0400808E RID: 32910
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400808E")]
|
||||
private readonly Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,314 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F28 RID: 7976
|
||||
[Token(Token = "0x2001F28")]
|
||||
public class EnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C994 RID: 51604 RVA: 0x002E2C10 File Offset: 0x002E0E10
|
||||
[Token(Token = "0x600C994")]
|
||||
[Address(RVA = "0x2AD7C40", Offset = "0x2AD6A40", VA = "0x182AD7C40")]
|
||||
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: 0x0600C995 RID: 51605 RVA: 0x002E2C50 File Offset: 0x002E0E50
|
||||
[Token(Token = "0x600C995")]
|
||||
[Address(RVA = "0x2AD7F80", Offset = "0x2AD6D80", VA = "0x182AD7F80")]
|
||||
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: 0x0600C996 RID: 51606 RVA: 0x002E2C94 File Offset: 0x002E0E94
|
||||
[Token(Token = "0x600C996")]
|
||||
[Address(RVA = "0x2AD7D00", Offset = "0x2AD6B00", VA = "0x182AD7D00")]
|
||||
[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: 0x0600C997 RID: 51607 RVA: 0x002E2D34 File Offset: 0x002E0F34
|
||||
[Token(Token = "0x600C997")]
|
||||
[Address(RVA = "0x2AD7700", Offset = "0x2AD6500", VA = "0x182AD7700")]
|
||||
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: 0x0600C998 RID: 51608 RVA: 0x002E2D70 File Offset: 0x002E0F70
|
||||
[Token(Token = "0x600C998")]
|
||||
[Address(RVA = "0x2AD7800", Offset = "0x2AD6600", VA = "0x182AD7800")]
|
||||
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: 0x17001FBD RID: 8125
|
||||
// (get) Token: 0x0600C999 RID: 51609 RVA: 0x002E2DA4 File Offset: 0x002E0FA4
|
||||
[Token(Token = "0x17001FBD")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C999")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FBE RID: 8126
|
||||
// (get) Token: 0x0600C99A RID: 51610 RVA: 0x002E2DB8 File Offset: 0x002E0FB8
|
||||
[Token(Token = "0x17001FBE")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600C99A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FBF RID: 8127
|
||||
// (get) Token: 0x0600C99B RID: 51611 RVA: 0x002E2DCC File Offset: 0x002E0FCC
|
||||
[Token(Token = "0x17001FBF")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600C99B")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FC0 RID: 8128
|
||||
// (get) Token: 0x0600C99C RID: 51612 RVA: 0x002E2DE0 File Offset: 0x002E0FE0
|
||||
[Token(Token = "0x17001FC0")]
|
||||
public EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C99C")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FC1 RID: 8129
|
||||
// (get) Token: 0x0600C99D RID: 51613 RVA: 0x002E2DF4 File Offset: 0x002E0FF4
|
||||
[Token(Token = "0x17001FC1")]
|
||||
public Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600C99D")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C99E RID: 51614 RVA: 0x002E2E08 File Offset: 0x002E1008
|
||||
[Token(Token = "0x600C99E")]
|
||||
[Address(RVA = "0x2AD7900", Offset = "0x2AD6700", VA = "0x182AD7900", 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: 0x0600C99F RID: 51615 RVA: 0x002E2F04 File Offset: 0x002E1104
|
||||
[Token(Token = "0x600C99F")]
|
||||
[Address(RVA = "0x2AD7520", Offset = "0x2AD6320", VA = "0x182AD7520")]
|
||||
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: 0x0400808F RID: 32911
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400808F")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04008090 RID: 32912
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008090")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x04008091 RID: 32913
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008091")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04008092 RID: 32914
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008092")]
|
||||
private EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x04008093 RID: 32915
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008093")]
|
||||
private Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F29 RID: 7977
|
||||
[Token(Token = "0x2001F29")]
|
||||
public class EnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600C9A0 RID: 51616 RVA: 0x002E2F60 File Offset: 0x002E1160
|
||||
[Token(Token = "0x600C9A0")]
|
||||
[Address(RVA = "0x2AD7450", Offset = "0x2AD6250", VA = "0x182AD7450")]
|
||||
public EnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this._seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001FC2 RID: 8130
|
||||
// (get) Token: 0x0600C9A1 RID: 51617 RVA: 0x002E2F90 File Offset: 0x002E1190
|
||||
[Token(Token = "0x17001FC2")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9A1")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A2 RID: 51618 RVA: 0x002E2FA4 File Offset: 0x002E11A4
|
||||
[Token(Token = "0x600C9A2")]
|
||||
[Address(RVA = "0x2AD7090", Offset = "0x2AD5E90", VA = "0x182AD7090")]
|
||||
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: 0x0600C9A3 RID: 51619 RVA: 0x002E3010 File Offset: 0x002E1210
|
||||
[Token(Token = "0x600C9A3")]
|
||||
[Address(RVA = "0x2AD7290", Offset = "0x2AD6090", VA = "0x182AD7290")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9A3)
|
||||
|
||||
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: 0x0600C9A4 RID: 51620 RVA: 0x002E3050 File Offset: 0x002E1250
|
||||
[Token(Token = "0x600C9A4")]
|
||||
[Address(RVA = "0x2AD6FC0", Offset = "0x2AD5DC0", VA = "0x182AD6FC0")]
|
||||
public EncryptedContentInfoParser GetEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this._nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
}
|
||||
this._nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A5 RID: 51621 RVA: 0x002E307C File Offset: 0x002E127C
|
||||
[Token(Token = "0x600C9A5")]
|
||||
[Address(RVA = "0x2AD7330", Offset = "0x2AD6130", VA = "0x182AD7330")]
|
||||
public Asn1SetParser GetUnprotectedAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9A5)
|
||||
|
||||
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: 0x04008094 RID: 32916
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008094")]
|
||||
private Asn1SequenceParser _seq;
|
||||
|
||||
// Token: 0x04008095 RID: 32917
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008095")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04008096 RID: 32918
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008096")]
|
||||
private IAsn1Convertible _nextObject;
|
||||
|
||||
// Token: 0x04008097 RID: 32919
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008097")]
|
||||
private bool _originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F2A RID: 7978
|
||||
[Token(Token = "0x2001F2A")]
|
||||
public class Evidence : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C9A6 RID: 51622 RVA: 0x002E30A4 File Offset: 0x002E12A4
|
||||
[Token(Token = "0x600C9A6")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public Evidence(TimeStampTokenEvidence tstEvidence)
|
||||
{
|
||||
this.tstEvidence = tstEvidence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A7 RID: 51623 RVA: 0x002E30C0 File Offset: 0x002E12C0
|
||||
[Token(Token = "0x600C9A7")]
|
||||
[Address(RVA = "0x2AD8360", Offset = "0x2AD7160", VA = "0x182AD8360")]
|
||||
private Evidence(Asn1TaggedObject tagged)
|
||||
{
|
||||
Asn1Sequence instance2;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
if (tagged.tagNo != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num = 0;
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(tagged, num != 0);
|
||||
if (instance == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
instance2 = Asn1Sequence.GetInstance(instance);
|
||||
TimeStampTokenEvidence timeStampTokenEvidence = new TimeStampTokenEvidence(instance2);
|
||||
}
|
||||
}
|
||||
while (instance2 == 0);
|
||||
int num2 = 0;
|
||||
this.tstEvidence = num2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9A8 RID: 51624 RVA: 0x002E311C File Offset: 0x002E131C
|
||||
[Token(Token = "0x600C9A8")]
|
||||
[Address(RVA = "0x2AD8040", Offset = "0x2AD6E40", VA = "0x182AD8040")]
|
||||
public static Evidence GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9A8)
|
||||
|
||||
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_6D:
|
||||
stloc:string(var_13_73, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_14_8B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in GetInstance: "), ldloc:string(var_13_73)), 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: 0x17001FC3 RID: 8131
|
||||
// (get) Token: 0x0600C9A9 RID: 51625 RVA: 0x002E31B8 File Offset: 0x002E13B8
|
||||
[Token(Token = "0x17001FC3")]
|
||||
public virtual TimeStampTokenEvidence TstEvidence
|
||||
{
|
||||
[Token(Token = "0x600C9A9")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tstEvidence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AA RID: 51626 RVA: 0x002E31CC File Offset: 0x002E13CC
|
||||
[Token(Token = "0x600C9AA")]
|
||||
[Address(RVA = "0x2AD82F0", Offset = "0x2AD70F0", VA = "0x182AD82F0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9AA)
|
||||
|
||||
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: 0x04008098 RID: 32920
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008098")]
|
||||
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: 0x02001F2B RID: 7979
|
||||
[Token(Token = "0x2001F2B")]
|
||||
public class IssuerAndSerialNumber : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9AB RID: 51627 RVA: 0x002E31F8 File Offset: 0x002E13F8
|
||||
[Token(Token = "0x600C9AB")]
|
||||
[Address(RVA = "0x2AD8490", Offset = "0x2AD7290", VA = "0x182AD8490")]
|
||||
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: 0x0600C9AC RID: 51628 RVA: 0x002E3248 File Offset: 0x002E1448
|
||||
[Token(Token = "0x600C9AC")]
|
||||
[Address(RVA = "0x2AD87C0", Offset = "0x2AD75C0", VA = "0x182AD87C0")]
|
||||
[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: 0x0600C9AD RID: 51629 RVA: 0x002E3290 File Offset: 0x002E1490
|
||||
[Token(Token = "0x600C9AD")]
|
||||
[Address(RVA = "0x2AD8740", Offset = "0x2AD7540", VA = "0x182AD8740")]
|
||||
public IssuerAndSerialNumber(X509Name name, BigInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
this.serialNumber = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9AE RID: 51630 RVA: 0x002E32B8 File Offset: 0x002E14B8
|
||||
[Token(Token = "0x600C9AE")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public IssuerAndSerialNumber(X509Name name, DerInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x17001FC4 RID: 8132
|
||||
// (get) Token: 0x0600C9AF RID: 51631 RVA: 0x002E32DC File Offset: 0x002E14DC
|
||||
[Token(Token = "0x17001FC4")]
|
||||
public X509Name Name
|
||||
{
|
||||
[Token(Token = "0x600C9AF")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FC5 RID: 8133
|
||||
// (get) Token: 0x0600C9B0 RID: 51632 RVA: 0x002E32F0 File Offset: 0x002E14F0
|
||||
[Token(Token = "0x17001FC5")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C9B0")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9B1 RID: 51633 RVA: 0x002E3304 File Offset: 0x002E1504
|
||||
[Token(Token = "0x600C9B1")]
|
||||
[Address(RVA = "0x2AD8630", Offset = "0x2AD7430", VA = "0x182AD8630", 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: 0x04008099 RID: 32921
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008099")]
|
||||
private X509Name name;
|
||||
|
||||
// Token: 0x0400809A RID: 32922
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400809A")]
|
||||
private DerInteger serialNumber;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F2C RID: 7980
|
||||
[Token(Token = "0x2001F2C")]
|
||||
public class KekIdentifier : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9B2 RID: 51634 RVA: 0x002E334C File Offset: 0x002E154C
|
||||
[Token(Token = "0x600C9B2")]
|
||||
[Address(RVA = "0x2AD8CC0", Offset = "0x2AD7AC0", VA = "0x182AD8CC0")]
|
||||
public KekIdentifier(byte[] keyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(keyIdentifier);
|
||||
this.keyIdentifier = derOctetString;
|
||||
this.date = date;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9B3 RID: 51635 RVA: 0x002E337C File Offset: 0x002E157C
|
||||
[Token(Token = "0x600C9B3")]
|
||||
[Address(RVA = "0x2AD8D50", Offset = "0x2AD7B50", VA = "0x182AD8D50")]
|
||||
public KekIdentifier(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9B3)
|
||||
|
||||
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: 0x0600C9B4 RID: 51636 RVA: 0x002E3410 File Offset: 0x002E1610
|
||||
[Token(Token = "0x600C9B4")]
|
||||
[Address(RVA = "0x2AD88E0", Offset = "0x2AD76E0", VA = "0x182AD88E0")]
|
||||
public static KekIdentifier GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KekIdentifier.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C9B5 RID: 51637 RVA: 0x002E342C File Offset: 0x002E162C
|
||||
[Token(Token = "0x600C9B5")]
|
||||
[Address(RVA = "0x2AD8900", Offset = "0x2AD7700", VA = "0x182AD8900")]
|
||||
public static KekIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9B5)
|
||||
|
||||
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: 0x17001FC6 RID: 8134
|
||||
// (get) Token: 0x0600C9B6 RID: 51638 RVA: 0x002E347C File Offset: 0x002E167C
|
||||
[Token(Token = "0x17001FC6")]
|
||||
public Asn1OctetString KeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C9B6")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.keyIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FC7 RID: 8135
|
||||
// (get) Token: 0x0600C9B7 RID: 51639 RVA: 0x002E3490 File Offset: 0x002E1690
|
||||
[Token(Token = "0x17001FC7")]
|
||||
public DerGeneralizedTime Date
|
||||
{
|
||||
[Token(Token = "0x600C9B7")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.date;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FC8 RID: 8136
|
||||
// (get) Token: 0x0600C9B8 RID: 51640 RVA: 0x002E34A4 File Offset: 0x002E16A4
|
||||
[Token(Token = "0x17001FC8")]
|
||||
public OtherKeyAttribute Other
|
||||
{
|
||||
[Token(Token = "0x600C9B8")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.other;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9B9 RID: 51641 RVA: 0x002E34B8 File Offset: 0x002E16B8
|
||||
[Token(Token = "0x600C9B9")]
|
||||
[Address(RVA = "0x2AD8AF0", Offset = "0x2AD78F0", VA = "0x182AD8AF0", 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: 0x0400809B RID: 32923
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400809B")]
|
||||
private Asn1OctetString keyIdentifier;
|
||||
|
||||
// Token: 0x0400809C RID: 32924
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400809C")]
|
||||
private DerGeneralizedTime date;
|
||||
|
||||
// Token: 0x0400809D RID: 32925
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400809D")]
|
||||
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: 0x02001F2D RID: 7981
|
||||
[Token(Token = "0x2001F2D")]
|
||||
public class KekRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9BA RID: 51642 RVA: 0x002E3530 File Offset: 0x002E1730
|
||||
[Token(Token = "0x600C9BA")]
|
||||
[Address(RVA = "0x2AD9500", Offset = "0x2AD8300", VA = "0x182AD9500")]
|
||||
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: 0x0600C9BB RID: 51643 RVA: 0x002E3568 File Offset: 0x002E1768
|
||||
[Token(Token = "0x600C9BB")]
|
||||
[Address(RVA = "0x2AD9380", Offset = "0x2AD8180", VA = "0x182AD9380")]
|
||||
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: 0x0600C9BC RID: 51644 RVA: 0x002E35D4 File Offset: 0x002E17D4
|
||||
[Token(Token = "0x600C9BC")]
|
||||
[Address(RVA = "0x2AD91A0", Offset = "0x2AD7FA0", VA = "0x182AD91A0")]
|
||||
public static KekRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KekRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C9BD RID: 51645 RVA: 0x002E35F0 File Offset: 0x002E17F0
|
||||
[Token(Token = "0x600C9BD")]
|
||||
[Address(RVA = "0x2AD8FB0", Offset = "0x2AD7DB0", VA = "0x182AD8FB0")]
|
||||
public static KekRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9BD)
|
||||
|
||||
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: 0x17001FC9 RID: 8137
|
||||
// (get) Token: 0x0600C9BE RID: 51646 RVA: 0x002E3640 File Offset: 0x002E1840
|
||||
[Token(Token = "0x17001FC9")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9BE")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FCA RID: 8138
|
||||
// (get) Token: 0x0600C9BF RID: 51647 RVA: 0x002E3654 File Offset: 0x002E1854
|
||||
[Token(Token = "0x17001FCA")]
|
||||
public KekIdentifier KekID
|
||||
{
|
||||
[Token(Token = "0x600C9BF")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.kekID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FCB RID: 8139
|
||||
// (get) Token: 0x0600C9C0 RID: 51648 RVA: 0x002E3668 File Offset: 0x002E1868
|
||||
[Token(Token = "0x17001FCB")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9C0")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FCC RID: 8140
|
||||
// (get) Token: 0x0600C9C1 RID: 51649 RVA: 0x002E367C File Offset: 0x002E187C
|
||||
[Token(Token = "0x17001FCC")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600C9C1")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C2 RID: 51650 RVA: 0x002E3690 File Offset: 0x002E1890
|
||||
[Token(Token = "0x600C9C2")]
|
||||
[Address(RVA = "0x2AD91C0", Offset = "0x2AD7FC0", VA = "0x182AD91C0", 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: 0x0400809E RID: 32926
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400809E")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400809F RID: 32927
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400809F")]
|
||||
private KekIdentifier kekID;
|
||||
|
||||
// Token: 0x040080A0 RID: 32928
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080A0")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x040080A1 RID: 32929
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080A1")]
|
||||
private Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F2E RID: 7982
|
||||
[Token(Token = "0x2001F2E")]
|
||||
public class KeyAgreeRecipientIdentifier : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C9C3 RID: 51651 RVA: 0x002E3700 File Offset: 0x002E1900
|
||||
[Token(Token = "0x600C9C3")]
|
||||
[Address(RVA = "0x2AD97F0", Offset = "0x2AD85F0", VA = "0x182AD97F0")]
|
||||
public static KeyAgreeRecipientIdentifier GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return KeyAgreeRecipientIdentifier.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C4 RID: 51652 RVA: 0x002E371C File Offset: 0x002E191C
|
||||
[Token(Token = "0x600C9C4")]
|
||||
[Address(RVA = "0x2AD95A0", Offset = "0x2AD83A0", VA = "0x182AD95A0")]
|
||||
public static KeyAgreeRecipientIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9C4)
|
||||
|
||||
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: 0x0600C9C5 RID: 51653 RVA: 0x002E37A0 File Offset: 0x002E19A0
|
||||
[Token(Token = "0x600C9C5")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public KeyAgreeRecipientIdentifier(IssuerAndSerialNumber issuerSerial)
|
||||
{
|
||||
this.issuerSerial = issuerSerial;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C6 RID: 51654 RVA: 0x002E37BC File Offset: 0x002E19BC
|
||||
[Token(Token = "0x600C9C6")]
|
||||
[Address(RVA = "0x4F28D0", Offset = "0x4F16D0", VA = "0x1804F28D0")]
|
||||
public KeyAgreeRecipientIdentifier(RecipientKeyIdentifier rKeyID)
|
||||
{
|
||||
this.rKeyID = rKeyID;
|
||||
}
|
||||
|
||||
// Token: 0x17001FCD RID: 8141
|
||||
// (get) Token: 0x0600C9C7 RID: 51655 RVA: 0x002E37D8 File Offset: 0x002E19D8
|
||||
[Token(Token = "0x17001FCD")]
|
||||
public IssuerAndSerialNumber IssuerAndSerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C9C7")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.issuerSerial;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FCE RID: 8142
|
||||
// (get) Token: 0x0600C9C8 RID: 51656 RVA: 0x002E37EC File Offset: 0x002E19EC
|
||||
[Token(Token = "0x17001FCE")]
|
||||
public RecipientKeyIdentifier RKeyID
|
||||
{
|
||||
[Token(Token = "0x600C9C8")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.rKeyID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9C9 RID: 51657 RVA: 0x002E3800 File Offset: 0x002E1A00
|
||||
[Token(Token = "0x600C9C9")]
|
||||
[Address(RVA = "0x2AD9810", Offset = "0x2AD8610", VA = "0x182AD9810", 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: 0x040080A2 RID: 32930
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080A2")]
|
||||
private readonly IssuerAndSerialNumber issuerSerial;
|
||||
|
||||
// Token: 0x040080A3 RID: 32931
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080A3")]
|
||||
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: 0x02001F2F RID: 7983
|
||||
[Token(Token = "0x2001F2F")]
|
||||
public class KeyAgreeRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9CA RID: 51658 RVA: 0x002E3838 File Offset: 0x002E1A38
|
||||
[Token(Token = "0x600C9CA")]
|
||||
[Address(RVA = "0x2AD9DB0", Offset = "0x2AD8BB0", VA = "0x182AD9DB0")]
|
||||
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: 0x0600C9CB RID: 51659 RVA: 0x002E3878 File Offset: 0x002E1A78
|
||||
[Token(Token = "0x600C9CB")]
|
||||
[Address(RVA = "0x2AD9E50", Offset = "0x2AD8C50", VA = "0x182AD9E50")]
|
||||
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: 0x0600C9CC RID: 51660 RVA: 0x002E3930 File Offset: 0x002E1B30
|
||||
[Token(Token = "0x600C9CC")]
|
||||
[Address(RVA = "0x2AD98A0", Offset = "0x2AD86A0", VA = "0x182AD98A0")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KeyAgreeRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C9CD RID: 51661 RVA: 0x002E394C File Offset: 0x002E1B4C
|
||||
[Token(Token = "0x600C9CD")]
|
||||
[Address(RVA = "0x2AD98C0", Offset = "0x2AD86C0", VA = "0x182AD98C0")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9CD)
|
||||
|
||||
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: 0x17001FCF RID: 8143
|
||||
// (get) Token: 0x0600C9CE RID: 51662 RVA: 0x002E399C File Offset: 0x002E1B9C
|
||||
[Token(Token = "0x17001FCF")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9CE")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD0 RID: 8144
|
||||
// (get) Token: 0x0600C9CF RID: 51663 RVA: 0x002E39B0 File Offset: 0x002E1BB0
|
||||
[Token(Token = "0x17001FD0")]
|
||||
public OriginatorIdentifierOrKey Originator
|
||||
{
|
||||
[Token(Token = "0x600C9CF")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.originator;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD1 RID: 8145
|
||||
// (get) Token: 0x0600C9D0 RID: 51664 RVA: 0x002E39C4 File Offset: 0x002E1BC4
|
||||
[Token(Token = "0x17001FD1")]
|
||||
public Asn1OctetString UserKeyingMaterial
|
||||
{
|
||||
[Token(Token = "0x600C9D0")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.ukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD2 RID: 8146
|
||||
// (get) Token: 0x0600C9D1 RID: 51665 RVA: 0x002E39D8 File Offset: 0x002E1BD8
|
||||
[Token(Token = "0x17001FD2")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9D1")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD3 RID: 8147
|
||||
// (get) Token: 0x0600C9D2 RID: 51666 RVA: 0x002E39EC File Offset: 0x002E1BEC
|
||||
[Token(Token = "0x17001FD3")]
|
||||
public Asn1Sequence RecipientEncryptedKeys
|
||||
{
|
||||
[Token(Token = "0x600C9D2")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.recipientEncryptedKeys;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9D3 RID: 51667 RVA: 0x002E3A00 File Offset: 0x002E1C00
|
||||
[Token(Token = "0x600C9D3")]
|
||||
[Address(RVA = "0x2AD9AB0", Offset = "0x2AD88B0", VA = "0x182AD9AB0", 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: 0x040080A4 RID: 32932
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080A4")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040080A5 RID: 32933
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080A5")]
|
||||
private OriginatorIdentifierOrKey originator;
|
||||
|
||||
// Token: 0x040080A6 RID: 32934
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080A6")]
|
||||
private Asn1OctetString ukm;
|
||||
|
||||
// Token: 0x040080A7 RID: 32935
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080A7")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x040080A8 RID: 32936
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40080A8")]
|
||||
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: 0x02001F30 RID: 7984
|
||||
[Token(Token = "0x2001F30")]
|
||||
public class KeyTransRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9D4 RID: 51668 RVA: 0x002E3AE4 File Offset: 0x002E1CE4
|
||||
[Token(Token = "0x600C9D4")]
|
||||
[Address(RVA = "0x2ADA680", Offset = "0x2AD9480", VA = "0x182ADA680")]
|
||||
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: 0x0600C9D5 RID: 51669 RVA: 0x002E3B38 File Offset: 0x002E1D38
|
||||
[Token(Token = "0x600C9D5")]
|
||||
[Address(RVA = "0x2ADA500", Offset = "0x2AD9300", VA = "0x182ADA500")]
|
||||
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: 0x0600C9D6 RID: 51670 RVA: 0x002E3BA4 File Offset: 0x002E1DA4
|
||||
[Token(Token = "0x600C9D6")]
|
||||
[Address(RVA = "0x2ADA150", Offset = "0x2AD8F50", VA = "0x182ADA150")]
|
||||
public static KeyTransRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9D6)
|
||||
|
||||
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: 0x17001FD4 RID: 8148
|
||||
// (get) Token: 0x0600C9D7 RID: 51671 RVA: 0x002E3BF4 File Offset: 0x002E1DF4
|
||||
[Token(Token = "0x17001FD4")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9D7")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD5 RID: 8149
|
||||
// (get) Token: 0x0600C9D8 RID: 51672 RVA: 0x002E3C08 File Offset: 0x002E1E08
|
||||
[Token(Token = "0x17001FD5")]
|
||||
public RecipientIdentifier RecipientIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C9D8")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.rid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD6 RID: 8150
|
||||
// (get) Token: 0x0600C9D9 RID: 51673 RVA: 0x002E3C1C File Offset: 0x002E1E1C
|
||||
[Token(Token = "0x17001FD6")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9D9")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD7 RID: 8151
|
||||
// (get) Token: 0x0600C9DA RID: 51674 RVA: 0x002E3C30 File Offset: 0x002E1E30
|
||||
[Token(Token = "0x17001FD7")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600C9DA")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9DB RID: 51675 RVA: 0x002E3C44 File Offset: 0x002E1E44
|
||||
[Token(Token = "0x600C9DB")]
|
||||
[Address(RVA = "0x2ADA340", Offset = "0x2AD9140", VA = "0x182ADA340", 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: 0x040080A9 RID: 32937
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080A9")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040080AA RID: 32938
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080AA")]
|
||||
private RecipientIdentifier rid;
|
||||
|
||||
// Token: 0x040080AB RID: 32939
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080AB")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x040080AC RID: 32940
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080AC")]
|
||||
private Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F31 RID: 7985
|
||||
[Token(Token = "0x2001F31")]
|
||||
public class MetaData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9DC RID: 51676 RVA: 0x002E3CB4 File Offset: 0x002E1EB4
|
||||
[Token(Token = "0x600C9DC")]
|
||||
[Address(RVA = "0x4F37F0", Offset = "0x4F25F0", VA = "0x1804F37F0")]
|
||||
public MetaData(DerBoolean hashProtected, DerUtf8String fileName, DerIA5String mediaType, Attributes otherMetaData)
|
||||
{
|
||||
this.hashProtected = hashProtected;
|
||||
this.mediaType = mediaType;
|
||||
this.otherMetaData = 0;
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9DD RID: 51677 RVA: 0x002E3CE4 File Offset: 0x002E1EE4
|
||||
[Token(Token = "0x600C9DD")]
|
||||
[Address(RVA = "0x2ADB050", Offset = "0x2AD9E50", VA = "0x182ADB050")]
|
||||
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: 0x0600C9DE RID: 51678 RVA: 0x002E3D94 File Offset: 0x002E1F94
|
||||
[Token(Token = "0x600C9DE")]
|
||||
[Address(RVA = "0x2ADAD30", Offset = "0x2AD9B30", VA = "0x182ADAD30")]
|
||||
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: 0x0600C9DF RID: 51679 RVA: 0x002E3DC8 File Offset: 0x002E1FC8
|
||||
[Token(Token = "0x600C9DF")]
|
||||
[Address(RVA = "0x2ADAE30", Offset = "0x2AD9C30", VA = "0x182ADAE30", 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: 0x17001FD8 RID: 8152
|
||||
// (get) Token: 0x0600C9E0 RID: 51680 RVA: 0x002E3E54 File Offset: 0x002E2054
|
||||
[Token(Token = "0x17001FD8")]
|
||||
public virtual bool IsHashProtected
|
||||
{
|
||||
[Token(Token = "0x600C9E0")]
|
||||
[Address(RVA = "0x2ADB340", Offset = "0x2ADA140", VA = "0x182ADB340", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.hashProtected.IsTrue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD9 RID: 8153
|
||||
// (get) Token: 0x0600C9E1 RID: 51681 RVA: 0x002E3E74 File Offset: 0x002E2074
|
||||
[Token(Token = "0x17001FD9")]
|
||||
public virtual DerUtf8String FileName
|
||||
{
|
||||
[Token(Token = "0x600C9E1")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.fileName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FDA RID: 8154
|
||||
// (get) Token: 0x0600C9E2 RID: 51682 RVA: 0x002E3E88 File Offset: 0x002E2088
|
||||
[Token(Token = "0x17001FDA")]
|
||||
public virtual DerIA5String MediaType
|
||||
{
|
||||
[Token(Token = "0x600C9E2")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.mediaType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FDB RID: 8155
|
||||
// (get) Token: 0x0600C9E3 RID: 51683 RVA: 0x002E3E9C File Offset: 0x002E209C
|
||||
[Token(Token = "0x17001FDB")]
|
||||
public virtual Attributes OtherMetaData
|
||||
{
|
||||
[Token(Token = "0x600C9E3")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.otherMetaData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040080AD RID: 32941
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080AD")]
|
||||
private DerBoolean hashProtected;
|
||||
|
||||
// Token: 0x040080AE RID: 32942
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080AE")]
|
||||
private DerUtf8String fileName;
|
||||
|
||||
// Token: 0x040080AF RID: 32943
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080AF")]
|
||||
private DerIA5String mediaType;
|
||||
|
||||
// Token: 0x040080B0 RID: 32944
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080B0")]
|
||||
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: 0x02001F32 RID: 7986
|
||||
[Token(Token = "0x2001F32")]
|
||||
public class OriginatorIdentifierOrKey : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C9E4 RID: 51684 RVA: 0x002E3EB0 File Offset: 0x002E20B0
|
||||
[Token(Token = "0x600C9E4")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public OriginatorIdentifierOrKey(IssuerAndSerialNumber id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E5 RID: 51685 RVA: 0x002E3ECC File Offset: 0x002E20CC
|
||||
[Token(Token = "0x600C9E5")]
|
||||
[Address(RVA = "0x2ADB720", Offset = "0x2ADA520", VA = "0x182ADB720")]
|
||||
[Obsolete]
|
||||
public OriginatorIdentifierOrKey(Asn1OctetString id)
|
||||
{
|
||||
SubjectKeyIdentifier subjectKeyIdentifier = new SubjectKeyIdentifier(id);
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E6 RID: 51686 RVA: 0x002E3EE0 File Offset: 0x002E20E0
|
||||
[Token(Token = "0x600C9E6")]
|
||||
[Address(RVA = "0x2ADB790", Offset = "0x2ADA590", VA = "0x182ADB790")]
|
||||
public OriginatorIdentifierOrKey(SubjectKeyIdentifier id)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, id);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E7 RID: 51687 RVA: 0x002E3F08 File Offset: 0x002E2108
|
||||
[Token(Token = "0x600C9E7")]
|
||||
[Address(RVA = "0x2ADB810", Offset = "0x2ADA610", VA = "0x182ADB810")]
|
||||
public OriginatorIdentifierOrKey(OriginatorPublicKey id)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 1, id);
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E8 RID: 51688 RVA: 0x002E3F30 File Offset: 0x002E2130
|
||||
[Token(Token = "0x600C9E8")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
[Obsolete]
|
||||
public OriginatorIdentifierOrKey(Asn1Object id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9E9 RID: 51689 RVA: 0x002E3F4C File Offset: 0x002E214C
|
||||
[Token(Token = "0x600C9E9")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private OriginatorIdentifierOrKey(Asn1TaggedObject id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9EA RID: 51690 RVA: 0x002E3F68 File Offset: 0x002E2168
|
||||
[Token(Token = "0x600C9EA")]
|
||||
[Address(RVA = "0x2ADB690", Offset = "0x2ADA490", VA = "0x182ADB690")]
|
||||
public static OriginatorIdentifierOrKey GetInstance(Asn1TaggedObject o, bool explicitly)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9EA)
|
||||
|
||||
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: 0x0600C9EB RID: 51691 RVA: 0x002E3F90 File Offset: 0x002E2190
|
||||
[Token(Token = "0x600C9EB")]
|
||||
[Address(RVA = "0x2ADB360", Offset = "0x2ADA160", VA = "0x182ADB360")]
|
||||
public static OriginatorIdentifierOrKey GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9EB)
|
||||
|
||||
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: 0x17001FDC RID: 8156
|
||||
// (get) Token: 0x0600C9EC RID: 51692 RVA: 0x002E3FE8 File Offset: 0x002E21E8
|
||||
[Token(Token = "0x17001FDC")]
|
||||
public Asn1Encodable ID
|
||||
{
|
||||
[Token(Token = "0x600C9EC")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FDD RID: 8157
|
||||
// (get) Token: 0x0600C9ED RID: 51693 RVA: 0x002E3FFC File Offset: 0x002E21FC
|
||||
[Token(Token = "0x17001FDD")]
|
||||
public IssuerAndSerialNumber IssuerAndSerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C9ED")]
|
||||
[Address(RVA = "0x2ADB890", Offset = "0x2ADA690", VA = "0x182ADB890")]
|
||||
get
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0 || asn1Encodable == 0 || asn1Encodable == 0 || asn1Encodable != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FDE RID: 8158
|
||||
// (get) Token: 0x0600C9EE RID: 51694 RVA: 0x002E4028 File Offset: 0x002E2228
|
||||
[Token(Token = "0x17001FDE")]
|
||||
public SubjectKeyIdentifier SubjectKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C9EE")]
|
||||
[Address(RVA = "0x2ADBAE0", Offset = "0x2ADA8E0", VA = "0x182ADBAE0")]
|
||||
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: 0x17001FDF RID: 8159
|
||||
// (get) Token: 0x0600C9EF RID: 51695 RVA: 0x002E4068 File Offset: 0x002E2268
|
||||
[Token(Token = "0x17001FDF")]
|
||||
[Obsolete]
|
||||
public OriginatorPublicKey OriginatorKey
|
||||
{
|
||||
[Token(Token = "0x600C9EF")]
|
||||
[Address(RVA = "0x2ADB960", Offset = "0x2ADA760", VA = "0x182ADB960")]
|
||||
get
|
||||
{
|
||||
return this.OriginatorPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FE0 RID: 8160
|
||||
// (get) Token: 0x0600C9F0 RID: 51696 RVA: 0x002E407C File Offset: 0x002E227C
|
||||
[Token(Token = "0x17001FE0")]
|
||||
public OriginatorPublicKey OriginatorPublicKey
|
||||
{
|
||||
[Token(Token = "0x600C9F0")]
|
||||
[Address(RVA = "0x2ADB970", Offset = "0x2ADA770", VA = "0x182ADB970")]
|
||||
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: 0x0600C9F1 RID: 51697 RVA: 0x002E40BC File Offset: 0x002E22BC
|
||||
[Token(Token = "0x600C9F1")]
|
||||
[Address(RVA = "0x53BA50", Offset = "0x53A850", VA = "0x18053BA50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.id.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x040080B1 RID: 32945
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080B1")]
|
||||
private Asn1Encodable id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F33 RID: 7987
|
||||
[Token(Token = "0x2001F33")]
|
||||
public class OriginatorInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9F2 RID: 51698 RVA: 0x002E40DC File Offset: 0x002E22DC
|
||||
[Token(Token = "0x600C9F2")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public OriginatorInfo(Asn1Set certs, Asn1Set crls)
|
||||
{
|
||||
this.certs = certs;
|
||||
this.crls = crls;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9F3 RID: 51699 RVA: 0x002E4100 File Offset: 0x002E2300
|
||||
[Token(Token = "0x600C9F3")]
|
||||
[Address(RVA = "0x2ADC060", Offset = "0x2ADAE60", VA = "0x182ADC060")]
|
||||
public OriginatorInfo(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9F3)
|
||||
|
||||
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: 0x0600C9F4 RID: 51700 RVA: 0x002E4184 File Offset: 0x002E2384
|
||||
[Token(Token = "0x600C9F4")]
|
||||
[Address(RVA = "0x2ADBE30", Offset = "0x2ADAC30", VA = "0x182ADBE30")]
|
||||
public static OriginatorInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return OriginatorInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C9F5 RID: 51701 RVA: 0x002E41A0 File Offset: 0x002E23A0
|
||||
[Token(Token = "0x600C9F5")]
|
||||
[Address(RVA = "0x2ADBC40", Offset = "0x2ADAA40", VA = "0x182ADBC40")]
|
||||
public static OriginatorInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9F5)
|
||||
|
||||
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: 0x17001FE1 RID: 8161
|
||||
// (get) Token: 0x0600C9F6 RID: 51702 RVA: 0x002E41F0 File Offset: 0x002E23F0
|
||||
[Token(Token = "0x17001FE1")]
|
||||
public Asn1Set Certificates
|
||||
{
|
||||
[Token(Token = "0x600C9F6")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.certs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FE2 RID: 8162
|
||||
// (get) Token: 0x0600C9F7 RID: 51703 RVA: 0x002E4204 File Offset: 0x002E2404
|
||||
[Token(Token = "0x17001FE2")]
|
||||
public Asn1Set Crls
|
||||
{
|
||||
[Token(Token = "0x600C9F7")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.crls;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9F8 RID: 51704 RVA: 0x002E4218 File Offset: 0x002E2418
|
||||
[Token(Token = "0x600C9F8")]
|
||||
[Address(RVA = "0x2ADBE50", Offset = "0x2ADAC50", VA = "0x182ADBE50", 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: 0x040080B2 RID: 32946
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080B2")]
|
||||
private Asn1Set certs;
|
||||
|
||||
// Token: 0x040080B3 RID: 32947
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080B3")]
|
||||
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: 0x02001F34 RID: 7988
|
||||
[Token(Token = "0x2001F34")]
|
||||
public class OriginatorPublicKey : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9F9 RID: 51705 RVA: 0x002E42B0 File Offset: 0x002E24B0
|
||||
[Token(Token = "0x600C9F9")]
|
||||
[Address(RVA = "0x2ADC750", Offset = "0x2ADB550", VA = "0x182ADC750")]
|
||||
public OriginatorPublicKey(AlgorithmIdentifier algorithm, byte[] publicKey)
|
||||
{
|
||||
this.mAlgorithm = algorithm;
|
||||
DerBitString derBitString = new DerBitString(publicKey);
|
||||
this.mPublicKey = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9FA RID: 51706 RVA: 0x002E42D8 File Offset: 0x002E24D8
|
||||
[Token(Token = "0x600C9FA")]
|
||||
[Address(RVA = "0x2ADC690", Offset = "0x2ADB490", VA = "0x182ADC690")]
|
||||
[Obsolete]
|
||||
public OriginatorPublicKey(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.mAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.mPublicKey = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9FB RID: 51707 RVA: 0x002E4310 File Offset: 0x002E2510
|
||||
[Token(Token = "0x600C9FB")]
|
||||
[Address(RVA = "0x2ADC560", Offset = "0x2ADB360", VA = "0x182ADC560")]
|
||||
public static OriginatorPublicKey GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return OriginatorPublicKey.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C9FC RID: 51708 RVA: 0x002E432C File Offset: 0x002E252C
|
||||
[Token(Token = "0x600C9FC")]
|
||||
[Address(RVA = "0x2ADC320", Offset = "0x2ADB120", VA = "0x182ADC320")]
|
||||
public static OriginatorPublicKey GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9FC)
|
||||
|
||||
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: 0x17001FE3 RID: 8163
|
||||
// (get) Token: 0x0600C9FD RID: 51709 RVA: 0x002E43A0 File Offset: 0x002E25A0
|
||||
[Token(Token = "0x17001FE3")]
|
||||
public AlgorithmIdentifier Algorithm
|
||||
{
|
||||
[Token(Token = "0x600C9FD")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.mAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FE4 RID: 8164
|
||||
// (get) Token: 0x0600C9FE RID: 51710 RVA: 0x002E43B4 File Offset: 0x002E25B4
|
||||
[Token(Token = "0x17001FE4")]
|
||||
public DerBitString PublicKey
|
||||
{
|
||||
[Token(Token = "0x600C9FE")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.mPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9FF RID: 51711 RVA: 0x002E43C8 File Offset: 0x002E25C8
|
||||
[Token(Token = "0x600C9FF")]
|
||||
[Address(RVA = "0x2ADC580", Offset = "0x2ADB380", VA = "0x182ADC580", 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: 0x040080B4 RID: 32948
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080B4")]
|
||||
private readonly AlgorithmIdentifier mAlgorithm;
|
||||
|
||||
// Token: 0x040080B5 RID: 32949
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080B5")]
|
||||
private readonly DerBitString mPublicKey;
|
||||
}
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F35 RID: 7989
|
||||
[Token(Token = "0x2001F35")]
|
||||
public class OtherKeyAttribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA00 RID: 51712 RVA: 0x002E4410 File Offset: 0x002E2610
|
||||
[Token(Token = "0x600CA00")]
|
||||
[Address(RVA = "0x2ADC7D0", Offset = "0x2ADB5D0", VA = "0x182ADC7D0")]
|
||||
public static OtherKeyAttribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA00)
|
||||
|
||||
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: 0x0600CA01 RID: 51713 RVA: 0x002E4468 File Offset: 0x002E2668
|
||||
[Token(Token = "0x600CA01")]
|
||||
[Address(RVA = "0x2ADCB80", Offset = "0x2ADB980", VA = "0x182ADCB80")]
|
||||
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: 0x0600CA02 RID: 51714 RVA: 0x002E44A8 File Offset: 0x002E26A8
|
||||
[Token(Token = "0x600CA02")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public OtherKeyAttribute(DerObjectIdentifier keyAttrId, Asn1Encodable keyAttr)
|
||||
{
|
||||
this.keyAttrId = keyAttrId;
|
||||
this.keyAttr = keyAttr;
|
||||
}
|
||||
|
||||
// Token: 0x17001FE5 RID: 8165
|
||||
// (get) Token: 0x0600CA03 RID: 51715 RVA: 0x002E44CC File Offset: 0x002E26CC
|
||||
[Token(Token = "0x17001FE5")]
|
||||
public DerObjectIdentifier KeyAttrId
|
||||
{
|
||||
[Token(Token = "0x600CA03")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.keyAttrId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FE6 RID: 8166
|
||||
// (get) Token: 0x0600CA04 RID: 51716 RVA: 0x002E44E0 File Offset: 0x002E26E0
|
||||
[Token(Token = "0x17001FE6")]
|
||||
public Asn1Encodable KeyAttr
|
||||
{
|
||||
[Token(Token = "0x600CA04")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.keyAttr;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA05 RID: 51717 RVA: 0x002E44F4 File Offset: 0x002E26F4
|
||||
[Token(Token = "0x600CA05")]
|
||||
[Address(RVA = "0x2ADCA70", Offset = "0x2ADB870", VA = "0x182ADCA70", 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: 0x040080B6 RID: 32950
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080B6")]
|
||||
private DerObjectIdentifier keyAttrId;
|
||||
|
||||
// Token: 0x040080B7 RID: 32951
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080B7")]
|
||||
private Asn1Encodable keyAttr;
|
||||
}
|
||||
}
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F36 RID: 7990
|
||||
[Token(Token = "0x2001F36")]
|
||||
public class OtherRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA06 RID: 51718 RVA: 0x002E453C File Offset: 0x002E273C
|
||||
[Token(Token = "0x600CA06")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public OtherRecipientInfo(DerObjectIdentifier oriType, Asn1Encodable oriValue)
|
||||
{
|
||||
this.oriType = oriType;
|
||||
this.oriValue = oriValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA07 RID: 51719 RVA: 0x002E4560 File Offset: 0x002E2760
|
||||
[Token(Token = "0x600CA07")]
|
||||
[Address(RVA = "0x2ADD020", Offset = "0x2ADBE20", VA = "0x182ADD020")]
|
||||
[Obsolete]
|
||||
public OtherRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.oriType = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.oriValue = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA08 RID: 51720 RVA: 0x002E4598 File Offset: 0x002E2798
|
||||
[Token(Token = "0x600CA08")]
|
||||
[Address(RVA = "0x2ADCDB0", Offset = "0x2ADBBB0", VA = "0x182ADCDB0")]
|
||||
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: 0x0600CA09 RID: 51721 RVA: 0x002E45E8 File Offset: 0x002E27E8
|
||||
[Token(Token = "0x600CA09")]
|
||||
[Address(RVA = "0x2ADCC60", Offset = "0x2ADBA60", VA = "0x182ADCC60")]
|
||||
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: 0x17001FE7 RID: 8167
|
||||
// (get) Token: 0x0600CA0A RID: 51722 RVA: 0x002E4630 File Offset: 0x002E2830
|
||||
[Token(Token = "0x17001FE7")]
|
||||
public virtual DerObjectIdentifier OriType
|
||||
{
|
||||
[Token(Token = "0x600CA0A")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.oriType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FE8 RID: 8168
|
||||
// (get) Token: 0x0600CA0B RID: 51723 RVA: 0x002E4644 File Offset: 0x002E2844
|
||||
[Token(Token = "0x17001FE8")]
|
||||
public virtual Asn1Encodable OriValue
|
||||
{
|
||||
[Token(Token = "0x600CA0B")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.oriValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA0C RID: 51724 RVA: 0x002E4658 File Offset: 0x002E2858
|
||||
[Token(Token = "0x600CA0C")]
|
||||
[Address(RVA = "0x2ADCF10", Offset = "0x2ADBD10", VA = "0x182ADCF10", 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: 0x040080B8 RID: 32952
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080B8")]
|
||||
private readonly DerObjectIdentifier oriType;
|
||||
|
||||
// Token: 0x040080B9 RID: 32953
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080B9")]
|
||||
private readonly Asn1Encodable oriValue;
|
||||
}
|
||||
}
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F37 RID: 7991
|
||||
[Token(Token = "0x2001F37")]
|
||||
public class OtherRevocationInfoFormat : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA0D RID: 51725 RVA: 0x002E46A0 File Offset: 0x002E28A0
|
||||
[Token(Token = "0x600CA0D")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public OtherRevocationInfoFormat(DerObjectIdentifier otherRevInfoFormat, Asn1Encodable otherRevInfo)
|
||||
{
|
||||
this.otherRevInfoFormat = otherRevInfoFormat;
|
||||
this.otherRevInfo = otherRevInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA0E RID: 51726 RVA: 0x002E46C4 File Offset: 0x002E28C4
|
||||
[Token(Token = "0x600CA0E")]
|
||||
[Address(RVA = "0x2ADD3A0", Offset = "0x2ADC1A0", VA = "0x182ADD3A0")]
|
||||
private OtherRevocationInfoFormat(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.otherRevInfoFormat = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.otherRevInfo = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA0F RID: 51727 RVA: 0x002E46FC File Offset: 0x002E28FC
|
||||
[Token(Token = "0x600CA0F")]
|
||||
[Address(RVA = "0x2ADD0E0", Offset = "0x2ADBEE0", VA = "0x182ADD0E0")]
|
||||
public static OtherRevocationInfoFormat GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return OtherRevocationInfoFormat.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA10 RID: 51728 RVA: 0x002E4718 File Offset: 0x002E2918
|
||||
[Token(Token = "0x600CA10")]
|
||||
[Address(RVA = "0x2ADD100", Offset = "0x2ADBF00", VA = "0x182ADD100")]
|
||||
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: 0x17001FE9 RID: 8169
|
||||
// (get) Token: 0x0600CA11 RID: 51729 RVA: 0x002E4768 File Offset: 0x002E2968
|
||||
[Token(Token = "0x17001FE9")]
|
||||
public virtual DerObjectIdentifier InfoFormat
|
||||
{
|
||||
[Token(Token = "0x600CA11")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.otherRevInfoFormat;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FEA RID: 8170
|
||||
// (get) Token: 0x0600CA12 RID: 51730 RVA: 0x002E477C File Offset: 0x002E297C
|
||||
[Token(Token = "0x17001FEA")]
|
||||
public virtual Asn1Encodable Info
|
||||
{
|
||||
[Token(Token = "0x600CA12")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.otherRevInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA13 RID: 51731 RVA: 0x002E4790 File Offset: 0x002E2990
|
||||
[Token(Token = "0x600CA13")]
|
||||
[Address(RVA = "0x2ADD290", Offset = "0x2ADC090", VA = "0x182ADD290", 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: 0x040080BA RID: 32954
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080BA")]
|
||||
private readonly DerObjectIdentifier otherRevInfoFormat;
|
||||
|
||||
// Token: 0x040080BB RID: 32955
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080BB")]
|
||||
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: 0x02001F38 RID: 7992
|
||||
[Token(Token = "0x2001F38")]
|
||||
public class PasswordRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA14 RID: 51732 RVA: 0x002E47D8 File Offset: 0x002E29D8
|
||||
[Token(Token = "0x600CA14")]
|
||||
[Address(RVA = "0x2ADDBE0", Offset = "0x2ADC9E0", VA = "0x182ADDBE0")]
|
||||
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: 0x0600CA15 RID: 51733 RVA: 0x002E480C File Offset: 0x002E2A0C
|
||||
[Token(Token = "0x600CA15")]
|
||||
[Address(RVA = "0x2ADDC60", Offset = "0x2ADCA60", VA = "0x182ADDC60")]
|
||||
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: 0x0600CA16 RID: 51734 RVA: 0x002E4844 File Offset: 0x002E2A44
|
||||
[Token(Token = "0x600CA16")]
|
||||
[Address(RVA = "0x2ADD900", Offset = "0x2ADC700", VA = "0x182ADD900")]
|
||||
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: 0x0600CA17 RID: 51735 RVA: 0x002E48FC File Offset: 0x002E2AFC
|
||||
[Token(Token = "0x600CA17")]
|
||||
[Address(RVA = "0x2ADD460", Offset = "0x2ADC260", VA = "0x182ADD460")]
|
||||
public static PasswordRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return PasswordRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA18 RID: 51736 RVA: 0x002E4918 File Offset: 0x002E2B18
|
||||
[Token(Token = "0x600CA18")]
|
||||
[Address(RVA = "0x2ADD480", Offset = "0x2ADC280", VA = "0x182ADD480")]
|
||||
public static PasswordRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA18)
|
||||
|
||||
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: 0x17001FEB RID: 8171
|
||||
// (get) Token: 0x0600CA19 RID: 51737 RVA: 0x002E4968 File Offset: 0x002E2B68
|
||||
[Token(Token = "0x17001FEB")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CA19")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FEC RID: 8172
|
||||
// (get) Token: 0x0600CA1A RID: 51738 RVA: 0x002E497C File Offset: 0x002E2B7C
|
||||
[Token(Token = "0x17001FEC")]
|
||||
public AlgorithmIdentifier KeyDerivationAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CA1A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.keyDerivationAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FED RID: 8173
|
||||
// (get) Token: 0x0600CA1B RID: 51739 RVA: 0x002E4990 File Offset: 0x002E2B90
|
||||
[Token(Token = "0x17001FED")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CA1B")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FEE RID: 8174
|
||||
// (get) Token: 0x0600CA1C RID: 51740 RVA: 0x002E49A4 File Offset: 0x002E2BA4
|
||||
[Token(Token = "0x17001FEE")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600CA1C")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA1D RID: 51741 RVA: 0x002E49B8 File Offset: 0x002E2BB8
|
||||
[Token(Token = "0x600CA1D")]
|
||||
[Address(RVA = "0x2ADD670", Offset = "0x2ADC470", VA = "0x182ADD670", 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: 0x040080BC RID: 32956
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080BC")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x040080BD RID: 32957
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080BD")]
|
||||
private readonly AlgorithmIdentifier keyDerivationAlgorithm;
|
||||
|
||||
// Token: 0x040080BE RID: 32958
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080BE")]
|
||||
private readonly AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x040080BF RID: 32959
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080BF")]
|
||||
private readonly Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F39 RID: 7993
|
||||
[Token(Token = "0x2001F39")]
|
||||
public class RecipientEncryptedKey : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA1E RID: 51742 RVA: 0x002E4A74 File Offset: 0x002E2C74
|
||||
[Token(Token = "0x600CA1E")]
|
||||
[Address(RVA = "0x2AE2420", Offset = "0x2AE1220", VA = "0x182AE2420")]
|
||||
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: 0x0600CA1F RID: 51743 RVA: 0x002E4ABC File Offset: 0x002E2CBC
|
||||
[Token(Token = "0x600CA1F")]
|
||||
[Address(RVA = "0x2AE22F0", Offset = "0x2AE10F0", VA = "0x182AE22F0")]
|
||||
public static RecipientEncryptedKey GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return RecipientEncryptedKey.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA20 RID: 51744 RVA: 0x002E4AD8 File Offset: 0x002E2CD8
|
||||
[Token(Token = "0x600CA20")]
|
||||
[Address(RVA = "0x2AE2040", Offset = "0x2AE0E40", VA = "0x182AE2040")]
|
||||
public static RecipientEncryptedKey GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA20)
|
||||
|
||||
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: 0x0600CA21 RID: 51745 RVA: 0x002E4B38 File Offset: 0x002E2D38
|
||||
[Token(Token = "0x600CA21")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public RecipientEncryptedKey(KeyAgreeRecipientIdentifier id, Asn1OctetString encryptedKey)
|
||||
{
|
||||
this.identifier = id;
|
||||
this.encryptedKey = encryptedKey;
|
||||
}
|
||||
|
||||
// Token: 0x17001FEF RID: 8175
|
||||
// (get) Token: 0x0600CA22 RID: 51746 RVA: 0x002E4B5C File Offset: 0x002E2D5C
|
||||
[Token(Token = "0x17001FEF")]
|
||||
public KeyAgreeRecipientIdentifier Identifier
|
||||
{
|
||||
[Token(Token = "0x600CA22")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.identifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FF0 RID: 8176
|
||||
// (get) Token: 0x0600CA23 RID: 51747 RVA: 0x002E4B70 File Offset: 0x002E2D70
|
||||
[Token(Token = "0x17001FF0")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600CA23")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA24 RID: 51748 RVA: 0x002E4B84 File Offset: 0x002E2D84
|
||||
[Token(Token = "0x600CA24")]
|
||||
[Address(RVA = "0x2AE2310", Offset = "0x2AE1110", VA = "0x182AE2310", 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: 0x040080C0 RID: 32960
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080C0")]
|
||||
private readonly KeyAgreeRecipientIdentifier identifier;
|
||||
|
||||
// Token: 0x040080C1 RID: 32961
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080C1")]
|
||||
private readonly Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F3A RID: 7994
|
||||
[Token(Token = "0x2001F3A")]
|
||||
public class RecipientIdentifier : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CA25 RID: 51749 RVA: 0x002E4BCC File Offset: 0x002E2DCC
|
||||
[Token(Token = "0x600CA25")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public RecipientIdentifier(IssuerAndSerialNumber id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA26 RID: 51750 RVA: 0x002E4BE8 File Offset: 0x002E2DE8
|
||||
[Token(Token = "0x600CA26")]
|
||||
[Address(RVA = "0x2AE27F0", Offset = "0x2AE15F0", VA = "0x182AE27F0")]
|
||||
public RecipientIdentifier(Asn1OctetString id)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, id);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA27 RID: 51751 RVA: 0x002E4C10 File Offset: 0x002E2E10
|
||||
[Token(Token = "0x600CA27")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public RecipientIdentifier(Asn1Object id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA28 RID: 51752 RVA: 0x002E4C2C File Offset: 0x002E2E2C
|
||||
[Token(Token = "0x600CA28")]
|
||||
[Address(RVA = "0x2AE2510", Offset = "0x2AE1310", VA = "0x182AE2510")]
|
||||
public static RecipientIdentifier GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA28)
|
||||
|
||||
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: 0x17001FF1 RID: 8177
|
||||
// (get) Token: 0x0600CA29 RID: 51753 RVA: 0x002E4C84 File Offset: 0x002E2E84
|
||||
[Token(Token = "0x17001FF1")]
|
||||
public bool IsTagged
|
||||
{
|
||||
[Token(Token = "0x600CA29")]
|
||||
[Address(RVA = "0x2AE2950", Offset = "0x2AE1750", VA = "0x182AE2950")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FF2 RID: 8178
|
||||
// (get) Token: 0x0600CA2A RID: 51754 RVA: 0x002E4CB0 File Offset: 0x002E2EB0
|
||||
[Token(Token = "0x17001FF2")]
|
||||
public Asn1Encodable ID
|
||||
{
|
||||
[Token(Token = "0x600CA2A")]
|
||||
[Address(RVA = "0x2AE2870", Offset = "0x2AE1670", VA = "0x182AE2870")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA2A)
|
||||
|
||||
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: 0x0600CA2B RID: 51755 RVA: 0x002E4CE0 File Offset: 0x002E2EE0
|
||||
[Token(Token = "0x600CA2B")]
|
||||
[Address(RVA = "0x53BA50", Offset = "0x53A850", VA = "0x18053BA50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.id.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x040080C2 RID: 32962
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080C2")]
|
||||
private Asn1Encodable id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,223 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F3B RID: 7995
|
||||
[Token(Token = "0x2001F3B")]
|
||||
public class RecipientInfo : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CA2C RID: 51756 RVA: 0x002E4D00 File Offset: 0x002E2F00
|
||||
[Token(Token = "0x600CA2C")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public RecipientInfo(KeyTransRecipientInfo info)
|
||||
{
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA2D RID: 51757 RVA: 0x002E4D1C File Offset: 0x002E2F1C
|
||||
[Token(Token = "0x600CA2D")]
|
||||
[Address(RVA = "0x2AE2DC0", Offset = "0x2AE1BC0", VA = "0x182AE2DC0")]
|
||||
public RecipientInfo(KeyAgreeRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 1, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA2E RID: 51758 RVA: 0x002E4D44 File Offset: 0x002E2F44
|
||||
[Token(Token = "0x600CA2E")]
|
||||
[Address(RVA = "0x2AE2D40", Offset = "0x2AE1B40", VA = "0x182AE2D40")]
|
||||
public RecipientInfo(KekRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 2, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA2F RID: 51759 RVA: 0x002E4D6C File Offset: 0x002E2F6C
|
||||
[Token(Token = "0x600CA2F")]
|
||||
[Address(RVA = "0x2AE2C40", Offset = "0x2AE1A40", VA = "0x182AE2C40")]
|
||||
public RecipientInfo(PasswordRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 3, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA30 RID: 51760 RVA: 0x002E4D94 File Offset: 0x002E2F94
|
||||
[Token(Token = "0x600CA30")]
|
||||
[Address(RVA = "0x2AE2CC0", Offset = "0x2AE1AC0", VA = "0x182AE2CC0")]
|
||||
public RecipientInfo(OtherRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 4, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA31 RID: 51761 RVA: 0x002E4DBC File Offset: 0x002E2FBC
|
||||
[Token(Token = "0x600CA31")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public RecipientInfo(Asn1Object info)
|
||||
{
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA32 RID: 51762 RVA: 0x002E4DD8 File Offset: 0x002E2FD8
|
||||
[Token(Token = "0x600CA32")]
|
||||
[Address(RVA = "0x2AE29D0", Offset = "0x2AE17D0", VA = "0x182AE29D0")]
|
||||
public static RecipientInfo GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA32)
|
||||
|
||||
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: 0x17001FF3 RID: 8179
|
||||
// (get) Token: 0x0600CA33 RID: 51763 RVA: 0x002E4E1C File Offset: 0x002E301C
|
||||
[Token(Token = "0x17001FF3")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CA33")]
|
||||
[Address(RVA = "0x2AE3190", Offset = "0x2AE1F90", VA = "0x182AE3190")]
|
||||
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: 0x17001FF4 RID: 8180
|
||||
// (get) Token: 0x0600CA34 RID: 51764 RVA: 0x002E4E8C File Offset: 0x002E308C
|
||||
[Token(Token = "0x17001FF4")]
|
||||
public bool IsTagged
|
||||
{
|
||||
[Token(Token = "0x600CA34")]
|
||||
[Address(RVA = "0x2AE3110", Offset = "0x2AE1F10", VA = "0x182AE3110")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.info;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FF5 RID: 8181
|
||||
// (get) Token: 0x0600CA35 RID: 51765 RVA: 0x002E4EB8 File Offset: 0x002E30B8
|
||||
[Token(Token = "0x17001FF5")]
|
||||
public Asn1Encodable Info
|
||||
{
|
||||
[Token(Token = "0x600CA35")]
|
||||
[Address(RVA = "0x2AE2E40", Offset = "0x2AE1C40", VA = "0x182AE2E40")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA35)
|
||||
|
||||
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: 0x0600CA36 RID: 51766 RVA: 0x002E4F60 File Offset: 0x002E3160
|
||||
[Token(Token = "0x600CA36")]
|
||||
[Address(RVA = "0x2AE2C10", Offset = "0x2AE1A10", VA = "0x182AE2C10")]
|
||||
private KekRecipientInfo GetKekInfo(Asn1TaggedObject o)
|
||||
{
|
||||
bool explicitly = o.explicitly;
|
||||
return KekRecipientInfo.GetInstance(Asn1Sequence.GetInstance(o, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA37 RID: 51767 RVA: 0x002E4F88 File Offset: 0x002E3188
|
||||
[Token(Token = "0x600CA37")]
|
||||
[Address(RVA = "0x53BA50", Offset = "0x53A850", VA = "0x18053BA50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.info.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x040080C3 RID: 32963
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080C3")]
|
||||
internal Asn1Encodable info;
|
||||
}
|
||||
}
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F3C RID: 7996
|
||||
[Token(Token = "0x2001F3C")]
|
||||
public class RecipientKeyIdentifier : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA38 RID: 51768 RVA: 0x002E4FA8 File Offset: 0x002E31A8
|
||||
[Token(Token = "0x600CA38")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
public RecipientKeyIdentifier(Asn1OctetString subjectKeyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
|
||||
{
|
||||
this.subjectKeyIdentifier = subjectKeyIdentifier;
|
||||
this.date = date;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA39 RID: 51769 RVA: 0x002E4FD0 File Offset: 0x002E31D0
|
||||
[Token(Token = "0x600CA39")]
|
||||
[Address(RVA = "0x2AE3710", Offset = "0x2AE2510", VA = "0x182AE3710")]
|
||||
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(subjectKeyIdentifier);
|
||||
int num = 0;
|
||||
this.subjectKeyIdentifier = derOctetString;
|
||||
this.date = num;
|
||||
this.other = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA3A RID: 51770 RVA: 0x002E5004 File Offset: 0x002E3204
|
||||
[Token(Token = "0x600CA3A")]
|
||||
[Address(RVA = "0x2AE3790", Offset = "0x2AE2590", VA = "0x182AE3790")]
|
||||
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(subjectKeyIdentifier);
|
||||
this.subjectKeyIdentifier = derOctetString;
|
||||
this.date = date;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA3B RID: 51771 RVA: 0x002E5034 File Offset: 0x002E3234
|
||||
[Token(Token = "0x600CA3B")]
|
||||
[Address(RVA = "0x2AE3820", Offset = "0x2AE2620", VA = "0x182AE3820")]
|
||||
public RecipientKeyIdentifier(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA3B)
|
||||
|
||||
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: 0x0600CA3C RID: 51772 RVA: 0x002E50B4 File Offset: 0x002E32B4
|
||||
[Token(Token = "0x600CA3C")]
|
||||
[Address(RVA = "0x2AE3520", Offset = "0x2AE2320", VA = "0x182AE3520")]
|
||||
public static RecipientKeyIdentifier GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return RecipientKeyIdentifier.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA3D RID: 51773 RVA: 0x002E50D0 File Offset: 0x002E32D0
|
||||
[Token(Token = "0x600CA3D")]
|
||||
[Address(RVA = "0x2AE3330", Offset = "0x2AE2130", VA = "0x182AE3330")]
|
||||
public static RecipientKeyIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA3D)
|
||||
|
||||
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: 0x17001FF6 RID: 8182
|
||||
// (get) Token: 0x0600CA3E RID: 51774 RVA: 0x002E5120 File Offset: 0x002E3320
|
||||
[Token(Token = "0x17001FF6")]
|
||||
public Asn1OctetString SubjectKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CA3E")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.subjectKeyIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FF7 RID: 8183
|
||||
// (get) Token: 0x0600CA3F RID: 51775 RVA: 0x002E5134 File Offset: 0x002E3334
|
||||
[Token(Token = "0x17001FF7")]
|
||||
public DerGeneralizedTime Date
|
||||
{
|
||||
[Token(Token = "0x600CA3F")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.date;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FF8 RID: 8184
|
||||
// (get) Token: 0x0600CA40 RID: 51776 RVA: 0x002E5148 File Offset: 0x002E3348
|
||||
[Token(Token = "0x17001FF8")]
|
||||
public OtherKeyAttribute OtherKeyAttribute
|
||||
{
|
||||
[Token(Token = "0x600CA40")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.other;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA41 RID: 51777 RVA: 0x002E515C File Offset: 0x002E335C
|
||||
[Token(Token = "0x600CA41")]
|
||||
[Address(RVA = "0x2AE3540", Offset = "0x2AE2340", VA = "0x182AE3540", 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: 0x040080C4 RID: 32964
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080C4")]
|
||||
private Asn1OctetString subjectKeyIdentifier;
|
||||
|
||||
// Token: 0x040080C5 RID: 32965
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080C5")]
|
||||
private DerGeneralizedTime date;
|
||||
|
||||
// Token: 0x040080C6 RID: 32966
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080C6")]
|
||||
private OtherKeyAttribute other;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F3D RID: 7997
|
||||
[Token(Token = "0x2001F3D")]
|
||||
public class ScvpReqRes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA42 RID: 51778 RVA: 0x002E51D4 File Offset: 0x002E33D4
|
||||
[Token(Token = "0x600CA42")]
|
||||
[Address(RVA = "0x2AE59B0", Offset = "0x2AE47B0", VA = "0x182AE59B0")]
|
||||
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: 0x0600CA43 RID: 51779 RVA: 0x002E5260 File Offset: 0x002E3460
|
||||
[Token(Token = "0x600CA43")]
|
||||
[Address(RVA = "0x2AE5DA0", Offset = "0x2AE4BA0", VA = "0x182AE5DA0")]
|
||||
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: 0x0600CA44 RID: 51780 RVA: 0x002E52C4 File Offset: 0x002E34C4
|
||||
[Token(Token = "0x600CA44")]
|
||||
[Address(RVA = "0x2AE5ED0", Offset = "0x2AE4CD0", VA = "0x182AE5ED0")]
|
||||
public ScvpReqRes(ContentInfo response)
|
||||
{
|
||||
this.request = (ulong)0L;
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA45 RID: 51781 RVA: 0x002E52E8 File Offset: 0x002E34E8
|
||||
[Token(Token = "0x600CA45")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public ScvpReqRes(ContentInfo request, ContentInfo response)
|
||||
{
|
||||
this.request = request;
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
// Token: 0x17001FF9 RID: 8185
|
||||
// (get) Token: 0x0600CA46 RID: 51782 RVA: 0x002E530C File Offset: 0x002E350C
|
||||
[Token(Token = "0x17001FF9")]
|
||||
public virtual ContentInfo Request
|
||||
{
|
||||
[Token(Token = "0x600CA46")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.request;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FFA RID: 8186
|
||||
// (get) Token: 0x0600CA47 RID: 51783 RVA: 0x002E5320 File Offset: 0x002E3520
|
||||
[Token(Token = "0x17001FFA")]
|
||||
public virtual ContentInfo Response
|
||||
{
|
||||
[Token(Token = "0x600CA47")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.response;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA48 RID: 51784 RVA: 0x002E5334 File Offset: 0x002E3534
|
||||
[Token(Token = "0x600CA48")]
|
||||
[Address(RVA = "0x2AE5BC0", Offset = "0x2AE49C0", VA = "0x182AE5BC0", 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: 0x040080C7 RID: 32967
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080C7")]
|
||||
private readonly ContentInfo request;
|
||||
|
||||
// Token: 0x040080C8 RID: 32968
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080C8")]
|
||||
private readonly ContentInfo response;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,432 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F3E RID: 7998
|
||||
[Token(Token = "0x2001F3E")]
|
||||
public class SignedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA49 RID: 51785 RVA: 0x002E53B0 File Offset: 0x002E35B0
|
||||
[Token(Token = "0x600CA49")]
|
||||
[Address(RVA = "0x2AE6DC0", Offset = "0x2AE5BC0", VA = "0x182AE6DC0")]
|
||||
public static SignedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA49)
|
||||
|
||||
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: 0x0600CA4A RID: 51786 RVA: 0x002E5400 File Offset: 0x002E3600
|
||||
[Token(Token = "0x600CA4A")]
|
||||
[Address(RVA = "0x2AE78C0", Offset = "0x2AE66C0", VA = "0x182AE78C0")]
|
||||
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: 0x0600CA4B RID: 51787 RVA: 0x002E5468 File Offset: 0x002E3668
|
||||
[Token(Token = "0x600CA4B")]
|
||||
[Address(RVA = "0x2AE6770", Offset = "0x2AE5570", VA = "0x182AE6770")]
|
||||
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: 0x0600CA4C RID: 51788 RVA: 0x002E550C File Offset: 0x002E370C
|
||||
[Token(Token = "0x600CA4C")]
|
||||
[Address(RVA = "0x2AE6C10", Offset = "0x2AE5A10", VA = "0x182AE6C10")]
|
||||
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: 0x0600CA4D RID: 51789 RVA: 0x002E5568 File Offset: 0x002E3768
|
||||
[Token(Token = "0x600CA4D")]
|
||||
[Address(RVA = "0x2AE7530", Offset = "0x2AE6330", VA = "0x182AE7530")]
|
||||
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: 0x17001FFB RID: 8187
|
||||
// (get) Token: 0x0600CA4E RID: 51790 RVA: 0x002E562C File Offset: 0x002E382C
|
||||
[Token(Token = "0x17001FFB")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CA4E")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FFC RID: 8188
|
||||
// (get) Token: 0x0600CA4F RID: 51791 RVA: 0x002E5640 File Offset: 0x002E3840
|
||||
[Token(Token = "0x17001FFC")]
|
||||
public Asn1Set DigestAlgorithms
|
||||
{
|
||||
[Token(Token = "0x600CA4F")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithms;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FFD RID: 8189
|
||||
// (get) Token: 0x0600CA50 RID: 51792 RVA: 0x002E5654 File Offset: 0x002E3854
|
||||
[Token(Token = "0x17001FFD")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600CA50")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.contentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FFE RID: 8190
|
||||
// (get) Token: 0x0600CA51 RID: 51793 RVA: 0x002E5668 File Offset: 0x002E3868
|
||||
[Token(Token = "0x17001FFE")]
|
||||
public Asn1Set Certificates
|
||||
{
|
||||
[Token(Token = "0x600CA51")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.certificates;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FFF RID: 8191
|
||||
// (get) Token: 0x0600CA52 RID: 51794 RVA: 0x002E567C File Offset: 0x002E387C
|
||||
[Token(Token = "0x17001FFF")]
|
||||
public Asn1Set CRLs
|
||||
{
|
||||
[Token(Token = "0x600CA52")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.crls;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002000 RID: 8192
|
||||
// (get) Token: 0x0600CA53 RID: 51795 RVA: 0x002E5690 File Offset: 0x002E3890
|
||||
[Token(Token = "0x17002000")]
|
||||
public Asn1Set SignerInfos
|
||||
{
|
||||
[Token(Token = "0x600CA53")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.signerInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA54 RID: 51796 RVA: 0x002E56A4 File Offset: 0x002E38A4
|
||||
[Token(Token = "0x600CA54")]
|
||||
[Address(RVA = "0x2AE6FB0", Offset = "0x2AE5DB0", VA = "0x182AE6FB0", 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: 0x040080C9 RID: 32969
|
||||
[Token(Token = "0x40080C9")]
|
||||
private static readonly DerInteger Version1 = new DerInteger(1);
|
||||
|
||||
// Token: 0x040080CA RID: 32970
|
||||
[Token(Token = "0x40080CA")]
|
||||
private static readonly DerInteger Version3 = new DerInteger(3);
|
||||
|
||||
// Token: 0x040080CB RID: 32971
|
||||
[Token(Token = "0x40080CB")]
|
||||
private static readonly DerInteger Version4 = new DerInteger(4);
|
||||
|
||||
// Token: 0x040080CC RID: 32972
|
||||
[Token(Token = "0x40080CC")]
|
||||
private static readonly DerInteger Version5 = new DerInteger(5);
|
||||
|
||||
// Token: 0x040080CD RID: 32973
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080CD")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x040080CE RID: 32974
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080CE")]
|
||||
private readonly Asn1Set digestAlgorithms;
|
||||
|
||||
// Token: 0x040080CF RID: 32975
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080CF")]
|
||||
private readonly ContentInfo contentInfo;
|
||||
|
||||
// Token: 0x040080D0 RID: 32976
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080D0")]
|
||||
private readonly Asn1Set certificates;
|
||||
|
||||
// Token: 0x040080D1 RID: 32977
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40080D1")]
|
||||
private readonly Asn1Set crls;
|
||||
|
||||
// Token: 0x040080D2 RID: 32978
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40080D2")]
|
||||
private readonly Asn1Set signerInfos;
|
||||
|
||||
// Token: 0x040080D3 RID: 32979
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40080D3")]
|
||||
private readonly bool certsBer;
|
||||
|
||||
// Token: 0x040080D4 RID: 32980
|
||||
[FieldOffset(Offset = "0x41")]
|
||||
[Token(Token = "0x40080D4")]
|
||||
private readonly bool crlsBer;
|
||||
}
|
||||
}
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F3F RID: 7999
|
||||
[Token(Token = "0x2001F3F")]
|
||||
public class SignedDataParser
|
||||
{
|
||||
// Token: 0x0600CA56 RID: 51798 RVA: 0x002E5820 File Offset: 0x002E3A20
|
||||
[Token(Token = "0x600CA56")]
|
||||
[Address(RVA = "0x2AE63B0", Offset = "0x2AE51B0", VA = "0x182AE63B0")]
|
||||
public static SignedDataParser GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA56)
|
||||
|
||||
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: 0x0600CA57 RID: 51799 RVA: 0x002E5864 File Offset: 0x002E3A64
|
||||
[Token(Token = "0x600CA57")]
|
||||
[Address(RVA = "0x2AE66A0", Offset = "0x2AE54A0", VA = "0x182AE66A0")]
|
||||
public SignedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this._seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17002001 RID: 8193
|
||||
// (get) Token: 0x0600CA58 RID: 51800 RVA: 0x002E5894 File Offset: 0x002E3A94
|
||||
[Token(Token = "0x17002001")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CA58")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA59 RID: 51801 RVA: 0x002E58A8 File Offset: 0x002E3AA8
|
||||
[Token(Token = "0x600CA59")]
|
||||
[Address(RVA = "0x2AE6280", Offset = "0x2AE5080", VA = "0x182AE6280")]
|
||||
public Asn1SetParser GetDigestAlgorithms()
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CA5A RID: 51802 RVA: 0x002E58C4 File Offset: 0x002E3AC4
|
||||
[Token(Token = "0x600CA5A")]
|
||||
[Address(RVA = "0x2AE6300", Offset = "0x2AE5100", VA = "0x182AE6300")]
|
||||
public ContentInfoParser GetEncapContentInfo()
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
do
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
if (this == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (contentInfoParser == 0);
|
||||
return contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA5B RID: 51803 RVA: 0x002E58E8 File Offset: 0x002E3AE8
|
||||
[Token(Token = "0x600CA5B")]
|
||||
[Address(RVA = "0x2AE5F00", Offset = "0x2AE4D00", VA = "0x182AE5F00")]
|
||||
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: 0x0600CA5C RID: 51804 RVA: 0x002E5930 File Offset: 0x002E3B30
|
||||
[Token(Token = "0x600CA5C")]
|
||||
[Address(RVA = "0x2AE60A0", Offset = "0x2AE4EA0", VA = "0x182AE60A0")]
|
||||
public Asn1SetParser GetCrls()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA5C)
|
||||
|
||||
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: 0x0600CA5D RID: 51805 RVA: 0x002E59B0 File Offset: 0x002E3BB0
|
||||
[Token(Token = "0x600CA5D")]
|
||||
[Address(RVA = "0x2AE65D0", Offset = "0x2AE53D0", VA = "0x182AE65D0")]
|
||||
public Asn1SetParser GetSignerInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA5D)
|
||||
|
||||
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: 0x040080D5 RID: 32981
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080D5")]
|
||||
private Asn1SequenceParser _seq;
|
||||
|
||||
// Token: 0x040080D6 RID: 32982
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080D6")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x040080D7 RID: 32983
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080D7")]
|
||||
private object _nextObject;
|
||||
|
||||
// Token: 0x040080D8 RID: 32984
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080D8")]
|
||||
private bool _certsCalled;
|
||||
|
||||
// Token: 0x040080D9 RID: 32985
|
||||
[FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x40080D9")]
|
||||
private bool _crlsCalled;
|
||||
}
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F40 RID: 8000
|
||||
[Token(Token = "0x2001F40")]
|
||||
public class SignerIdentifier : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CA5E RID: 51806 RVA: 0x002E59F4 File Offset: 0x002E3BF4
|
||||
[Token(Token = "0x600CA5E")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public SignerIdentifier(IssuerAndSerialNumber id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA5F RID: 51807 RVA: 0x002E5A10 File Offset: 0x002E3C10
|
||||
[Token(Token = "0x600CA5F")]
|
||||
[Address(RVA = "0x2AE7CF0", Offset = "0x2AE6AF0", VA = "0x182AE7CF0")]
|
||||
public SignerIdentifier(Asn1OctetString id)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, id);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA60 RID: 51808 RVA: 0x002E5A38 File Offset: 0x002E3C38
|
||||
[Token(Token = "0x600CA60")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public SignerIdentifier(Asn1Object id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA61 RID: 51809 RVA: 0x002E5A54 File Offset: 0x002E3C54
|
||||
[Token(Token = "0x600CA61")]
|
||||
[Address(RVA = "0x2AE7A10", Offset = "0x2AE6810", VA = "0x182AE7A10")]
|
||||
public static SignerIdentifier GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA61)
|
||||
|
||||
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: 0x17002002 RID: 8194
|
||||
// (get) Token: 0x0600CA62 RID: 51810 RVA: 0x002E5AAC File Offset: 0x002E3CAC
|
||||
[Token(Token = "0x17002002")]
|
||||
public bool IsTagged
|
||||
{
|
||||
[Token(Token = "0x600CA62")]
|
||||
[Address(RVA = "0x2AE7E40", Offset = "0x2AE6C40", VA = "0x182AE7E40")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002003 RID: 8195
|
||||
// (get) Token: 0x0600CA63 RID: 51811 RVA: 0x002E5AD8 File Offset: 0x002E3CD8
|
||||
[Token(Token = "0x17002003")]
|
||||
public Asn1Encodable ID
|
||||
{
|
||||
[Token(Token = "0x600CA63")]
|
||||
[Address(RVA = "0x2AE7D70", Offset = "0x2AE6B70", VA = "0x182AE7D70")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
do
|
||||
{
|
||||
asn1Encodable = this.id;
|
||||
}
|
||||
while (asn1Encodable != 0 && asn1Encodable != 0 && asn1Encodable != 0 && asn1Encodable == 0);
|
||||
return asn1Encodable;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA64 RID: 51812 RVA: 0x002E5B04 File Offset: 0x002E3D04
|
||||
[Token(Token = "0x600CA64")]
|
||||
[Address(RVA = "0x53BA50", Offset = "0x53A850", VA = "0x18053BA50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.id.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x040080DA RID: 32986
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080DA")]
|
||||
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: 0x02001F41 RID: 8001
|
||||
[Token(Token = "0x2001F41")]
|
||||
public class SignerInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA65 RID: 51813 RVA: 0x002E5B24 File Offset: 0x002E3D24
|
||||
[Token(Token = "0x600CA65")]
|
||||
[Address(RVA = "0x2AE7EC0", Offset = "0x2AE6CC0", VA = "0x182AE7EC0")]
|
||||
public static SignerInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA65)
|
||||
|
||||
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: 0x0600CA66 RID: 51814 RVA: 0x002E5B78 File Offset: 0x002E3D78
|
||||
[Token(Token = "0x600CA66")]
|
||||
[Address(RVA = "0x2AE84A0", Offset = "0x2AE72A0", VA = "0x182AE84A0")]
|
||||
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: 0x0600CA67 RID: 51815 RVA: 0x002E5BD0 File Offset: 0x002E3DD0
|
||||
[Token(Token = "0x600CA67")]
|
||||
[Address(RVA = "0x2AE88B0", Offset = "0x2AE76B0", VA = "0x182AE88B0")]
|
||||
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: 0x0600CA68 RID: 51816 RVA: 0x002E5C30 File Offset: 0x002E3E30
|
||||
[Token(Token = "0x600CA68")]
|
||||
[Address(RVA = "0x2AE8580", Offset = "0x2AE7380", VA = "0x182AE8580")]
|
||||
[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: 0x17002004 RID: 8196
|
||||
// (get) Token: 0x0600CA69 RID: 51817 RVA: 0x002E5CE8 File Offset: 0x002E3EE8
|
||||
[Token(Token = "0x17002004")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CA69")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002005 RID: 8197
|
||||
// (get) Token: 0x0600CA6A RID: 51818 RVA: 0x002E5CFC File Offset: 0x002E3EFC
|
||||
[Token(Token = "0x17002005")]
|
||||
public SignerIdentifier SignerID
|
||||
{
|
||||
[Token(Token = "0x600CA6A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.sid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002006 RID: 8198
|
||||
// (get) Token: 0x0600CA6B RID: 51819 RVA: 0x002E5D10 File Offset: 0x002E3F10
|
||||
[Token(Token = "0x17002006")]
|
||||
public Asn1Set AuthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600CA6B")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.authenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002007 RID: 8199
|
||||
// (get) Token: 0x0600CA6C RID: 51820 RVA: 0x002E5D24 File Offset: 0x002E3F24
|
||||
[Token(Token = "0x17002007")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CA6C")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.digAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002008 RID: 8200
|
||||
// (get) Token: 0x0600CA6D RID: 51821 RVA: 0x002E5D38 File Offset: 0x002E3F38
|
||||
[Token(Token = "0x17002008")]
|
||||
public Asn1OctetString EncryptedDigest
|
||||
{
|
||||
[Token(Token = "0x600CA6D")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002009 RID: 8201
|
||||
// (get) Token: 0x0600CA6E RID: 51822 RVA: 0x002E5D4C File Offset: 0x002E3F4C
|
||||
[Token(Token = "0x17002009")]
|
||||
public AlgorithmIdentifier DigestEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CA6E")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.digEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700200A RID: 8202
|
||||
// (get) Token: 0x0600CA6F RID: 51823 RVA: 0x002E5D60 File Offset: 0x002E3F60
|
||||
[Token(Token = "0x1700200A")]
|
||||
public Asn1Set UnauthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600CA6F")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
||||
get
|
||||
{
|
||||
return this.unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA70 RID: 51824 RVA: 0x002E5D74 File Offset: 0x002E3F74
|
||||
[Token(Token = "0x600CA70")]
|
||||
[Address(RVA = "0x2AE80C0", Offset = "0x2AE6EC0", VA = "0x182AE80C0", 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: 0x040080DB RID: 32987
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080DB")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040080DC RID: 32988
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080DC")]
|
||||
private SignerIdentifier sid;
|
||||
|
||||
// Token: 0x040080DD RID: 32989
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080DD")]
|
||||
private AlgorithmIdentifier digAlgorithm;
|
||||
|
||||
// Token: 0x040080DE RID: 32990
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080DE")]
|
||||
private Asn1Set authenticatedAttributes;
|
||||
|
||||
// Token: 0x040080DF RID: 32991
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40080DF")]
|
||||
private AlgorithmIdentifier digEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x040080E0 RID: 32992
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40080E0")]
|
||||
private Asn1OctetString encryptedDigest;
|
||||
|
||||
// Token: 0x040080E1 RID: 32993
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40080E1")]
|
||||
private Asn1Set unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F42 RID: 8002
|
||||
[Token(Token = "0x2001F42")]
|
||||
public class Time : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CA71 RID: 51825 RVA: 0x002E5EA0 File Offset: 0x002E40A0
|
||||
[Token(Token = "0x600CA71")]
|
||||
[Address(RVA = "0x2AEA1F0", Offset = "0x2AE8FF0", VA = "0x182AEA1F0")]
|
||||
public static Time GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return Time.GetInstance(obj.GetObject());
|
||||
}
|
||||
|
||||
// Token: 0x0600CA72 RID: 51826 RVA: 0x002E5EC0 File Offset: 0x002E40C0
|
||||
[Token(Token = "0x600CA72")]
|
||||
[Address(RVA = "0x2AEA360", Offset = "0x2AE9160", VA = "0x182AEA360")]
|
||||
public Time(Asn1Object time)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA72)
|
||||
|
||||
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: 0x0600CA73 RID: 51827 RVA: 0x002E5F00 File Offset: 0x002E4100
|
||||
[Token(Token = "0x600CA73")]
|
||||
[Address(RVA = "0x2AEA220", Offset = "0x2AE9020", VA = "0x182AEA220")]
|
||||
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: 0x0600CA74 RID: 51828 RVA: 0x002E5F78 File Offset: 0x002E4178
|
||||
[Token(Token = "0x600CA74")]
|
||||
[Address(RVA = "0x2AE9F60", Offset = "0x2AE8D60", VA = "0x182AE9F60")]
|
||||
public static Time GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA74)
|
||||
|
||||
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: 0x1700200B RID: 8203
|
||||
// (get) Token: 0x0600CA75 RID: 51829 RVA: 0x002E5FD8 File Offset: 0x002E41D8
|
||||
[Token(Token = "0x1700200B")]
|
||||
public string TimeString
|
||||
{
|
||||
[Token(Token = "0x600CA75")]
|
||||
[Address(RVA = "0x2AEA6C0", Offset = "0x2AE94C0", VA = "0x182AEA6C0")]
|
||||
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: 0x1700200C RID: 8204
|
||||
// (get) Token: 0x0600CA76 RID: 51830 RVA: 0x002E6018 File Offset: 0x002E4218
|
||||
[Token(Token = "0x1700200C")]
|
||||
public DateTime Date
|
||||
{
|
||||
[Token(Token = "0x600CA76")]
|
||||
[Address(RVA = "0x2AEA490", Offset = "0x2AE9290", VA = "0x182AEA490")]
|
||||
get
|
||||
{
|
||||
Asn1Object asn1Object = this.time;
|
||||
if (asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0))
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
if (asn1Object != 0 && asn1Object != 0)
|
||||
{
|
||||
DateTime dateTime;
|
||||
return dateTime;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA77 RID: 51831 RVA: 0x002E6070 File Offset: 0x002E4270
|
||||
[Token(Token = "0x600CA77")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.time;
|
||||
}
|
||||
|
||||
// Token: 0x040080E2 RID: 32994
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080E2")]
|
||||
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: 0x02001F43 RID: 8003
|
||||
[Token(Token = "0x2001F43")]
|
||||
public class TimeStampAndCrl : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA78 RID: 51832 RVA: 0x002E6084 File Offset: 0x002E4284
|
||||
[Token(Token = "0x600CA78")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public TimeStampAndCrl(ContentInfo timeStamp)
|
||||
{
|
||||
this.timeStamp = timeStamp;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA79 RID: 51833 RVA: 0x002E60A0 File Offset: 0x002E42A0
|
||||
[Token(Token = "0x600CA79")]
|
||||
[Address(RVA = "0x2AE8C80", Offset = "0x2AE7A80", VA = "0x182AE8C80")]
|
||||
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: 0x0600CA7A RID: 51834 RVA: 0x002E60DC File Offset: 0x002E42DC
|
||||
[Token(Token = "0x600CA7A")]
|
||||
[Address(RVA = "0x2AE89A0", Offset = "0x2AE77A0", VA = "0x182AE89A0")]
|
||||
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: 0x1700200D RID: 8205
|
||||
// (get) Token: 0x0600CA7B RID: 51835 RVA: 0x002E6134 File Offset: 0x002E4334
|
||||
[Token(Token = "0x1700200D")]
|
||||
public virtual ContentInfo TimeStampToken
|
||||
{
|
||||
[Token(Token = "0x600CA7B")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.timeStamp;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700200E RID: 8206
|
||||
// (get) Token: 0x0600CA7C RID: 51836 RVA: 0x002E6148 File Offset: 0x002E4348
|
||||
[Token(Token = "0x1700200E")]
|
||||
public virtual CertificateList Crl
|
||||
{
|
||||
[Token(Token = "0x600CA7C")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.crl;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA7D RID: 51837 RVA: 0x002E615C File Offset: 0x002E435C
|
||||
[Token(Token = "0x600CA7D")]
|
||||
[Address(RVA = "0x2AE8B10", Offset = "0x2AE7910", VA = "0x182AE8B10", 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: 0x040080E3 RID: 32995
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080E3")]
|
||||
private ContentInfo timeStamp;
|
||||
|
||||
// Token: 0x040080E4 RID: 32996
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080E4")]
|
||||
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: 0x02001F44 RID: 8004
|
||||
[Token(Token = "0x2001F44")]
|
||||
public class TimeStampTokenEvidence : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA7E RID: 51838 RVA: 0x002E61BC File Offset: 0x002E43BC
|
||||
[Token(Token = "0x600CA7E")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl[] timeStampAndCrls)
|
||||
{
|
||||
this.timeStampAndCrls = timeStampAndCrls;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA7F RID: 51839 RVA: 0x002E61D8 File Offset: 0x002E43D8
|
||||
[Token(Token = "0x600CA7F")]
|
||||
[Address(RVA = "0x2AE93D0", Offset = "0x2AE81D0", VA = "0x182AE93D0")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl timeStampAndCrl)
|
||||
{
|
||||
TimeStampAndCrl[] array = new TimeStampAndCrl[1];
|
||||
if (timeStampAndCrl != 0)
|
||||
{
|
||||
}
|
||||
array[0] = timeStampAndCrl;
|
||||
this.timeStampAndCrls = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA80 RID: 51840 RVA: 0x002E620C File Offset: 0x002E440C
|
||||
[Token(Token = "0x600CA80")]
|
||||
[Address(RVA = "0x2AE8FF0", Offset = "0x2AE7DF0", VA = "0x182AE8FF0")]
|
||||
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: 0x0600CA81 RID: 51841 RVA: 0x002E62D8 File Offset: 0x002E44D8
|
||||
[Token(Token = "0x600CA81")]
|
||||
[Address(RVA = "0x2AE8E10", Offset = "0x2AE7C10", VA = "0x182AE8E10")]
|
||||
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: 0x0600CA82 RID: 51842 RVA: 0x002E6314 File Offset: 0x002E4514
|
||||
[Token(Token = "0x600CA82")]
|
||||
[Address(RVA = "0x2AE8D10", Offset = "0x2AE7B10", VA = "0x182AE8D10")]
|
||||
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: 0x0600CA83 RID: 51843 RVA: 0x002E6348 File Offset: 0x002E4548
|
||||
[Token(Token = "0x600CA83")]
|
||||
[Address(RVA = "0x2AE8F70", Offset = "0x2AE7D70", VA = "0x182AE8F70", Slot = "6")]
|
||||
public virtual TimeStampAndCrl[] ToTimeStampAndCrlArray()
|
||||
{
|
||||
TimeStampAndCrl[] array = this.timeStampAndCrls;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CA84 RID: 51844 RVA: 0x002E6364 File Offset: 0x002E4564
|
||||
[Token(Token = "0x600CA84")]
|
||||
[Address(RVA = "0x2AE8F10", Offset = "0x2AE7D10", VA = "0x182AE8F10", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA84)
|
||||
|
||||
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: 0x040080E5 RID: 32997
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080E5")]
|
||||
private TimeStampAndCrl[] timeStampAndCrls;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F45 RID: 8005
|
||||
[Token(Token = "0x2001F45")]
|
||||
public class TimeStampedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA85 RID: 51845 RVA: 0x002E637C File Offset: 0x002E457C
|
||||
[Token(Token = "0x600CA85")]
|
||||
[Address(RVA = "0x2AE9C30", Offset = "0x2AE8A30", VA = "0x182AE9C30")]
|
||||
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: 0x0600CA86 RID: 51846 RVA: 0x002E63BC File Offset: 0x002E45BC
|
||||
[Token(Token = "0x600CA86")]
|
||||
[Address(RVA = "0x2AE9CD0", Offset = "0x2AE8AD0", VA = "0x182AE9CD0")]
|
||||
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: 0x0600CA87 RID: 51847 RVA: 0x002E6474 File Offset: 0x002E4674
|
||||
[Token(Token = "0x600CA87")]
|
||||
[Address(RVA = "0x2AE98A0", Offset = "0x2AE86A0", VA = "0x182AE98A0")]
|
||||
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: 0x1700200F RID: 8207
|
||||
// (get) Token: 0x0600CA88 RID: 51848 RVA: 0x002E64A8 File Offset: 0x002E46A8
|
||||
[Token(Token = "0x1700200F")]
|
||||
public virtual DerIA5String DataUri
|
||||
{
|
||||
[Token(Token = "0x600CA88")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.dataUri;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002010 RID: 8208
|
||||
// (get) Token: 0x0600CA89 RID: 51849 RVA: 0x002E64BC File Offset: 0x002E46BC
|
||||
[Token(Token = "0x17002010")]
|
||||
public MetaData MetaData
|
||||
{
|
||||
[Token(Token = "0x600CA89")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.metaData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002011 RID: 8209
|
||||
// (get) Token: 0x0600CA8A RID: 51850 RVA: 0x002E64D0 File Offset: 0x002E46D0
|
||||
[Token(Token = "0x17002011")]
|
||||
public Asn1OctetString Content
|
||||
{
|
||||
[Token(Token = "0x600CA8A")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002012 RID: 8210
|
||||
// (get) Token: 0x0600CA8B RID: 51851 RVA: 0x002E64E4 File Offset: 0x002E46E4
|
||||
[Token(Token = "0x17002012")]
|
||||
public Evidence TemporalEvidence
|
||||
{
|
||||
[Token(Token = "0x600CA8B")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.temporalEvidence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA8C RID: 51852 RVA: 0x002E64F8 File Offset: 0x002E46F8
|
||||
[Token(Token = "0x600CA8C")]
|
||||
[Address(RVA = "0x2AE99A0", Offset = "0x2AE87A0", VA = "0x182AE99A0", 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: 0x040080E6 RID: 32998
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080E6")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040080E7 RID: 32999
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080E7")]
|
||||
private DerIA5String dataUri;
|
||||
|
||||
// Token: 0x040080E8 RID: 33000
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080E8")]
|
||||
private MetaData metaData;
|
||||
|
||||
// Token: 0x040080E9 RID: 33001
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080E9")]
|
||||
private Asn1OctetString content;
|
||||
|
||||
// Token: 0x040080EA RID: 33002
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40080EA")]
|
||||
private Evidence temporalEvidence;
|
||||
}
|
||||
}
|
||||
+149
@@ -0,0 +1,149 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F46 RID: 8006
|
||||
[Token(Token = "0x2001F46")]
|
||||
public class TimeStampedDataParser
|
||||
{
|
||||
// Token: 0x0600CA8D RID: 51853 RVA: 0x002E65AC File Offset: 0x002E47AC
|
||||
[Token(Token = "0x600CA8D")]
|
||||
[Address(RVA = "0x2AE96C0", Offset = "0x2AE84C0", VA = "0x182AE96C0")]
|
||||
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: 0x0600CA8E RID: 51854 RVA: 0x002E661C File Offset: 0x002E481C
|
||||
[Token(Token = "0x600CA8E")]
|
||||
[Address(RVA = "0x2AE9480", Offset = "0x2AE8280", VA = "0x182AE9480")]
|
||||
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: 0x17002013 RID: 8211
|
||||
// (get) Token: 0x0600CA8F RID: 51855 RVA: 0x002E6648 File Offset: 0x002E4848
|
||||
[Token(Token = "0x17002013")]
|
||||
public virtual DerIA5String DataUri
|
||||
{
|
||||
[Token(Token = "0x600CA8F")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.dataUri;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002014 RID: 8212
|
||||
// (get) Token: 0x0600CA90 RID: 51856 RVA: 0x002E665C File Offset: 0x002E485C
|
||||
[Token(Token = "0x17002014")]
|
||||
public virtual MetaData MetaData
|
||||
{
|
||||
[Token(Token = "0x600CA90")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.metaData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002015 RID: 8213
|
||||
// (get) Token: 0x0600CA91 RID: 51857 RVA: 0x002E6670 File Offset: 0x002E4870
|
||||
[Token(Token = "0x17002015")]
|
||||
public virtual Asn1OctetStringParser Content
|
||||
{
|
||||
[Token(Token = "0x600CA91")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA92 RID: 51858 RVA: 0x002E6684 File Offset: 0x002E4884
|
||||
[Token(Token = "0x600CA92")]
|
||||
[Address(RVA = "0x2AE9640", Offset = "0x2AE8440", VA = "0x182AE9640", 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: 0x040080EB RID: 33003
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080EB")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040080EC RID: 33004
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080EC")]
|
||||
private DerIA5String dataUri;
|
||||
|
||||
// Token: 0x040080ED RID: 33005
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080ED")]
|
||||
private MetaData metaData;
|
||||
|
||||
// Token: 0x040080EE RID: 33006
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080EE")]
|
||||
private Asn1OctetStringParser content;
|
||||
|
||||
// Token: 0x040080EF RID: 33007
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40080EF")]
|
||||
private Evidence temporalEvidence;
|
||||
|
||||
// Token: 0x040080F0 RID: 33008
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40080F0")]
|
||||
private Asn1SequenceParser parser;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user