scripts
This commit is contained in:
@@ -0,0 +1,130 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193B RID: 6459
|
||||
[Token(Token = "0x200193B")]
|
||||
[StructLayout(3)]
|
||||
public class Attribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD45 RID: 44357 RVA: 0x00288B04 File Offset: 0x00286D04
|
||||
[Token(Token = "0x600AD45")]
|
||||
[Address(RVA = "0x28E92B0", Offset = "0x28E7CB0", VA = "0x1828E92B0")]
|
||||
public static Attribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD45)
|
||||
|
||||
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: 0x0600AD46 RID: 44358 RVA: 0x00288B5C File Offset: 0x00286D5C
|
||||
[Token(Token = "0x600AD46")]
|
||||
[Address(RVA = "0x28E96C0", Offset = "0x28E80C0", VA = "0x1828E96C0")]
|
||||
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: 0x0600AD47 RID: 44359 RVA: 0x00288BA8 File Offset: 0x00286DA8
|
||||
[Token(Token = "0x600AD47")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public Attribute(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x17001B96 RID: 7062
|
||||
// (get) Token: 0x0600AD48 RID: 44360 RVA: 0x00288BCC File Offset: 0x00286DCC
|
||||
[Token(Token = "0x17001B96")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600AD48")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B97 RID: 7063
|
||||
// (get) Token: 0x0600AD49 RID: 44361 RVA: 0x00288BE0 File Offset: 0x00286DE0
|
||||
[Token(Token = "0x17001B97")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600AD49")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD4A RID: 44362 RVA: 0x00288BF4 File Offset: 0x00286DF4
|
||||
[Token(Token = "0x600AD4A")]
|
||||
[Address(RVA = "0x28E95B0", Offset = "0x28E7FB0", VA = "0x1828E95B0", 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: 0x0400720B RID: 29195
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400720B")]
|
||||
private DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x0400720C RID: 29196
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400720C")]
|
||||
private Asn1Set attrValues;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,386 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193C RID: 6460
|
||||
[Token(Token = "0x200193C")]
|
||||
[StructLayout(3)]
|
||||
public class AttributeTable
|
||||
{
|
||||
// Token: 0x0600AD4B RID: 44363 RVA: 0x00288C3C File Offset: 0x00286E3C
|
||||
[Token(Token = "0x600AD4B")]
|
||||
[Address(RVA = "0x28E8D10", Offset = "0x28E7710", VA = "0x1828E8D10")]
|
||||
[Obsolete]
|
||||
public AttributeTable(Hashtable attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD4C RID: 44364 RVA: 0x00288C60 File Offset: 0x00286E60
|
||||
[Token(Token = "0x600AD4C")]
|
||||
[Address(RVA = "0x28E8CA0", Offset = "0x28E76A0", VA = "0x1828E8CA0")]
|
||||
public AttributeTable(IDictionary attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD4D RID: 44365 RVA: 0x00288C84 File Offset: 0x00286E84
|
||||
[Token(Token = "0x600AD4D")]
|
||||
[Address(RVA = "0x28E8A60", Offset = "0x28E7460", VA = "0x1828E8A60")]
|
||||
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_63;
|
||||
}
|
||||
instance = Attribute.GetInstance(num);
|
||||
this.AddAttribute(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_63:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AD4E RID: 44366 RVA: 0x00288CFC File Offset: 0x00286EFC
|
||||
[Token(Token = "0x600AD4E")]
|
||||
[Address(RVA = "0x28E8D80", Offset = "0x28E7780", VA = "0x1828E8D80")]
|
||||
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: 0x0600AD4F RID: 44367 RVA: 0x00288D38 File Offset: 0x00286F38
|
||||
[Token(Token = "0x600AD4F")]
|
||||
[Address(RVA = "0x28E8930", Offset = "0x28E7330", VA = "0x1828E8930")]
|
||||
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: 0x0600AD50 RID: 44368 RVA: 0x00288D80 File Offset: 0x00286F80
|
||||
[Token(Token = "0x600AD50")]
|
||||
[Address(RVA = "0x28E7B40", Offset = "0x28E6540", VA = "0x1828E7B40")]
|
||||
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: 0x17001B98 RID: 7064
|
||||
[Token(Token = "0x17001B98")]
|
||||
public Attribute this[DerObjectIdentifier oid]
|
||||
{
|
||||
[Token(Token = "0x600AD51")]
|
||||
[Address(RVA = "0x28E90B0", Offset = "0x28E7AB0", VA = "0x1828E90B0")]
|
||||
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: 0x0600AD52 RID: 44370 RVA: 0x00288E10 File Offset: 0x00287010
|
||||
[Token(Token = "0x600AD52")]
|
||||
[Address(RVA = "0x28E8270", Offset = "0x28E6C70", VA = "0x1828E8270")]
|
||||
[Obsolete]
|
||||
public Attribute Get(DerObjectIdentifier oid)
|
||||
{
|
||||
return this[oid];
|
||||
}
|
||||
|
||||
// Token: 0x0600AD53 RID: 44371 RVA: 0x00288E24 File Offset: 0x00287024
|
||||
[Token(Token = "0x600AD53")]
|
||||
[Address(RVA = "0x28E7DE0", Offset = "0x28E67E0", VA = "0x1828E7DE0")]
|
||||
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 != -1)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
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: 0x17001B99 RID: 7065
|
||||
// (get) Token: 0x0600AD54 RID: 44372 RVA: 0x00288EE0 File Offset: 0x002870E0
|
||||
[Token(Token = "0x17001B99")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600AD54")]
|
||||
[Address(RVA = "0x28E8E80", Offset = "0x28E7880", VA = "0x1828E8E80")]
|
||||
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)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return num;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD55 RID: 44373 RVA: 0x00288F34 File Offset: 0x00287134
|
||||
[Token(Token = "0x600AD55")]
|
||||
[Address(RVA = "0x28E8870", Offset = "0x28E7270", VA = "0x1828E8870")]
|
||||
public IDictionary ToDictionary()
|
||||
{
|
||||
return Platform.CreateHashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600AD56 RID: 44374 RVA: 0x00288F4C File Offset: 0x0028714C
|
||||
[Token(Token = "0x600AD56")]
|
||||
[Address(RVA = "0x28E88D0", Offset = "0x28E72D0", VA = "0x1828E88D0")]
|
||||
[Obsolete]
|
||||
public Hashtable ToHashtable()
|
||||
{
|
||||
return new Hashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600AD57 RID: 44375 RVA: 0x00288F64 File Offset: 0x00287164
|
||||
[Token(Token = "0x600AD57")]
|
||||
[Address(RVA = "0x28E83B0", Offset = "0x28E6DB0", VA = "0x1828E83B0")]
|
||||
public Asn1EncodableVector ToAsn1EncodableVector()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
Asn1Encodable[] array;
|
||||
for (;;)
|
||||
{
|
||||
IDictionary dictionary = this.attributes;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
if (array == 0)
|
||||
{
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
Attribute instance;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
instance = Attribute.GetInstance(asn1EncodableVector);
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
array = new Asn1Encodable[1];
|
||||
Attribute instance2 = Attribute.GetInstance(asn1EncodableVector);
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AD58 RID: 44376 RVA: 0x00289030 File Offset: 0x00287230
|
||||
[Token(Token = "0x600AD58")]
|
||||
[Address(RVA = "0x28E87C0", Offset = "0x28E71C0", VA = "0x1828E87C0")]
|
||||
public Attributes ToAttributes()
|
||||
{
|
||||
BerSet berSet = new BerSet(this.ToAsn1EncodableVector());
|
||||
Attributes attributes;
|
||||
attributes.attributes = berSet;
|
||||
return attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD59 RID: 44377 RVA: 0x00289054 File Offset: 0x00287254
|
||||
[Token(Token = "0x600AD59")]
|
||||
[Address(RVA = "0x28E7CD0", Offset = "0x28E66D0", VA = "0x1828E7CD0")]
|
||||
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: 0x0600AD5A RID: 44378 RVA: 0x00289094 File Offset: 0x00287294
|
||||
[Token(Token = "0x600AD5A")]
|
||||
[Address(RVA = "0x28E8280", Offset = "0x28E6C80", VA = "0x1828E8280")]
|
||||
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: 0x0400720D RID: 29197
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400720D")]
|
||||
private readonly IDictionary attributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193D RID: 6461
|
||||
[Token(Token = "0x200193D")]
|
||||
[StructLayout(3)]
|
||||
public class Attributes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD5B RID: 44379 RVA: 0x002890C8 File Offset: 0x002872C8
|
||||
[Token(Token = "0x600AD5B")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private Attributes(Asn1Set attributes)
|
||||
{
|
||||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD5C RID: 44380 RVA: 0x002890E4 File Offset: 0x002872E4
|
||||
[Token(Token = "0x600AD5C")]
|
||||
[Address(RVA = "0x28E9A10", Offset = "0x28E8410", VA = "0x1828E9A10")]
|
||||
public Attributes(Asn1EncodableVector v)
|
||||
{
|
||||
BerSet berSet = new BerSet(v);
|
||||
this.attributes = berSet;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD5D RID: 44381 RVA: 0x00289108 File Offset: 0x00287308
|
||||
[Token(Token = "0x600AD5D")]
|
||||
[Address(RVA = "0x28E9910", Offset = "0x28E8310", VA = "0x1828E9910")]
|
||||
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: 0x0600AD5E RID: 44382 RVA: 0x0028913C File Offset: 0x0028733C
|
||||
[Token(Token = "0x600AD5E")]
|
||||
[Address(RVA = "0x28E9800", Offset = "0x28E8200", VA = "0x1828E9800", 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: 0x0600AD5F RID: 44383 RVA: 0x00289188 File Offset: 0x00287388
|
||||
[Token(Token = "0x600AD5F")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD5F)
|
||||
|
||||
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: 0x0400720E RID: 29198
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400720E")]
|
||||
private readonly Asn1Set attributes;
|
||||
}
|
||||
}
|
||||
+327
@@ -0,0 +1,327 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193E RID: 6462
|
||||
[Token(Token = "0x200193E")]
|
||||
[StructLayout(3)]
|
||||
public class AuthEnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD60 RID: 44384 RVA: 0x0028919C File Offset: 0x0028739C
|
||||
[Token(Token = "0x600AD60")]
|
||||
[Address(RVA = "0x28EA810", Offset = "0x28E9210", VA = "0x1828EA810")]
|
||||
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: 0x0600AD61 RID: 44385 RVA: 0x002891EC File Offset: 0x002873EC
|
||||
[Token(Token = "0x600AD61")]
|
||||
[Address(RVA = "0x28EA8C0", Offset = "0x28E92C0", VA = "0x1828EA8C0")]
|
||||
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: 0x0600AD62 RID: 44386 RVA: 0x002892C4 File Offset: 0x002874C4
|
||||
[Token(Token = "0x600AD62")]
|
||||
[Address(RVA = "0x28EA1A0", Offset = "0x28E8BA0", VA = "0x1828EA1A0")]
|
||||
public static AuthEnvelopedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthEnvelopedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD63 RID: 44387 RVA: 0x002892E0 File Offset: 0x002874E0
|
||||
[Token(Token = "0x600AD63")]
|
||||
[Address(RVA = "0x28EA1C0", Offset = "0x28E8BC0", VA = "0x1828EA1C0")]
|
||||
public static AuthEnvelopedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD63)
|
||||
|
||||
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: 0x17001B9A RID: 7066
|
||||
// (get) Token: 0x0600AD64 RID: 44388 RVA: 0x00289330 File Offset: 0x00287530
|
||||
[Token(Token = "0x17001B9A")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD64")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9B RID: 7067
|
||||
// (get) Token: 0x0600AD65 RID: 44389 RVA: 0x00289344 File Offset: 0x00287544
|
||||
[Token(Token = "0x17001B9B")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600AD65")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9C RID: 7068
|
||||
// (get) Token: 0x0600AD66 RID: 44390 RVA: 0x00289358 File Offset: 0x00287558
|
||||
[Token(Token = "0x17001B9C")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600AD66")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9D RID: 7069
|
||||
// (get) Token: 0x0600AD67 RID: 44391 RVA: 0x0028936C File Offset: 0x0028756C
|
||||
[Token(Token = "0x17001B9D")]
|
||||
public EncryptedContentInfo AuthEncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600AD67")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.authEncryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9E RID: 7070
|
||||
// (get) Token: 0x0600AD68 RID: 44392 RVA: 0x00289380 File Offset: 0x00287580
|
||||
[Token(Token = "0x17001B9E")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600AD68")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B9F RID: 7071
|
||||
// (get) Token: 0x0600AD69 RID: 44393 RVA: 0x00289394 File Offset: 0x00287594
|
||||
[Token(Token = "0x17001B9F")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600AD69")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA0 RID: 7072
|
||||
// (get) Token: 0x0600AD6A RID: 44394 RVA: 0x002893A8 File Offset: 0x002875A8
|
||||
[Token(Token = "0x17001BA0")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600AD6A")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD6B RID: 44395 RVA: 0x002893BC File Offset: 0x002875BC
|
||||
[Token(Token = "0x600AD6B")]
|
||||
[Address(RVA = "0x28EA3B0", Offset = "0x28E8DB0", VA = "0x1828EA3B0", 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: 0x0400720F RID: 29199
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400720F")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007210 RID: 29200
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007210")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x04007211 RID: 29201
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007211")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x04007212 RID: 29202
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007212")]
|
||||
private EncryptedContentInfo authEncryptedContentInfo;
|
||||
|
||||
// Token: 0x04007213 RID: 29203
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007213")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04007214 RID: 29204
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007214")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04007215 RID: 29205
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007215")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+209
@@ -0,0 +1,209 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200193F RID: 6463
|
||||
[Token(Token = "0x200193F")]
|
||||
[StructLayout(3)]
|
||||
public class AuthEnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600AD6C RID: 44396 RVA: 0x00289520 File Offset: 0x00287720
|
||||
[Token(Token = "0x600AD6C")]
|
||||
[Address(RVA = "0x28EA0D0", Offset = "0x28E8AD0", VA = "0x1828EA0D0")]
|
||||
public AuthEnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001BA1 RID: 7073
|
||||
// (get) Token: 0x0600AD6D RID: 44397 RVA: 0x00289550 File Offset: 0x00287750
|
||||
[Token(Token = "0x17001BA1")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD6D")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD6E RID: 44398 RVA: 0x00289564 File Offset: 0x00287764
|
||||
[Token(Token = "0x600AD6E")]
|
||||
[Address(RVA = "0x28E9D10", Offset = "0x28E8710", VA = "0x1828E9D10")]
|
||||
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: 0x0600AD6F RID: 44399 RVA: 0x002895D0 File Offset: 0x002877D0
|
||||
[Token(Token = "0x600AD6F")]
|
||||
[Address(RVA = "0x28E9F10", Offset = "0x28E8910", VA = "0x1828E9F10")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD6F)
|
||||
|
||||
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: 0x0600AD70 RID: 44400 RVA: 0x00289610 File Offset: 0x00287810
|
||||
[Token(Token = "0x600AD70")]
|
||||
[Address(RVA = "0x28E9BC0", Offset = "0x28E85C0", VA = "0x1828E9BC0")]
|
||||
public EncryptedContentInfoParser GetAuthEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD71 RID: 44401 RVA: 0x0028963C File Offset: 0x0028783C
|
||||
[Token(Token = "0x600AD71")]
|
||||
[Address(RVA = "0x28E9A80", Offset = "0x28E8480", VA = "0x1828E9A80")]
|
||||
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: 0x0600AD72 RID: 44402 RVA: 0x0028968C File Offset: 0x0028788C
|
||||
[Token(Token = "0x600AD72")]
|
||||
[Address(RVA = "0x28E9C90", Offset = "0x28E8690", VA = "0x1828E9C90")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD73 RID: 44403 RVA: 0x002896BC File Offset: 0x002878BC
|
||||
[Token(Token = "0x600AD73")]
|
||||
[Address(RVA = "0x28E9FB0", Offset = "0x28E89B0", VA = "0x1828E9FB0")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD73)
|
||||
|
||||
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: 0x04007216 RID: 29206
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007216")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04007217 RID: 29207
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007217")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007218 RID: 29208
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007218")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04007219 RID: 29209
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007219")]
|
||||
private bool originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
+476
@@ -0,0 +1,476 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001940 RID: 6464
|
||||
[Token(Token = "0x2001940")]
|
||||
[StructLayout(3)]
|
||||
public class AuthenticatedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD74 RID: 44404 RVA: 0x002896E4 File Offset: 0x002878E4
|
||||
[Token(Token = "0x600AD74")]
|
||||
[Address(RVA = "0x28EC530", Offset = "0x28EAF30", VA = "0x1828EC530")]
|
||||
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: 0x0600AD75 RID: 44405 RVA: 0x00289750 File Offset: 0x00287950
|
||||
[Token(Token = "0x600AD75")]
|
||||
[Address(RVA = "0x28EC0F0", Offset = "0x28EAAF0", VA = "0x1828EC0F0")]
|
||||
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: 0x0600AD76 RID: 44406 RVA: 0x00289860 File Offset: 0x00287A60
|
||||
[Token(Token = "0x600AD76")]
|
||||
[Address(RVA = "0x28EBB70", Offset = "0x28EA570", VA = "0x1828EBB70")]
|
||||
public static AuthenticatedData GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AuthenticatedData.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD77 RID: 44407 RVA: 0x0028987C File Offset: 0x00287A7C
|
||||
[Token(Token = "0x600AD77")]
|
||||
[Address(RVA = "0x28EB980", Offset = "0x28EA380", VA = "0x1828EB980")]
|
||||
public static AuthenticatedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD77)
|
||||
|
||||
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: 0x17001BA2 RID: 7074
|
||||
// (get) Token: 0x0600AD78 RID: 44408 RVA: 0x002898CC File Offset: 0x00287ACC
|
||||
[Token(Token = "0x17001BA2")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD78")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA3 RID: 7075
|
||||
// (get) Token: 0x0600AD79 RID: 44409 RVA: 0x002898E0 File Offset: 0x00287AE0
|
||||
[Token(Token = "0x17001BA3")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600AD79")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA4 RID: 7076
|
||||
// (get) Token: 0x0600AD7A RID: 44410 RVA: 0x002898F4 File Offset: 0x00287AF4
|
||||
[Token(Token = "0x17001BA4")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600AD7A")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA5 RID: 7077
|
||||
// (get) Token: 0x0600AD7B RID: 44411 RVA: 0x00289908 File Offset: 0x00287B08
|
||||
[Token(Token = "0x17001BA5")]
|
||||
public AlgorithmIdentifier MacAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600AD7B")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.macAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA6 RID: 7078
|
||||
// (get) Token: 0x0600AD7C RID: 44412 RVA: 0x0028991C File Offset: 0x00287B1C
|
||||
[Token(Token = "0x17001BA6")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600AD7C")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA7 RID: 7079
|
||||
// (get) Token: 0x0600AD7D RID: 44413 RVA: 0x00289930 File Offset: 0x00287B30
|
||||
[Token(Token = "0x17001BA7")]
|
||||
public ContentInfo EncapsulatedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600AD7D")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.encapsulatedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA8 RID: 7080
|
||||
// (get) Token: 0x0600AD7E RID: 44414 RVA: 0x00289944 File Offset: 0x00287B44
|
||||
[Token(Token = "0x17001BA8")]
|
||||
public Asn1Set AuthAttrs
|
||||
{
|
||||
[Token(Token = "0x600AD7E")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get
|
||||
{
|
||||
return this.authAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BA9 RID: 7081
|
||||
// (get) Token: 0x0600AD7F RID: 44415 RVA: 0x00289958 File Offset: 0x00287B58
|
||||
[Token(Token = "0x17001BA9")]
|
||||
public Asn1OctetString Mac
|
||||
{
|
||||
[Token(Token = "0x600AD7F")]
|
||||
[Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BAA RID: 7082
|
||||
// (get) Token: 0x0600AD80 RID: 44416 RVA: 0x0028996C File Offset: 0x00287B6C
|
||||
[Token(Token = "0x17001BAA")]
|
||||
public Asn1Set UnauthAttrs
|
||||
{
|
||||
[Token(Token = "0x600AD80")]
|
||||
[Address(RVA = "0x462740", Offset = "0x461140", VA = "0x180462740")]
|
||||
get
|
||||
{
|
||||
return this.unauthAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD81 RID: 44417 RVA: 0x00289980 File Offset: 0x00287B80
|
||||
[Token(Token = "0x600AD81")]
|
||||
[Address(RVA = "0x28EBB90", Offset = "0x28EA590", VA = "0x1828EBB90", 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: 0x0600AD82 RID: 44418 RVA: 0x00289B4C File Offset: 0x00287D4C
|
||||
[Token(Token = "0x600AD82")]
|
||||
[Address(RVA = "0x28EB5E0", Offset = "0x28E9FE0", VA = "0x1828EB5E0")]
|
||||
public static int CalculateVersion(OriginatorInfo origInfo)
|
||||
{
|
||||
int num;
|
||||
for (;;)
|
||||
{
|
||||
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_6C;
|
||||
}
|
||||
if (num2 != 2)
|
||||
{
|
||||
while (num2 != 3)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num == -1)
|
||||
{
|
||||
goto IL_54;
|
||||
}
|
||||
IEnumerator enumerator2 = origInfo.crls.GetEnumerator();
|
||||
if (enumerator2 != 0)
|
||||
{
|
||||
while (enumerator2 == 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
goto IL_54;
|
||||
}
|
||||
IL_58:
|
||||
num++;
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
IL_54:
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_58;
|
||||
}
|
||||
goto IL_78;
|
||||
}
|
||||
return num;
|
||||
IL_6C:
|
||||
throw new NullReferenceException();
|
||||
IL_78:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400721A RID: 29210
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400721A")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400721B RID: 29211
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400721B")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400721C RID: 29212
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400721C")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x0400721D RID: 29213
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400721D")]
|
||||
private AlgorithmIdentifier macAlgorithm;
|
||||
|
||||
// Token: 0x0400721E RID: 29214
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400721E")]
|
||||
private AlgorithmIdentifier digestAlgorithm;
|
||||
|
||||
// Token: 0x0400721F RID: 29215
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400721F")]
|
||||
private ContentInfo encapsulatedContentInfo;
|
||||
|
||||
// Token: 0x04007220 RID: 29216
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007220")]
|
||||
private Asn1Set authAttrs;
|
||||
|
||||
// Token: 0x04007221 RID: 29217
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007221")]
|
||||
private Asn1OctetString mac;
|
||||
|
||||
// Token: 0x04007222 RID: 29218
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007222")]
|
||||
private Asn1Set unauthAttrs;
|
||||
}
|
||||
}
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001941 RID: 6465
|
||||
[Token(Token = "0x2001941")]
|
||||
[StructLayout(3)]
|
||||
public class AuthenticatedDataParser
|
||||
{
|
||||
// Token: 0x0600AD83 RID: 44419 RVA: 0x00289BD8 File Offset: 0x00287DD8
|
||||
[Token(Token = "0x600AD83")]
|
||||
[Address(RVA = "0x28EB510", Offset = "0x28E9F10", VA = "0x1828EB510")]
|
||||
public AuthenticatedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001BAB RID: 7083
|
||||
// (get) Token: 0x0600AD84 RID: 44420 RVA: 0x00289C08 File Offset: 0x00287E08
|
||||
[Token(Token = "0x17001BAB")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD84")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD85 RID: 44421 RVA: 0x00289C1C File Offset: 0x00287E1C
|
||||
[Token(Token = "0x600AD85")]
|
||||
[Address(RVA = "0x28EB150", Offset = "0x28E9B50", VA = "0x1828EB150")]
|
||||
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: 0x0600AD86 RID: 44422 RVA: 0x00289C88 File Offset: 0x00287E88
|
||||
[Token(Token = "0x600AD86")]
|
||||
[Address(RVA = "0x28EB350", Offset = "0x28E9D50", VA = "0x1828EB350")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD86)
|
||||
|
||||
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: 0x0600AD87 RID: 44423 RVA: 0x00289CC8 File Offset: 0x00287EC8
|
||||
[Token(Token = "0x600AD87")]
|
||||
[Address(RVA = "0x28EAFF0", Offset = "0x28E99F0", VA = "0x1828EAFF0")]
|
||||
public AlgorithmIdentifier GetMacAlgorithm()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
return AlgorithmIdentifier.GetInstance(0);
|
||||
}
|
||||
|
||||
// Token: 0x0600AD88 RID: 44424 RVA: 0x00289CF4 File Offset: 0x00287EF4
|
||||
[Token(Token = "0x600AD88")]
|
||||
[Address(RVA = "0x28EAE30", Offset = "0x28E9830", VA = "0x1828EAE30")]
|
||||
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: 0x0600AD89 RID: 44425 RVA: 0x00289D44 File Offset: 0x00287F44
|
||||
[Token(Token = "0x600AD89")]
|
||||
[Address(RVA = "0x28EAF20", Offset = "0x28E9920", VA = "0x1828EAF20")]
|
||||
public ContentInfoParser GetEnapsulatedContentInfo()
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
}
|
||||
while (contentInfoParser == 0);
|
||||
return contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD8A RID: 44426 RVA: 0x00289D70 File Offset: 0x00287F70
|
||||
[Token(Token = "0x600AD8A")]
|
||||
[Address(RVA = "0x28EACF0", Offset = "0x28E96F0", VA = "0x1828EACF0")]
|
||||
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: 0x0600AD8B RID: 44427 RVA: 0x00289DC0 File Offset: 0x00287FC0
|
||||
[Token(Token = "0x600AD8B")]
|
||||
[Address(RVA = "0x28EB0D0", Offset = "0x28E9AD0", VA = "0x1828EB0D0")]
|
||||
public Asn1OctetString GetMac()
|
||||
{
|
||||
if (this.nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser asn1SequenceParser = this.seq;
|
||||
}
|
||||
this.nextObject = (ulong)0L;
|
||||
Asn1OctetString asn1OctetString;
|
||||
return asn1OctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AD8C RID: 44428 RVA: 0x00289DF0 File Offset: 0x00287FF0
|
||||
[Token(Token = "0x600AD8C")]
|
||||
[Address(RVA = "0x28EB3F0", Offset = "0x28E9DF0", VA = "0x1828EB3F0")]
|
||||
public Asn1SetParser GetUnauthAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD8C)
|
||||
|
||||
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: 0x04007223 RID: 29219
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007223")]
|
||||
private Asn1SequenceParser seq;
|
||||
|
||||
// Token: 0x04007224 RID: 29220
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007224")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007225 RID: 29221
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007225")]
|
||||
private IAsn1Convertible nextObject;
|
||||
|
||||
// Token: 0x04007226 RID: 29222
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007226")]
|
||||
private bool originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001942 RID: 6466
|
||||
[Token(Token = "0x2001942")]
|
||||
[StructLayout(3)]
|
||||
public abstract class CmsAttributes
|
||||
{
|
||||
// Token: 0x0600AD8D RID: 44429 RVA: 0x00289E18 File Offset: 0x00288018
|
||||
[Token(Token = "0x600AD8D")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected CmsAttributes()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007227 RID: 29223
|
||||
[Token(Token = "0x4007227")]
|
||||
public static readonly DerObjectIdentifier ContentType = PkcsObjectIdentifiers.Pkcs9AtContentType;
|
||||
|
||||
// Token: 0x04007228 RID: 29224
|
||||
[Token(Token = "0x4007228")]
|
||||
public static readonly DerObjectIdentifier MessageDigest = PkcsObjectIdentifiers.Pkcs9AtMessageDigest;
|
||||
|
||||
// Token: 0x04007229 RID: 29225
|
||||
[Token(Token = "0x4007229")]
|
||||
public static readonly DerObjectIdentifier SigningTime = PkcsObjectIdentifiers.Pkcs9AtSigningTime;
|
||||
|
||||
// Token: 0x0400722A RID: 29226
|
||||
[Token(Token = "0x400722A")]
|
||||
public static readonly DerObjectIdentifier CounterSignature = PkcsObjectIdentifiers.Pkcs9AtCounterSignature;
|
||||
|
||||
// Token: 0x0400722B RID: 29227
|
||||
[Token(Token = "0x400722B")]
|
||||
public static readonly DerObjectIdentifier ContentHint = PkcsObjectIdentifiers.IdAAContentHint;
|
||||
}
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001943 RID: 6467
|
||||
[Token(Token = "0x2001943")]
|
||||
[StructLayout(3)]
|
||||
public abstract class CmsObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600AD8F RID: 44431 RVA: 0x00289E6C File Offset: 0x0028806C
|
||||
[Token(Token = "0x600AD8F")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected CmsObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400722C RID: 29228
|
||||
[Token(Token = "0x400722C")]
|
||||
public static readonly DerObjectIdentifier Data = PkcsObjectIdentifiers.Data;
|
||||
|
||||
// Token: 0x0400722D RID: 29229
|
||||
[Token(Token = "0x400722D")]
|
||||
public static readonly DerObjectIdentifier SignedData = PkcsObjectIdentifiers.SignedData;
|
||||
|
||||
// Token: 0x0400722E RID: 29230
|
||||
[Token(Token = "0x400722E")]
|
||||
public static readonly DerObjectIdentifier EnvelopedData = PkcsObjectIdentifiers.EnvelopedData;
|
||||
|
||||
// Token: 0x0400722F RID: 29231
|
||||
[Token(Token = "0x400722F")]
|
||||
public static readonly DerObjectIdentifier SignedAndEnvelopedData = PkcsObjectIdentifiers.SignedAndEnvelopedData;
|
||||
|
||||
// Token: 0x04007230 RID: 29232
|
||||
[Token(Token = "0x4007230")]
|
||||
public static readonly DerObjectIdentifier DigestedData = PkcsObjectIdentifiers.DigestedData;
|
||||
|
||||
// Token: 0x04007231 RID: 29233
|
||||
[Token(Token = "0x4007231")]
|
||||
public static readonly DerObjectIdentifier EncryptedData = PkcsObjectIdentifiers.EncryptedData;
|
||||
|
||||
// Token: 0x04007232 RID: 29234
|
||||
[Token(Token = "0x4007232")]
|
||||
public static readonly DerObjectIdentifier AuthenticatedData = PkcsObjectIdentifiers.IdCTAuthData;
|
||||
|
||||
// Token: 0x04007233 RID: 29235
|
||||
[Token(Token = "0x4007233")]
|
||||
public static readonly DerObjectIdentifier CompressedData = PkcsObjectIdentifiers.IdCTCompressedData;
|
||||
|
||||
// Token: 0x04007234 RID: 29236
|
||||
[Token(Token = "0x4007234")]
|
||||
public static readonly DerObjectIdentifier AuthEnvelopedData = PkcsObjectIdentifiers.IdCTAuthEnvelopedData;
|
||||
|
||||
// Token: 0x04007235 RID: 29237
|
||||
[Token(Token = "0x4007235")]
|
||||
public static readonly DerObjectIdentifier timestampedData = PkcsObjectIdentifiers.IdCTTimestampedData;
|
||||
|
||||
// Token: 0x04007236 RID: 29238
|
||||
[Token(Token = "0x4007236")]
|
||||
public static readonly DerObjectIdentifier id_ri = new DerObjectIdentifier("1.3.6.1.5.5.7.16");
|
||||
|
||||
// Token: 0x04007237 RID: 29239
|
||||
[Token(Token = "0x4007237")]
|
||||
public static readonly DerObjectIdentifier id_ri_ocsp_response = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
|
||||
// Token: 0x04007238 RID: 29240
|
||||
[Token(Token = "0x4007238")]
|
||||
public static readonly DerObjectIdentifier id_ri_scvp = CmsObjectIdentifiers.id_ri.Asn1GetHashCode();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001944 RID: 6468
|
||||
[Token(Token = "0x2001944")]
|
||||
[StructLayout(3)]
|
||||
public class CompressedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD91 RID: 44433 RVA: 0x00289F24 File Offset: 0x00288124
|
||||
[Token(Token = "0x600AD91")]
|
||||
[Address(RVA = "0x28ECFE0", Offset = "0x28EB9E0", VA = "0x1828ECFE0")]
|
||||
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: 0x0600AD92 RID: 44434 RVA: 0x00289F58 File Offset: 0x00288158
|
||||
[Token(Token = "0x600AD92")]
|
||||
[Address(RVA = "0x28ED060", Offset = "0x28EBA60", VA = "0x1828ED060")]
|
||||
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: 0x0600AD93 RID: 44435 RVA: 0x00289FA8 File Offset: 0x002881A8
|
||||
[Token(Token = "0x600AD93")]
|
||||
[Address(RVA = "0x28ECB80", Offset = "0x28EB580", VA = "0x1828ECB80")]
|
||||
public static CompressedData GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return CompressedData.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD94 RID: 44436 RVA: 0x00289FC4 File Offset: 0x002881C4
|
||||
[Token(Token = "0x600AD94")]
|
||||
[Address(RVA = "0x28ECBA0", Offset = "0x28EB5A0", VA = "0x1828ECBA0")]
|
||||
public static CompressedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD94)
|
||||
|
||||
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: 0x17001BAC RID: 7084
|
||||
// (get) Token: 0x0600AD95 RID: 44437 RVA: 0x0028A028 File Offset: 0x00288228
|
||||
[Token(Token = "0x17001BAC")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD95")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BAD RID: 7085
|
||||
// (get) Token: 0x0600AD96 RID: 44438 RVA: 0x0028A03C File Offset: 0x0028823C
|
||||
[Token(Token = "0x17001BAD")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600AD96")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BAE RID: 7086
|
||||
// (get) Token: 0x0600AD97 RID: 44439 RVA: 0x0028A050 File Offset: 0x00288250
|
||||
[Token(Token = "0x17001BAE")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600AD97")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.encapContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD98 RID: 44440 RVA: 0x0028A064 File Offset: 0x00288264
|
||||
[Token(Token = "0x600AD98")]
|
||||
[Address(RVA = "0x28ECE70", Offset = "0x28EB870", VA = "0x1828ECE70", 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: 0x04007239 RID: 29241
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007239")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400723A RID: 29242
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400723A")]
|
||||
private AlgorithmIdentifier compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400723B RID: 29243
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400723B")]
|
||||
private ContentInfo encapContentInfo;
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001945 RID: 6469
|
||||
[Token(Token = "0x2001945")]
|
||||
[StructLayout(3)]
|
||||
public class CompressedDataParser
|
||||
{
|
||||
// Token: 0x0600AD99 RID: 44441 RVA: 0x0028A0C0 File Offset: 0x002882C0
|
||||
[Token(Token = "0x600AD99")]
|
||||
[Address(RVA = "0x28ECA00", Offset = "0x28EB400", VA = "0x1828ECA00")]
|
||||
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: 0x17001BAF RID: 7087
|
||||
// (get) Token: 0x0600AD9A RID: 44442 RVA: 0x0028A100 File Offset: 0x00288300
|
||||
[Token(Token = "0x17001BAF")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD9A")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB0 RID: 7088
|
||||
// (get) Token: 0x0600AD9B RID: 44443 RVA: 0x0028A114 File Offset: 0x00288314
|
||||
[Token(Token = "0x17001BB0")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600AD9B")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this._compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD9C RID: 44444 RVA: 0x0028A128 File Offset: 0x00288328
|
||||
[Token(Token = "0x600AD9C")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
public ContentInfoParser GetEncapContentInfo()
|
||||
{
|
||||
return this._encapContentInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0400723C RID: 29244
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400723C")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x0400723D RID: 29245
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400723D")]
|
||||
private AlgorithmIdentifier _compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400723E RID: 29246
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400723E")]
|
||||
private ContentInfoParser _encapContentInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001946 RID: 6470
|
||||
[Token(Token = "0x2001946")]
|
||||
[StructLayout(3)]
|
||||
public class ContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD9D RID: 44445 RVA: 0x0028A13C File Offset: 0x0028833C
|
||||
[Token(Token = "0x600AD9D")]
|
||||
[Address(RVA = "0x28ED320", Offset = "0x28EBD20", VA = "0x1828ED320")]
|
||||
public static ContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD9D)
|
||||
|
||||
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: 0x0600AD9E RID: 44446 RVA: 0x0028A18C File Offset: 0x0028838C
|
||||
[Token(Token = "0x600AD9E")]
|
||||
[Address(RVA = "0x28ED300", Offset = "0x28EBD00", VA = "0x1828ED300")]
|
||||
public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return ContentInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD9F RID: 44447 RVA: 0x0028A1A8 File Offset: 0x002883A8
|
||||
[Token(Token = "0x600AD9F")]
|
||||
[Address(RVA = "0x28ED6B0", Offset = "0x28EC0B0", VA = "0x1828ED6B0")]
|
||||
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: 0x0600ADA0 RID: 44448 RVA: 0x0028A204 File Offset: 0x00288404
|
||||
[Token(Token = "0x600ADA0")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
// Token: 0x17001BB1 RID: 7089
|
||||
// (get) Token: 0x0600ADA1 RID: 44449 RVA: 0x0028A228 File Offset: 0x00288428
|
||||
[Token(Token = "0x17001BB1")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600ADA1")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB2 RID: 7090
|
||||
// (get) Token: 0x0600ADA2 RID: 44450 RVA: 0x0028A23C File Offset: 0x0028843C
|
||||
[Token(Token = "0x17001BB2")]
|
||||
public Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600ADA2")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADA3 RID: 44451 RVA: 0x0028A250 File Offset: 0x00288450
|
||||
[Token(Token = "0x600ADA3")]
|
||||
[Address(RVA = "0x28ED510", Offset = "0x28EBF10", VA = "0x1828ED510", 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: 0x0400723F RID: 29247
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400723F")]
|
||||
private readonly DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04007240 RID: 29248
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007240")]
|
||||
private readonly Asn1Encodable content;
|
||||
}
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001947 RID: 6471
|
||||
[Token(Token = "0x2001947")]
|
||||
[StructLayout(3)]
|
||||
public class ContentInfoParser
|
||||
{
|
||||
// Token: 0x0600ADA4 RID: 44452 RVA: 0x0028A2C8 File Offset: 0x002884C8
|
||||
[Token(Token = "0x600ADA4")]
|
||||
[Address(RVA = "0x28ED1E0", Offset = "0x28EBBE0", VA = "0x1828ED1E0")]
|
||||
public ContentInfoParser(Asn1SequenceParser seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
if (seq != 0)
|
||||
{
|
||||
this.contentType = seq;
|
||||
if (seq == 0 || seq != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001BB3 RID: 7091
|
||||
// (get) Token: 0x0600ADA5 RID: 44453 RVA: 0x0028A300 File Offset: 0x00288500
|
||||
[Token(Token = "0x17001BB3")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600ADA5")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADA6 RID: 44454 RVA: 0x0028A314 File Offset: 0x00288514
|
||||
[Token(Token = "0x600ADA6")]
|
||||
[Address(RVA = "0x28ED170", Offset = "0x28EBB70", VA = "0x1828ED170")]
|
||||
public IAsn1Convertible GetContent(int tag)
|
||||
{
|
||||
if (this.content != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007241 RID: 29249
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007241")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04007242 RID: 29250
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007242")]
|
||||
private Asn1TaggedObjectParser content;
|
||||
}
|
||||
}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Ecc
|
||||
{
|
||||
// Token: 0x0200196A RID: 6506
|
||||
[Token(Token = "0x200196A")]
|
||||
[StructLayout(3)]
|
||||
public class MQVuserKeyingMaterial : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEB9 RID: 44729 RVA: 0x0028E1CC File Offset: 0x0028C3CC
|
||||
[Token(Token = "0x600AEB9")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public MQVuserKeyingMaterial(OriginatorPublicKey ephemeralPublicKey, Asn1OctetString addedukm)
|
||||
{
|
||||
this.ephemeralPublicKey = ephemeralPublicKey;
|
||||
this.addedukm = addedukm;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEBA RID: 44730 RVA: 0x0028E1F0 File Offset: 0x0028C3F0
|
||||
[Token(Token = "0x600AEBA")]
|
||||
[Address(RVA = "0x28F29D0", Offset = "0x28F13D0", VA = "0x1828F29D0")]
|
||||
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: 0x0600AEBB RID: 44731 RVA: 0x0028E238 File Offset: 0x0028C438
|
||||
[Token(Token = "0x600AEBB")]
|
||||
[Address(RVA = "0x28F2810", Offset = "0x28F1210", VA = "0x1828F2810")]
|
||||
public static MQVuserKeyingMaterial GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return MQVuserKeyingMaterial.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AEBC RID: 44732 RVA: 0x0028E254 File Offset: 0x0028C454
|
||||
[Token(Token = "0x600AEBC")]
|
||||
[Address(RVA = "0x28F2540", Offset = "0x28F0F40", VA = "0x1828F2540")]
|
||||
public static MQVuserKeyingMaterial GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEBC)
|
||||
|
||||
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: 0x17001C15 RID: 7189
|
||||
// (get) Token: 0x0600AEBD RID: 44733 RVA: 0x0028E2B4 File Offset: 0x0028C4B4
|
||||
[Token(Token = "0x17001C15")]
|
||||
public OriginatorPublicKey EphemeralPublicKey
|
||||
{
|
||||
[Token(Token = "0x600AEBD")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.ephemeralPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C16 RID: 7190
|
||||
// (get) Token: 0x0600AEBE RID: 44734 RVA: 0x0028E2C8 File Offset: 0x0028C4C8
|
||||
[Token(Token = "0x17001C16")]
|
||||
public Asn1OctetString AddedUkm
|
||||
{
|
||||
[Token(Token = "0x600AEBE")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.addedukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEBF RID: 44735 RVA: 0x0028E2DC File Offset: 0x0028C4DC
|
||||
[Token(Token = "0x600AEBF")]
|
||||
[Address(RVA = "0x28F2830", Offset = "0x28F1230", VA = "0x1828F2830", 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: 0x040072AE RID: 29358
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072AE")]
|
||||
private OriginatorPublicKey ephemeralPublicKey;
|
||||
|
||||
// Token: 0x040072AF RID: 29359
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072AF")]
|
||||
private Asn1OctetString addedukm;
|
||||
}
|
||||
}
|
||||
+174
@@ -0,0 +1,174 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001948 RID: 6472
|
||||
[Token(Token = "0x2001948")]
|
||||
[StructLayout(3)]
|
||||
public class EncryptedContentInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADA7 RID: 44455 RVA: 0x0028A32C File Offset: 0x0028852C
|
||||
[Token(Token = "0x600ADA7")]
|
||||
[Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")]
|
||||
public EncryptedContentInfo(DerObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, Asn1OctetString encryptedContent)
|
||||
{
|
||||
this.contentType = contentType;
|
||||
this.contentEncryptionAlgorithm = contentEncryptionAlgorithm;
|
||||
this.encryptedContent = encryptedContent;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADA8 RID: 44456 RVA: 0x0028A354 File Offset: 0x00288554
|
||||
[Token(Token = "0x600ADA8")]
|
||||
[Address(RVA = "0x28EDE50", Offset = "0x28EC850", VA = "0x1828EDE50")]
|
||||
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: 0x0600ADA9 RID: 44457 RVA: 0x0028A3B8 File Offset: 0x002885B8
|
||||
[Token(Token = "0x600ADA9")]
|
||||
[Address(RVA = "0x28EDA60", Offset = "0x28EC460", VA = "0x1828EDA60")]
|
||||
public static EncryptedContentInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADA9)
|
||||
|
||||
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: 0x17001BB4 RID: 7092
|
||||
// (get) Token: 0x0600ADAA RID: 44458 RVA: 0x0028A408 File Offset: 0x00288608
|
||||
[Token(Token = "0x17001BB4")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600ADAA")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB5 RID: 7093
|
||||
// (get) Token: 0x0600ADAB RID: 44459 RVA: 0x0028A41C File Offset: 0x0028861C
|
||||
[Token(Token = "0x17001BB5")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600ADAB")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB6 RID: 7094
|
||||
// (get) Token: 0x0600ADAC RID: 44460 RVA: 0x0028A430 File Offset: 0x00288630
|
||||
[Token(Token = "0x17001BB6")]
|
||||
public Asn1OctetString EncryptedContent
|
||||
{
|
||||
[Token(Token = "0x600ADAC")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADAD RID: 44461 RVA: 0x0028A444 File Offset: 0x00288644
|
||||
[Token(Token = "0x600ADAD")]
|
||||
[Address(RVA = "0x28EDC50", Offset = "0x28EC650", VA = "0x1828EDC50", 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: 0x04007243 RID: 29251
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007243")]
|
||||
private DerObjectIdentifier contentType;
|
||||
|
||||
// Token: 0x04007244 RID: 29252
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007244")]
|
||||
private AlgorithmIdentifier contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04007245 RID: 29253
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007245")]
|
||||
private Asn1OctetString encryptedContent;
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001949 RID: 6473
|
||||
[Token(Token = "0x2001949")]
|
||||
[StructLayout(3)]
|
||||
public class EncryptedContentInfoParser
|
||||
{
|
||||
// Token: 0x0600ADAE RID: 44462 RVA: 0x0028A4D8 File Offset: 0x002886D8
|
||||
[Token(Token = "0x600ADAE")]
|
||||
[Address(RVA = "0x28ED910", Offset = "0x28EC310", VA = "0x1828ED910")]
|
||||
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: 0x17001BB7 RID: 7095
|
||||
// (get) Token: 0x0600ADAF RID: 44463 RVA: 0x0028A518 File Offset: 0x00288718
|
||||
[Token(Token = "0x17001BB7")]
|
||||
public DerObjectIdentifier ContentType
|
||||
{
|
||||
[Token(Token = "0x600ADAF")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this._contentType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BB8 RID: 7096
|
||||
// (get) Token: 0x0600ADB0 RID: 44464 RVA: 0x0028A52C File Offset: 0x0028872C
|
||||
[Token(Token = "0x17001BB8")]
|
||||
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600ADB0")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this._contentEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADB1 RID: 44465 RVA: 0x0028A540 File Offset: 0x00288740
|
||||
[Token(Token = "0x600ADB1")]
|
||||
[Address(RVA = "0x28ED8B0", Offset = "0x28EC2B0", VA = "0x1828ED8B0")]
|
||||
public IAsn1Convertible GetEncryptedContent(int tag)
|
||||
{
|
||||
Asn1TaggedObjectParser encryptedContent = this._encryptedContent;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007246 RID: 29254
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007246")]
|
||||
private DerObjectIdentifier _contentType;
|
||||
|
||||
// Token: 0x04007247 RID: 29255
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007247")]
|
||||
private AlgorithmIdentifier _contentEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04007248 RID: 29256
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007248")]
|
||||
private Asn1TaggedObjectParser _encryptedContent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194A RID: 6474
|
||||
[Token(Token = "0x200194A")]
|
||||
[StructLayout(3)]
|
||||
public class EncryptedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADB2 RID: 44466 RVA: 0x0028A55C File Offset: 0x0028875C
|
||||
[Token(Token = "0x600ADB2")]
|
||||
[Address(RVA = "0x28EDFD0", Offset = "0x28EC9D0", VA = "0x1828EDFD0")]
|
||||
public static EncryptedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADB2)
|
||||
|
||||
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: 0x0600ADB3 RID: 44467 RVA: 0x0028A5A8 File Offset: 0x002887A8
|
||||
[Token(Token = "0x600ADB3")]
|
||||
[Address(RVA = "0x28EE650", Offset = "0x28ED050", VA = "0x1828EE650")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADB3)
|
||||
|
||||
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: 0x0600ADB4 RID: 44468 RVA: 0x0028A5EC File Offset: 0x002887EC
|
||||
[Token(Token = "0x600ADB4")]
|
||||
[Address(RVA = "0x28EE3C0", Offset = "0x28ECDC0", VA = "0x1828EE3C0")]
|
||||
public EncryptedData(EncryptedContentInfo encInfo, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADB4)
|
||||
|
||||
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: 0x0600ADB5 RID: 44469 RVA: 0x0028A62C File Offset: 0x0028882C
|
||||
[Token(Token = "0x600ADB5")]
|
||||
[Address(RVA = "0x28EE490", Offset = "0x28ECE90", VA = "0x1828EE490")]
|
||||
private EncryptedData(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADB5)
|
||||
|
||||
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: 0x17001BB9 RID: 7097
|
||||
// (get) Token: 0x0600ADB6 RID: 44470 RVA: 0x0028A684 File Offset: 0x00288884
|
||||
[Token(Token = "0x17001BB9")]
|
||||
public virtual DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600ADB6")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBA RID: 7098
|
||||
// (get) Token: 0x0600ADB7 RID: 44471 RVA: 0x0028A698 File Offset: 0x00288898
|
||||
[Token(Token = "0x17001BBA")]
|
||||
public virtual EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600ADB7")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBB RID: 7099
|
||||
// (get) Token: 0x0600ADB8 RID: 44472 RVA: 0x0028A6AC File Offset: 0x002888AC
|
||||
[Token(Token = "0x17001BBB")]
|
||||
public virtual Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600ADB8")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADB9 RID: 44473 RVA: 0x0028A6C0 File Offset: 0x002888C0
|
||||
[Token(Token = "0x600ADB9")]
|
||||
[Address(RVA = "0x28EE1C0", Offset = "0x28ECBC0", VA = "0x1828EE1C0", 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: 0x04007249 RID: 29257
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007249")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x0400724A RID: 29258
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400724A")]
|
||||
private readonly EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x0400724B RID: 29259
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400724B")]
|
||||
private readonly Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,323 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194B RID: 6475
|
||||
[Token(Token = "0x200194B")]
|
||||
[StructLayout(3)]
|
||||
public class EnvelopedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADBA RID: 44474 RVA: 0x0028A750 File Offset: 0x00288950
|
||||
[Token(Token = "0x600ADBA")]
|
||||
[Address(RVA = "0x28EF390", Offset = "0x28EDD90", VA = "0x1828EF390")]
|
||||
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: 0x0600ADBB RID: 44475 RVA: 0x0028A790 File Offset: 0x00288990
|
||||
[Token(Token = "0x600ADBB")]
|
||||
[Address(RVA = "0x28EF6D0", Offset = "0x28EE0D0", VA = "0x1828EF6D0")]
|
||||
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: 0x0600ADBC RID: 44476 RVA: 0x0028A7D4 File Offset: 0x002889D4
|
||||
[Token(Token = "0x600ADBC")]
|
||||
[Address(RVA = "0x28EF450", Offset = "0x28EDE50", VA = "0x1828EF450")]
|
||||
[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: 0x0600ADBD RID: 44477 RVA: 0x0028A874 File Offset: 0x00288A74
|
||||
[Token(Token = "0x600ADBD")]
|
||||
[Address(RVA = "0x28EEE50", Offset = "0x28ED850", VA = "0x1828EEE50")]
|
||||
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: 0x0600ADBE RID: 44478 RVA: 0x0028A8B0 File Offset: 0x00288AB0
|
||||
[Token(Token = "0x600ADBE")]
|
||||
[Address(RVA = "0x28EEF50", Offset = "0x28ED950", VA = "0x1828EEF50")]
|
||||
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: 0x17001BBC RID: 7100
|
||||
// (get) Token: 0x0600ADBF RID: 44479 RVA: 0x0028A8E4 File Offset: 0x00288AE4
|
||||
[Token(Token = "0x17001BBC")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600ADBF")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBD RID: 7101
|
||||
// (get) Token: 0x0600ADC0 RID: 44480 RVA: 0x0028A8F8 File Offset: 0x00288AF8
|
||||
[Token(Token = "0x17001BBD")]
|
||||
public OriginatorInfo OriginatorInfo
|
||||
{
|
||||
[Token(Token = "0x600ADC0")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.originatorInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBE RID: 7102
|
||||
// (get) Token: 0x0600ADC1 RID: 44481 RVA: 0x0028A90C File Offset: 0x00288B0C
|
||||
[Token(Token = "0x17001BBE")]
|
||||
public Asn1Set RecipientInfos
|
||||
{
|
||||
[Token(Token = "0x600ADC1")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.recipientInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BBF RID: 7103
|
||||
// (get) Token: 0x0600ADC2 RID: 44482 RVA: 0x0028A920 File Offset: 0x00288B20
|
||||
[Token(Token = "0x17001BBF")]
|
||||
public EncryptedContentInfo EncryptedContentInfo
|
||||
{
|
||||
[Token(Token = "0x600ADC2")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.encryptedContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BC0 RID: 7104
|
||||
// (get) Token: 0x0600ADC3 RID: 44483 RVA: 0x0028A934 File Offset: 0x00288B34
|
||||
[Token(Token = "0x17001BC0")]
|
||||
public Asn1Set UnprotectedAttrs
|
||||
{
|
||||
[Token(Token = "0x600ADC3")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADC4 RID: 44484 RVA: 0x0028A948 File Offset: 0x00288B48
|
||||
[Token(Token = "0x600ADC4")]
|
||||
[Address(RVA = "0x28EF050", Offset = "0x28EDA50", VA = "0x1828EF050", 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: 0x0600ADC5 RID: 44485 RVA: 0x0028AA44 File Offset: 0x00288C44
|
||||
[Token(Token = "0x600ADC5")]
|
||||
[Address(RVA = "0x28EEC70", Offset = "0x28ED670", VA = "0x1828EEC70")]
|
||||
public static int CalculateVersion(OriginatorInfo originatorInfo, Asn1Set recipientInfos, Asn1Set unprotectedAttrs)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (originatorInfo != 0 || unprotectedAttrs != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
int intValue;
|
||||
if (recipientInfos.GetEnumerator() != 0)
|
||||
{
|
||||
RecipientInfo recipientInfo;
|
||||
intValue = recipientInfo.Version.Value.IntValue;
|
||||
while (intValue == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (intValue != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)78L)
|
||||
{
|
||||
}
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)76L)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return 2;
|
||||
}
|
||||
|
||||
// Token: 0x0400724C RID: 29260
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400724C")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400724D RID: 29261
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400724D")]
|
||||
private OriginatorInfo originatorInfo;
|
||||
|
||||
// Token: 0x0400724E RID: 29262
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400724E")]
|
||||
private Asn1Set recipientInfos;
|
||||
|
||||
// Token: 0x0400724F RID: 29263
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400724F")]
|
||||
private EncryptedContentInfo encryptedContentInfo;
|
||||
|
||||
// Token: 0x04007250 RID: 29264
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007250")]
|
||||
private Asn1Set unprotectedAttrs;
|
||||
}
|
||||
}
|
||||
+170
@@ -0,0 +1,170 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194C RID: 6476
|
||||
[Token(Token = "0x200194C")]
|
||||
[StructLayout(3)]
|
||||
public class EnvelopedDataParser
|
||||
{
|
||||
// Token: 0x0600ADC6 RID: 44486 RVA: 0x0028AAB4 File Offset: 0x00288CB4
|
||||
[Token(Token = "0x600ADC6")]
|
||||
[Address(RVA = "0x28EEBA0", Offset = "0x28ED5A0", VA = "0x1828EEBA0")]
|
||||
public EnvelopedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this._seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001BC1 RID: 7105
|
||||
// (get) Token: 0x0600ADC7 RID: 44487 RVA: 0x0028AAE4 File Offset: 0x00288CE4
|
||||
[Token(Token = "0x17001BC1")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600ADC7")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADC8 RID: 44488 RVA: 0x0028AAF8 File Offset: 0x00288CF8
|
||||
[Token(Token = "0x600ADC8")]
|
||||
[Address(RVA = "0x28EE7E0", Offset = "0x28ED1E0", VA = "0x1828EE7E0")]
|
||||
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: 0x0600ADC9 RID: 44489 RVA: 0x0028AB64 File Offset: 0x00288D64
|
||||
[Token(Token = "0x600ADC9")]
|
||||
[Address(RVA = "0x28EE9E0", Offset = "0x28ED3E0", VA = "0x1828EE9E0")]
|
||||
public Asn1SetParser GetRecipientInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADC9)
|
||||
|
||||
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: 0x0600ADCA RID: 44490 RVA: 0x0028ABA4 File Offset: 0x00288DA4
|
||||
[Token(Token = "0x600ADCA")]
|
||||
[Address(RVA = "0x28EE710", Offset = "0x28ED110", VA = "0x1828EE710")]
|
||||
public EncryptedContentInfoParser GetEncryptedContentInfo()
|
||||
{
|
||||
EncryptedContentInfoParser encryptedContentInfoParser;
|
||||
do
|
||||
{
|
||||
if (this._nextObject == 0)
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
}
|
||||
this._nextObject = (ulong)0L;
|
||||
}
|
||||
while (encryptedContentInfoParser == 0);
|
||||
return encryptedContentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADCB RID: 44491 RVA: 0x0028ABD0 File Offset: 0x00288DD0
|
||||
[Token(Token = "0x600ADCB")]
|
||||
[Address(RVA = "0x28EEA80", Offset = "0x28ED480", VA = "0x1828EEA80")]
|
||||
public Asn1SetParser GetUnprotectedAttrs()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADCB)
|
||||
|
||||
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: 0x04007251 RID: 29265
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007251")]
|
||||
private Asn1SequenceParser _seq;
|
||||
|
||||
// Token: 0x04007252 RID: 29266
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007252")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04007253 RID: 29267
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007253")]
|
||||
private IAsn1Convertible _nextObject;
|
||||
|
||||
// Token: 0x04007254 RID: 29268
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007254")]
|
||||
private bool _originatorInfoCalled;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194D RID: 6477
|
||||
[Token(Token = "0x200194D")]
|
||||
[StructLayout(3)]
|
||||
public class Evidence : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600ADCC RID: 44492 RVA: 0x0028ABF8 File Offset: 0x00288DF8
|
||||
[Token(Token = "0x600ADCC")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public Evidence(TimeStampTokenEvidence tstEvidence)
|
||||
{
|
||||
this.tstEvidence = tstEvidence;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADCD RID: 44493 RVA: 0x0028AC14 File Offset: 0x00288E14
|
||||
[Token(Token = "0x600ADCD")]
|
||||
[Address(RVA = "0x28EF9D0", Offset = "0x28EE3D0", VA = "0x1828EF9D0")]
|
||||
private Evidence(Asn1TaggedObject tagged)
|
||||
{
|
||||
if (tagged.tagNo == 0)
|
||||
{
|
||||
int num = 0;
|
||||
TimeStampTokenEvidence instance = TimeStampTokenEvidence.GetInstance(tagged, num != 0);
|
||||
this.tstEvidence = instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADCE RID: 44494 RVA: 0x0028AC48 File Offset: 0x00288E48
|
||||
[Token(Token = "0x600ADCE")]
|
||||
[Address(RVA = "0x28EF790", Offset = "0x28EE190", VA = "0x1828EF790")]
|
||||
public static Evidence GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADCE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Evidence BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Evidence::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_43:
|
||||
stloc:string(var_8_49, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_61, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in GetInstance: "), ldloc:string(var_8_49)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001BC2 RID: 7106
|
||||
// (get) Token: 0x0600ADCF RID: 44495 RVA: 0x0028ACB8 File Offset: 0x00288EB8
|
||||
[Token(Token = "0x17001BC2")]
|
||||
public virtual TimeStampTokenEvidence TstEvidence
|
||||
{
|
||||
[Token(Token = "0x600ADCF")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tstEvidence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADD0 RID: 44496 RVA: 0x0028ACCC File Offset: 0x00288ECC
|
||||
[Token(Token = "0x600ADD0")]
|
||||
[Address(RVA = "0x28EF960", Offset = "0x28EE360", VA = "0x1828EF960", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADD0)
|
||||
|
||||
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: 0x04007255 RID: 29269
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007255")]
|
||||
private TimeStampTokenEvidence tstEvidence;
|
||||
}
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194E RID: 6478
|
||||
[Token(Token = "0x200194E")]
|
||||
[StructLayout(3)]
|
||||
public class IssuerAndSerialNumber : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADD1 RID: 44497 RVA: 0x0028ACF8 File Offset: 0x00288EF8
|
||||
[Token(Token = "0x600ADD1")]
|
||||
[Address(RVA = "0x28EFA20", Offset = "0x28EE420", VA = "0x1828EFA20")]
|
||||
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: 0x0600ADD2 RID: 44498 RVA: 0x0028AD48 File Offset: 0x00288F48
|
||||
[Token(Token = "0x600ADD2")]
|
||||
[Address(RVA = "0x28EFD50", Offset = "0x28EE750", VA = "0x1828EFD50")]
|
||||
[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: 0x0600ADD3 RID: 44499 RVA: 0x0028AD90 File Offset: 0x00288F90
|
||||
[Token(Token = "0x600ADD3")]
|
||||
[Address(RVA = "0x28EFCD0", Offset = "0x28EE6D0", VA = "0x1828EFCD0")]
|
||||
public IssuerAndSerialNumber(X509Name name, BigInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
this.serialNumber = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADD4 RID: 44500 RVA: 0x0028ADB8 File Offset: 0x00288FB8
|
||||
[Token(Token = "0x600ADD4")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public IssuerAndSerialNumber(X509Name name, DerInteger serialNumber)
|
||||
{
|
||||
this.name = name;
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x17001BC3 RID: 7107
|
||||
// (get) Token: 0x0600ADD5 RID: 44501 RVA: 0x0028ADDC File Offset: 0x00288FDC
|
||||
[Token(Token = "0x17001BC3")]
|
||||
public X509Name Name
|
||||
{
|
||||
[Token(Token = "0x600ADD5")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BC4 RID: 7108
|
||||
// (get) Token: 0x0600ADD6 RID: 44502 RVA: 0x0028ADF0 File Offset: 0x00288FF0
|
||||
[Token(Token = "0x17001BC4")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600ADD6")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADD7 RID: 44503 RVA: 0x0028AE04 File Offset: 0x00289004
|
||||
[Token(Token = "0x600ADD7")]
|
||||
[Address(RVA = "0x28EFBC0", Offset = "0x28EE5C0", VA = "0x1828EFBC0", 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: 0x04007256 RID: 29270
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007256")]
|
||||
private X509Name name;
|
||||
|
||||
// Token: 0x04007257 RID: 29271
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007257")]
|
||||
private DerInteger serialNumber;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200194F RID: 6479
|
||||
[Token(Token = "0x200194F")]
|
||||
[StructLayout(3)]
|
||||
public class KekIdentifier : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADD8 RID: 44504 RVA: 0x0028AE4C File Offset: 0x0028904C
|
||||
[Token(Token = "0x600ADD8")]
|
||||
[Address(RVA = "0x28F0250", Offset = "0x28EEC50", VA = "0x1828F0250")]
|
||||
public KekIdentifier(byte[] keyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(keyIdentifier);
|
||||
this.keyIdentifier = derOctetString;
|
||||
this.date = date;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADD9 RID: 44505 RVA: 0x0028AE7C File Offset: 0x0028907C
|
||||
[Token(Token = "0x600ADD9")]
|
||||
[Address(RVA = "0x28F02E0", Offset = "0x28EECE0", VA = "0x1828F02E0")]
|
||||
public KekIdentifier(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADD9)
|
||||
|
||||
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: 0x0600ADDA RID: 44506 RVA: 0x0028AF10 File Offset: 0x00289110
|
||||
[Token(Token = "0x600ADDA")]
|
||||
[Address(RVA = "0x28EFE70", Offset = "0x28EE870", VA = "0x1828EFE70")]
|
||||
public static KekIdentifier GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KekIdentifier.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600ADDB RID: 44507 RVA: 0x0028AF2C File Offset: 0x0028912C
|
||||
[Token(Token = "0x600ADDB")]
|
||||
[Address(RVA = "0x28EFE90", Offset = "0x28EE890", VA = "0x1828EFE90")]
|
||||
public static KekIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADDB)
|
||||
|
||||
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: 0x17001BC5 RID: 7109
|
||||
// (get) Token: 0x0600ADDC RID: 44508 RVA: 0x0028AF7C File Offset: 0x0028917C
|
||||
[Token(Token = "0x17001BC5")]
|
||||
public Asn1OctetString KeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600ADDC")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.keyIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BC6 RID: 7110
|
||||
// (get) Token: 0x0600ADDD RID: 44509 RVA: 0x0028AF90 File Offset: 0x00289190
|
||||
[Token(Token = "0x17001BC6")]
|
||||
public DerGeneralizedTime Date
|
||||
{
|
||||
[Token(Token = "0x600ADDD")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.date;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BC7 RID: 7111
|
||||
// (get) Token: 0x0600ADDE RID: 44510 RVA: 0x0028AFA4 File Offset: 0x002891A4
|
||||
[Token(Token = "0x17001BC7")]
|
||||
public OtherKeyAttribute Other
|
||||
{
|
||||
[Token(Token = "0x600ADDE")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.other;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADDF RID: 44511 RVA: 0x0028AFB8 File Offset: 0x002891B8
|
||||
[Token(Token = "0x600ADDF")]
|
||||
[Address(RVA = "0x28F0080", Offset = "0x28EEA80", VA = "0x1828F0080", 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: 0x04007258 RID: 29272
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007258")]
|
||||
private Asn1OctetString keyIdentifier;
|
||||
|
||||
// Token: 0x04007259 RID: 29273
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007259")]
|
||||
private DerGeneralizedTime date;
|
||||
|
||||
// Token: 0x0400725A RID: 29274
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400725A")]
|
||||
private OtherKeyAttribute other;
|
||||
}
|
||||
}
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001950 RID: 6480
|
||||
[Token(Token = "0x2001950")]
|
||||
[StructLayout(3)]
|
||||
public class KekRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADE0 RID: 44512 RVA: 0x0028B030 File Offset: 0x00289230
|
||||
[Token(Token = "0x600ADE0")]
|
||||
[Address(RVA = "0x28F0A90", Offset = "0x28EF490", VA = "0x1828F0A90")]
|
||||
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: 0x0600ADE1 RID: 44513 RVA: 0x0028B068 File Offset: 0x00289268
|
||||
[Token(Token = "0x600ADE1")]
|
||||
[Address(RVA = "0x28F0910", Offset = "0x28EF310", VA = "0x1828F0910")]
|
||||
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: 0x0600ADE2 RID: 44514 RVA: 0x0028B0D4 File Offset: 0x002892D4
|
||||
[Token(Token = "0x600ADE2")]
|
||||
[Address(RVA = "0x28F0730", Offset = "0x28EF130", VA = "0x1828F0730")]
|
||||
public static KekRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KekRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600ADE3 RID: 44515 RVA: 0x0028B0F0 File Offset: 0x002892F0
|
||||
[Token(Token = "0x600ADE3")]
|
||||
[Address(RVA = "0x28F0540", Offset = "0x28EEF40", VA = "0x1828F0540")]
|
||||
public static KekRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADE3)
|
||||
|
||||
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: 0x17001BC8 RID: 7112
|
||||
// (get) Token: 0x0600ADE4 RID: 44516 RVA: 0x0028B140 File Offset: 0x00289340
|
||||
[Token(Token = "0x17001BC8")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600ADE4")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BC9 RID: 7113
|
||||
// (get) Token: 0x0600ADE5 RID: 44517 RVA: 0x0028B154 File Offset: 0x00289354
|
||||
[Token(Token = "0x17001BC9")]
|
||||
public KekIdentifier KekID
|
||||
{
|
||||
[Token(Token = "0x600ADE5")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.kekID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BCA RID: 7114
|
||||
// (get) Token: 0x0600ADE6 RID: 44518 RVA: 0x0028B168 File Offset: 0x00289368
|
||||
[Token(Token = "0x17001BCA")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600ADE6")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BCB RID: 7115
|
||||
// (get) Token: 0x0600ADE7 RID: 44519 RVA: 0x0028B17C File Offset: 0x0028937C
|
||||
[Token(Token = "0x17001BCB")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600ADE7")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADE8 RID: 44520 RVA: 0x0028B190 File Offset: 0x00289390
|
||||
[Token(Token = "0x600ADE8")]
|
||||
[Address(RVA = "0x28F0750", Offset = "0x28EF150", VA = "0x1828F0750", 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: 0x0400725B RID: 29275
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400725B")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400725C RID: 29276
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400725C")]
|
||||
private KekIdentifier kekID;
|
||||
|
||||
// Token: 0x0400725D RID: 29277
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400725D")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x0400725E RID: 29278
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400725E")]
|
||||
private Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001951 RID: 6481
|
||||
[Token(Token = "0x2001951")]
|
||||
[StructLayout(3)]
|
||||
public class KeyAgreeRecipientIdentifier : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600ADE9 RID: 44521 RVA: 0x0028B200 File Offset: 0x00289400
|
||||
[Token(Token = "0x600ADE9")]
|
||||
[Address(RVA = "0x28F0D80", Offset = "0x28EF780", VA = "0x1828F0D80")]
|
||||
public static KeyAgreeRecipientIdentifier GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return KeyAgreeRecipientIdentifier.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600ADEA RID: 44522 RVA: 0x0028B21C File Offset: 0x0028941C
|
||||
[Token(Token = "0x600ADEA")]
|
||||
[Address(RVA = "0x28F0B30", Offset = "0x28EF530", VA = "0x1828F0B30")]
|
||||
public static KeyAgreeRecipientIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADEA)
|
||||
|
||||
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: 0x0600ADEB RID: 44523 RVA: 0x0028B2A0 File Offset: 0x002894A0
|
||||
[Token(Token = "0x600ADEB")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public KeyAgreeRecipientIdentifier(IssuerAndSerialNumber issuerSerial)
|
||||
{
|
||||
this.issuerSerial = issuerSerial;
|
||||
}
|
||||
|
||||
// Token: 0x0600ADEC RID: 44524 RVA: 0x0028B2BC File Offset: 0x002894BC
|
||||
[Token(Token = "0x600ADEC")]
|
||||
[Address(RVA = "0x9BBBE0", Offset = "0x9BA5E0", VA = "0x1809BBBE0")]
|
||||
public KeyAgreeRecipientIdentifier(RecipientKeyIdentifier rKeyID)
|
||||
{
|
||||
this.rKeyID = rKeyID;
|
||||
}
|
||||
|
||||
// Token: 0x17001BCC RID: 7116
|
||||
// (get) Token: 0x0600ADED RID: 44525 RVA: 0x0028B2D8 File Offset: 0x002894D8
|
||||
[Token(Token = "0x17001BCC")]
|
||||
public IssuerAndSerialNumber IssuerAndSerialNumber
|
||||
{
|
||||
[Token(Token = "0x600ADED")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.issuerSerial;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BCD RID: 7117
|
||||
// (get) Token: 0x0600ADEE RID: 44526 RVA: 0x0028B2EC File Offset: 0x002894EC
|
||||
[Token(Token = "0x17001BCD")]
|
||||
public RecipientKeyIdentifier RKeyID
|
||||
{
|
||||
[Token(Token = "0x600ADEE")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.rKeyID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADEF RID: 44527 RVA: 0x0028B300 File Offset: 0x00289500
|
||||
[Token(Token = "0x600ADEF")]
|
||||
[Address(RVA = "0x28F0DA0", Offset = "0x28EF7A0", VA = "0x1828F0DA0", 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: 0x0400725F RID: 29279
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400725F")]
|
||||
private readonly IssuerAndSerialNumber issuerSerial;
|
||||
|
||||
// Token: 0x04007260 RID: 29280
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007260")]
|
||||
private readonly RecipientKeyIdentifier rKeyID;
|
||||
}
|
||||
}
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001952 RID: 6482
|
||||
[Token(Token = "0x2001952")]
|
||||
[StructLayout(3)]
|
||||
public class KeyAgreeRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADF0 RID: 44528 RVA: 0x0028B338 File Offset: 0x00289538
|
||||
[Token(Token = "0x600ADF0")]
|
||||
[Address(RVA = "0x28F1340", Offset = "0x28EFD40", VA = "0x1828F1340")]
|
||||
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: 0x0600ADF1 RID: 44529 RVA: 0x0028B378 File Offset: 0x00289578
|
||||
[Token(Token = "0x600ADF1")]
|
||||
[Address(RVA = "0x28F13E0", Offset = "0x28EFDE0", VA = "0x1828F13E0")]
|
||||
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: 0x0600ADF2 RID: 44530 RVA: 0x0028B430 File Offset: 0x00289630
|
||||
[Token(Token = "0x600ADF2")]
|
||||
[Address(RVA = "0x28F0E30", Offset = "0x28EF830", VA = "0x1828F0E30")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return KeyAgreeRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600ADF3 RID: 44531 RVA: 0x0028B44C File Offset: 0x0028964C
|
||||
[Token(Token = "0x600ADF3")]
|
||||
[Address(RVA = "0x28F0E50", Offset = "0x28EF850", VA = "0x1828F0E50")]
|
||||
public static KeyAgreeRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADF3)
|
||||
|
||||
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: 0x17001BCE RID: 7118
|
||||
// (get) Token: 0x0600ADF4 RID: 44532 RVA: 0x0028B49C File Offset: 0x0028969C
|
||||
[Token(Token = "0x17001BCE")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600ADF4")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BCF RID: 7119
|
||||
// (get) Token: 0x0600ADF5 RID: 44533 RVA: 0x0028B4B0 File Offset: 0x002896B0
|
||||
[Token(Token = "0x17001BCF")]
|
||||
public OriginatorIdentifierOrKey Originator
|
||||
{
|
||||
[Token(Token = "0x600ADF5")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.originator;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BD0 RID: 7120
|
||||
// (get) Token: 0x0600ADF6 RID: 44534 RVA: 0x0028B4C4 File Offset: 0x002896C4
|
||||
[Token(Token = "0x17001BD0")]
|
||||
public Asn1OctetString UserKeyingMaterial
|
||||
{
|
||||
[Token(Token = "0x600ADF6")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.ukm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BD1 RID: 7121
|
||||
// (get) Token: 0x0600ADF7 RID: 44535 RVA: 0x0028B4D8 File Offset: 0x002896D8
|
||||
[Token(Token = "0x17001BD1")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600ADF7")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BD2 RID: 7122
|
||||
// (get) Token: 0x0600ADF8 RID: 44536 RVA: 0x0028B4EC File Offset: 0x002896EC
|
||||
[Token(Token = "0x17001BD2")]
|
||||
public Asn1Sequence RecipientEncryptedKeys
|
||||
{
|
||||
[Token(Token = "0x600ADF8")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.recipientEncryptedKeys;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600ADF9 RID: 44537 RVA: 0x0028B500 File Offset: 0x00289700
|
||||
[Token(Token = "0x600ADF9")]
|
||||
[Address(RVA = "0x28F1040", Offset = "0x28EFA40", VA = "0x1828F1040", 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: 0x04007261 RID: 29281
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007261")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007262 RID: 29282
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007262")]
|
||||
private OriginatorIdentifierOrKey originator;
|
||||
|
||||
// Token: 0x04007263 RID: 29283
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007263")]
|
||||
private Asn1OctetString ukm;
|
||||
|
||||
// Token: 0x04007264 RID: 29284
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007264")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04007265 RID: 29285
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007265")]
|
||||
private Asn1Sequence recipientEncryptedKeys;
|
||||
}
|
||||
}
|
||||
+191
@@ -0,0 +1,191 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001953 RID: 6483
|
||||
[Token(Token = "0x2001953")]
|
||||
[StructLayout(3)]
|
||||
public class KeyTransRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ADFA RID: 44538 RVA: 0x0028B5E4 File Offset: 0x002897E4
|
||||
[Token(Token = "0x600ADFA")]
|
||||
[Address(RVA = "0x28F2430", Offset = "0x28F0E30", VA = "0x1828F2430")]
|
||||
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: 0x0600ADFB RID: 44539 RVA: 0x0028B638 File Offset: 0x00289838
|
||||
[Token(Token = "0x600ADFB")]
|
||||
[Address(RVA = "0x28F22B0", Offset = "0x28F0CB0", VA = "0x1828F22B0")]
|
||||
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: 0x0600ADFC RID: 44540 RVA: 0x0028B6A4 File Offset: 0x002898A4
|
||||
[Token(Token = "0x600ADFC")]
|
||||
[Address(RVA = "0x28F1F00", Offset = "0x28F0900", VA = "0x1828F1F00")]
|
||||
public static KeyTransRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ADFC)
|
||||
|
||||
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: 0x17001BD3 RID: 7123
|
||||
// (get) Token: 0x0600ADFD RID: 44541 RVA: 0x0028B6F4 File Offset: 0x002898F4
|
||||
[Token(Token = "0x17001BD3")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600ADFD")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BD4 RID: 7124
|
||||
// (get) Token: 0x0600ADFE RID: 44542 RVA: 0x0028B708 File Offset: 0x00289908
|
||||
[Token(Token = "0x17001BD4")]
|
||||
public RecipientIdentifier RecipientIdentifier
|
||||
{
|
||||
[Token(Token = "0x600ADFE")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.rid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BD5 RID: 7125
|
||||
// (get) Token: 0x0600ADFF RID: 44543 RVA: 0x0028B71C File Offset: 0x0028991C
|
||||
[Token(Token = "0x17001BD5")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600ADFF")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BD6 RID: 7126
|
||||
// (get) Token: 0x0600AE00 RID: 44544 RVA: 0x0028B730 File Offset: 0x00289930
|
||||
[Token(Token = "0x17001BD6")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600AE00")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE01 RID: 44545 RVA: 0x0028B744 File Offset: 0x00289944
|
||||
[Token(Token = "0x600AE01")]
|
||||
[Address(RVA = "0x28F20F0", Offset = "0x28F0AF0", VA = "0x1828F20F0", 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: 0x04007266 RID: 29286
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007266")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007267 RID: 29287
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007267")]
|
||||
private RecipientIdentifier rid;
|
||||
|
||||
// Token: 0x04007268 RID: 29288
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007268")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x04007269 RID: 29289
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007269")]
|
||||
private Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001954 RID: 6484
|
||||
[Token(Token = "0x2001954")]
|
||||
[StructLayout(3)]
|
||||
public class MetaData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE02 RID: 44546 RVA: 0x0028B7B4 File Offset: 0x002899B4
|
||||
[Token(Token = "0x600AE02")]
|
||||
[Address(RVA = "0x9BCAC0", Offset = "0x9BB4C0", VA = "0x1809BCAC0")]
|
||||
public MetaData(DerBoolean hashProtected, DerUtf8String fileName, DerIA5String mediaType, Attributes otherMetaData)
|
||||
{
|
||||
this.hashProtected = hashProtected;
|
||||
this.mediaType = mediaType;
|
||||
this.otherMetaData = 0;
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE03 RID: 44547 RVA: 0x0028B7E4 File Offset: 0x002899E4
|
||||
[Token(Token = "0x600AE03")]
|
||||
[Address(RVA = "0x28F2E00", Offset = "0x28F1800", VA = "0x1828F2E00")]
|
||||
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: 0x0600AE04 RID: 44548 RVA: 0x0028B894 File Offset: 0x00289A94
|
||||
[Token(Token = "0x600AE04")]
|
||||
[Address(RVA = "0x28F2AE0", Offset = "0x28F14E0", VA = "0x1828F2AE0")]
|
||||
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: 0x0600AE05 RID: 44549 RVA: 0x0028B8C8 File Offset: 0x00289AC8
|
||||
[Token(Token = "0x600AE05")]
|
||||
[Address(RVA = "0x28F2BE0", Offset = "0x28F15E0", VA = "0x1828F2BE0", 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: 0x17001BD7 RID: 7127
|
||||
// (get) Token: 0x0600AE06 RID: 44550 RVA: 0x0028B954 File Offset: 0x00289B54
|
||||
[Token(Token = "0x17001BD7")]
|
||||
public virtual bool IsHashProtected
|
||||
{
|
||||
[Token(Token = "0x600AE06")]
|
||||
[Address(RVA = "0x28F30F0", Offset = "0x28F1AF0", VA = "0x1828F30F0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.hashProtected.IsTrue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BD8 RID: 7128
|
||||
// (get) Token: 0x0600AE07 RID: 44551 RVA: 0x0028B974 File Offset: 0x00289B74
|
||||
[Token(Token = "0x17001BD8")]
|
||||
public virtual DerUtf8String FileName
|
||||
{
|
||||
[Token(Token = "0x600AE07")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.fileName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BD9 RID: 7129
|
||||
// (get) Token: 0x0600AE08 RID: 44552 RVA: 0x0028B988 File Offset: 0x00289B88
|
||||
[Token(Token = "0x17001BD9")]
|
||||
public virtual DerIA5String MediaType
|
||||
{
|
||||
[Token(Token = "0x600AE08")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.mediaType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BDA RID: 7130
|
||||
// (get) Token: 0x0600AE09 RID: 44553 RVA: 0x0028B99C File Offset: 0x00289B9C
|
||||
[Token(Token = "0x17001BDA")]
|
||||
public virtual Attributes OtherMetaData
|
||||
{
|
||||
[Token(Token = "0x600AE09")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.otherMetaData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400726A RID: 29290
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400726A")]
|
||||
private DerBoolean hashProtected;
|
||||
|
||||
// Token: 0x0400726B RID: 29291
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400726B")]
|
||||
private DerUtf8String fileName;
|
||||
|
||||
// Token: 0x0400726C RID: 29292
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400726C")]
|
||||
private DerIA5String mediaType;
|
||||
|
||||
// Token: 0x0400726D RID: 29293
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400726D")]
|
||||
private Attributes otherMetaData;
|
||||
}
|
||||
}
|
||||
+234
@@ -0,0 +1,234 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001955 RID: 6485
|
||||
[Token(Token = "0x2001955")]
|
||||
[StructLayout(3)]
|
||||
public class OriginatorIdentifierOrKey : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AE0A RID: 44554 RVA: 0x0028B9B0 File Offset: 0x00289BB0
|
||||
[Token(Token = "0x600AE0A")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public OriginatorIdentifierOrKey(IssuerAndSerialNumber id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE0B RID: 44555 RVA: 0x0028B9CC File Offset: 0x00289BCC
|
||||
[Token(Token = "0x600AE0B")]
|
||||
[Address(RVA = "0x28F3BA0", Offset = "0x28F25A0", VA = "0x1828F3BA0")]
|
||||
[Obsolete]
|
||||
public OriginatorIdentifierOrKey(Asn1OctetString id)
|
||||
{
|
||||
SubjectKeyIdentifier subjectKeyIdentifier = new SubjectKeyIdentifier(id);
|
||||
}
|
||||
|
||||
// Token: 0x0600AE0C RID: 44556 RVA: 0x0028B9E0 File Offset: 0x00289BE0
|
||||
[Token(Token = "0x600AE0C")]
|
||||
[Address(RVA = "0x28F3C10", Offset = "0x28F2610", VA = "0x1828F3C10")]
|
||||
public OriginatorIdentifierOrKey(SubjectKeyIdentifier id)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, id);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE0D RID: 44557 RVA: 0x0028BA08 File Offset: 0x00289C08
|
||||
[Token(Token = "0x600AE0D")]
|
||||
[Address(RVA = "0x28F3C90", Offset = "0x28F2690", VA = "0x1828F3C90")]
|
||||
public OriginatorIdentifierOrKey(OriginatorPublicKey id)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 1, id);
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE0E RID: 44558 RVA: 0x0028BA30 File Offset: 0x00289C30
|
||||
[Token(Token = "0x600AE0E")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
[Obsolete]
|
||||
public OriginatorIdentifierOrKey(Asn1Object id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE0F RID: 44559 RVA: 0x0028BA4C File Offset: 0x00289C4C
|
||||
[Token(Token = "0x600AE0F")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private OriginatorIdentifierOrKey(Asn1TaggedObject id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE10 RID: 44560 RVA: 0x0028BA68 File Offset: 0x00289C68
|
||||
[Token(Token = "0x600AE10")]
|
||||
[Address(RVA = "0x28F3B10", Offset = "0x28F2510", VA = "0x1828F3B10")]
|
||||
public static OriginatorIdentifierOrKey GetInstance(Asn1TaggedObject o, bool explicitly)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE10)
|
||||
|
||||
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: 0x0600AE11 RID: 44561 RVA: 0x0028BA90 File Offset: 0x00289C90
|
||||
[Token(Token = "0x600AE11")]
|
||||
[Address(RVA = "0x28F37E0", Offset = "0x28F21E0", VA = "0x1828F37E0")]
|
||||
public static OriginatorIdentifierOrKey GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE11)
|
||||
|
||||
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: 0x17001BDB RID: 7131
|
||||
// (get) Token: 0x0600AE12 RID: 44562 RVA: 0x0028BAE8 File Offset: 0x00289CE8
|
||||
[Token(Token = "0x17001BDB")]
|
||||
public Asn1Encodable ID
|
||||
{
|
||||
[Token(Token = "0x600AE12")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BDC RID: 7132
|
||||
// (get) Token: 0x0600AE13 RID: 44563 RVA: 0x0028BAFC File Offset: 0x00289CFC
|
||||
[Token(Token = "0x17001BDC")]
|
||||
public IssuerAndSerialNumber IssuerAndSerialNumber
|
||||
{
|
||||
[Token(Token = "0x600AE13")]
|
||||
[Address(RVA = "0x28F3D10", Offset = "0x28F2710", VA = "0x1828F3D10")]
|
||||
get
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0 || asn1Encodable == 0 || asn1Encodable == 0 || asn1Encodable != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BDD RID: 7133
|
||||
// (get) Token: 0x0600AE14 RID: 44564 RVA: 0x0028BB28 File Offset: 0x00289D28
|
||||
[Token(Token = "0x17001BDD")]
|
||||
public SubjectKeyIdentifier SubjectKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600AE14")]
|
||||
[Address(RVA = "0x28F3F60", Offset = "0x28F2960", VA = "0x1828F3F60")]
|
||||
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: 0x17001BDE RID: 7134
|
||||
// (get) Token: 0x0600AE15 RID: 44565 RVA: 0x0028BB68 File Offset: 0x00289D68
|
||||
[Token(Token = "0x17001BDE")]
|
||||
[Obsolete]
|
||||
public OriginatorPublicKey OriginatorKey
|
||||
{
|
||||
[Token(Token = "0x600AE15")]
|
||||
[Address(RVA = "0x28F3DE0", Offset = "0x28F27E0", VA = "0x1828F3DE0")]
|
||||
get
|
||||
{
|
||||
return this.OriginatorPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BDF RID: 7135
|
||||
// (get) Token: 0x0600AE16 RID: 44566 RVA: 0x0028BB7C File Offset: 0x00289D7C
|
||||
[Token(Token = "0x17001BDF")]
|
||||
public OriginatorPublicKey OriginatorPublicKey
|
||||
{
|
||||
[Token(Token = "0x600AE16")]
|
||||
[Address(RVA = "0x28F3DF0", Offset = "0x28F27F0", VA = "0x1828F3DF0")]
|
||||
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: 0x0600AE17 RID: 44567 RVA: 0x0028BBBC File Offset: 0x00289DBC
|
||||
[Token(Token = "0x600AE17")]
|
||||
[Address(RVA = "0x52D760", Offset = "0x52C160", VA = "0x18052D760", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.id.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x0400726E RID: 29294
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400726E")]
|
||||
private Asn1Encodable id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001956 RID: 6486
|
||||
[Token(Token = "0x2001956")]
|
||||
[StructLayout(3)]
|
||||
public class OriginatorInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE18 RID: 44568 RVA: 0x0028BBDC File Offset: 0x00289DDC
|
||||
[Token(Token = "0x600AE18")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public OriginatorInfo(Asn1Set certs, Asn1Set crls)
|
||||
{
|
||||
this.certs = certs;
|
||||
this.crls = crls;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE19 RID: 44569 RVA: 0x0028BC00 File Offset: 0x00289E00
|
||||
[Token(Token = "0x600AE19")]
|
||||
[Address(RVA = "0x28F44E0", Offset = "0x28F2EE0", VA = "0x1828F44E0")]
|
||||
public OriginatorInfo(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE19)
|
||||
|
||||
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: 0x0600AE1A RID: 44570 RVA: 0x0028BC84 File Offset: 0x00289E84
|
||||
[Token(Token = "0x600AE1A")]
|
||||
[Address(RVA = "0x28F42B0", Offset = "0x28F2CB0", VA = "0x1828F42B0")]
|
||||
public static OriginatorInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return OriginatorInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600AE1B RID: 44571 RVA: 0x0028BCA0 File Offset: 0x00289EA0
|
||||
[Token(Token = "0x600AE1B")]
|
||||
[Address(RVA = "0x28F40C0", Offset = "0x28F2AC0", VA = "0x1828F40C0")]
|
||||
public static OriginatorInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE1B)
|
||||
|
||||
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: 0x17001BE0 RID: 7136
|
||||
// (get) Token: 0x0600AE1C RID: 44572 RVA: 0x0028BCF0 File Offset: 0x00289EF0
|
||||
[Token(Token = "0x17001BE0")]
|
||||
public Asn1Set Certificates
|
||||
{
|
||||
[Token(Token = "0x600AE1C")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.certs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BE1 RID: 7137
|
||||
// (get) Token: 0x0600AE1D RID: 44573 RVA: 0x0028BD04 File Offset: 0x00289F04
|
||||
[Token(Token = "0x17001BE1")]
|
||||
public Asn1Set Crls
|
||||
{
|
||||
[Token(Token = "0x600AE1D")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.crls;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE1E RID: 44574 RVA: 0x0028BD18 File Offset: 0x00289F18
|
||||
[Token(Token = "0x600AE1E")]
|
||||
[Address(RVA = "0x28F42D0", Offset = "0x28F2CD0", VA = "0x1828F42D0", 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: 0x0400726F RID: 29295
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400726F")]
|
||||
private Asn1Set certs;
|
||||
|
||||
// Token: 0x04007270 RID: 29296
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007270")]
|
||||
private Asn1Set crls;
|
||||
}
|
||||
}
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001957 RID: 6487
|
||||
[Token(Token = "0x2001957")]
|
||||
[StructLayout(3)]
|
||||
public class OriginatorPublicKey : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE1F RID: 44575 RVA: 0x0028BDB0 File Offset: 0x00289FB0
|
||||
[Token(Token = "0x600AE1F")]
|
||||
[Address(RVA = "0x28F4BD0", Offset = "0x28F35D0", VA = "0x1828F4BD0")]
|
||||
public OriginatorPublicKey(AlgorithmIdentifier algorithm, byte[] publicKey)
|
||||
{
|
||||
this.mAlgorithm = algorithm;
|
||||
DerBitString derBitString = new DerBitString(publicKey);
|
||||
this.mPublicKey = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE20 RID: 44576 RVA: 0x0028BDD8 File Offset: 0x00289FD8
|
||||
[Token(Token = "0x600AE20")]
|
||||
[Address(RVA = "0x28F4B10", Offset = "0x28F3510", VA = "0x1828F4B10")]
|
||||
[Obsolete]
|
||||
public OriginatorPublicKey(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.mAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.mPublicKey = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE21 RID: 44577 RVA: 0x0028BE10 File Offset: 0x0028A010
|
||||
[Token(Token = "0x600AE21")]
|
||||
[Address(RVA = "0x28F49E0", Offset = "0x28F33E0", VA = "0x1828F49E0")]
|
||||
public static OriginatorPublicKey GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return OriginatorPublicKey.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600AE22 RID: 44578 RVA: 0x0028BE2C File Offset: 0x0028A02C
|
||||
[Token(Token = "0x600AE22")]
|
||||
[Address(RVA = "0x28F47A0", Offset = "0x28F31A0", VA = "0x1828F47A0")]
|
||||
public static OriginatorPublicKey GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE22)
|
||||
|
||||
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: 0x17001BE2 RID: 7138
|
||||
// (get) Token: 0x0600AE23 RID: 44579 RVA: 0x0028BEA0 File Offset: 0x0028A0A0
|
||||
[Token(Token = "0x17001BE2")]
|
||||
public AlgorithmIdentifier Algorithm
|
||||
{
|
||||
[Token(Token = "0x600AE23")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.mAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BE3 RID: 7139
|
||||
// (get) Token: 0x0600AE24 RID: 44580 RVA: 0x0028BEB4 File Offset: 0x0028A0B4
|
||||
[Token(Token = "0x17001BE3")]
|
||||
public DerBitString PublicKey
|
||||
{
|
||||
[Token(Token = "0x600AE24")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.mPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE25 RID: 44581 RVA: 0x0028BEC8 File Offset: 0x0028A0C8
|
||||
[Token(Token = "0x600AE25")]
|
||||
[Address(RVA = "0x28F4A00", Offset = "0x28F3400", VA = "0x1828F4A00", 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: 0x04007271 RID: 29297
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007271")]
|
||||
private readonly AlgorithmIdentifier mAlgorithm;
|
||||
|
||||
// Token: 0x04007272 RID: 29298
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007272")]
|
||||
private readonly DerBitString mPublicKey;
|
||||
}
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001958 RID: 6488
|
||||
[Token(Token = "0x2001958")]
|
||||
[StructLayout(3)]
|
||||
public class OtherKeyAttribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE26 RID: 44582 RVA: 0x0028BF10 File Offset: 0x0028A110
|
||||
[Token(Token = "0x600AE26")]
|
||||
[Address(RVA = "0x28F4C50", Offset = "0x28F3650", VA = "0x1828F4C50")]
|
||||
public static OtherKeyAttribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE26)
|
||||
|
||||
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: 0x0600AE27 RID: 44583 RVA: 0x0028BF68 File Offset: 0x0028A168
|
||||
[Token(Token = "0x600AE27")]
|
||||
[Address(RVA = "0x28F5000", Offset = "0x28F3A00", VA = "0x1828F5000")]
|
||||
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: 0x0600AE28 RID: 44584 RVA: 0x0028BFA8 File Offset: 0x0028A1A8
|
||||
[Token(Token = "0x600AE28")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public OtherKeyAttribute(DerObjectIdentifier keyAttrId, Asn1Encodable keyAttr)
|
||||
{
|
||||
this.keyAttrId = keyAttrId;
|
||||
this.keyAttr = keyAttr;
|
||||
}
|
||||
|
||||
// Token: 0x17001BE4 RID: 7140
|
||||
// (get) Token: 0x0600AE29 RID: 44585 RVA: 0x0028BFCC File Offset: 0x0028A1CC
|
||||
[Token(Token = "0x17001BE4")]
|
||||
public DerObjectIdentifier KeyAttrId
|
||||
{
|
||||
[Token(Token = "0x600AE29")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.keyAttrId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BE5 RID: 7141
|
||||
// (get) Token: 0x0600AE2A RID: 44586 RVA: 0x0028BFE0 File Offset: 0x0028A1E0
|
||||
[Token(Token = "0x17001BE5")]
|
||||
public Asn1Encodable KeyAttr
|
||||
{
|
||||
[Token(Token = "0x600AE2A")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.keyAttr;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE2B RID: 44587 RVA: 0x0028BFF4 File Offset: 0x0028A1F4
|
||||
[Token(Token = "0x600AE2B")]
|
||||
[Address(RVA = "0x28F4EF0", Offset = "0x28F38F0", VA = "0x1828F4EF0", 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: 0x04007273 RID: 29299
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007273")]
|
||||
private DerObjectIdentifier keyAttrId;
|
||||
|
||||
// Token: 0x04007274 RID: 29300
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007274")]
|
||||
private Asn1Encodable keyAttr;
|
||||
}
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001959 RID: 6489
|
||||
[Token(Token = "0x2001959")]
|
||||
[StructLayout(3)]
|
||||
public class OtherRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE2C RID: 44588 RVA: 0x0028C03C File Offset: 0x0028A23C
|
||||
[Token(Token = "0x600AE2C")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public OtherRecipientInfo(DerObjectIdentifier oriType, Asn1Encodable oriValue)
|
||||
{
|
||||
this.oriType = oriType;
|
||||
this.oriValue = oriValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE2D RID: 44589 RVA: 0x0028C060 File Offset: 0x0028A260
|
||||
[Token(Token = "0x600AE2D")]
|
||||
[Address(RVA = "0x28F54A0", Offset = "0x28F3EA0", VA = "0x1828F54A0")]
|
||||
[Obsolete]
|
||||
public OtherRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.oriType = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.oriValue = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE2E RID: 44590 RVA: 0x0028C098 File Offset: 0x0028A298
|
||||
[Token(Token = "0x600AE2E")]
|
||||
[Address(RVA = "0x28F5230", Offset = "0x28F3C30", VA = "0x1828F5230")]
|
||||
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: 0x0600AE2F RID: 44591 RVA: 0x0028C0E8 File Offset: 0x0028A2E8
|
||||
[Token(Token = "0x600AE2F")]
|
||||
[Address(RVA = "0x28F50E0", Offset = "0x28F3AE0", VA = "0x1828F50E0")]
|
||||
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: 0x17001BE6 RID: 7142
|
||||
// (get) Token: 0x0600AE30 RID: 44592 RVA: 0x0028C130 File Offset: 0x0028A330
|
||||
[Token(Token = "0x17001BE6")]
|
||||
public virtual DerObjectIdentifier OriType
|
||||
{
|
||||
[Token(Token = "0x600AE30")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.oriType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BE7 RID: 7143
|
||||
// (get) Token: 0x0600AE31 RID: 44593 RVA: 0x0028C144 File Offset: 0x0028A344
|
||||
[Token(Token = "0x17001BE7")]
|
||||
public virtual Asn1Encodable OriValue
|
||||
{
|
||||
[Token(Token = "0x600AE31")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.oriValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE32 RID: 44594 RVA: 0x0028C158 File Offset: 0x0028A358
|
||||
[Token(Token = "0x600AE32")]
|
||||
[Address(RVA = "0x28F5390", Offset = "0x28F3D90", VA = "0x1828F5390", 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: 0x04007275 RID: 29301
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007275")]
|
||||
private readonly DerObjectIdentifier oriType;
|
||||
|
||||
// Token: 0x04007276 RID: 29302
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007276")]
|
||||
private readonly Asn1Encodable oriValue;
|
||||
}
|
||||
}
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200195A RID: 6490
|
||||
[Token(Token = "0x200195A")]
|
||||
[StructLayout(3)]
|
||||
public class OtherRevocationInfoFormat : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE33 RID: 44595 RVA: 0x0028C1A0 File Offset: 0x0028A3A0
|
||||
[Token(Token = "0x600AE33")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public OtherRevocationInfoFormat(DerObjectIdentifier otherRevInfoFormat, Asn1Encodable otherRevInfo)
|
||||
{
|
||||
this.otherRevInfoFormat = otherRevInfoFormat;
|
||||
this.otherRevInfo = otherRevInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE34 RID: 44596 RVA: 0x0028C1C4 File Offset: 0x0028A3C4
|
||||
[Token(Token = "0x600AE34")]
|
||||
[Address(RVA = "0x28F5820", Offset = "0x28F4220", VA = "0x1828F5820")]
|
||||
private OtherRevocationInfoFormat(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.otherRevInfoFormat = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.otherRevInfo = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE35 RID: 44597 RVA: 0x0028C1FC File Offset: 0x0028A3FC
|
||||
[Token(Token = "0x600AE35")]
|
||||
[Address(RVA = "0x28F5560", Offset = "0x28F3F60", VA = "0x1828F5560")]
|
||||
public static OtherRevocationInfoFormat GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return OtherRevocationInfoFormat.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AE36 RID: 44598 RVA: 0x0028C218 File Offset: 0x0028A418
|
||||
[Token(Token = "0x600AE36")]
|
||||
[Address(RVA = "0x28F5580", Offset = "0x28F3F80", VA = "0x1828F5580")]
|
||||
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: 0x17001BE8 RID: 7144
|
||||
// (get) Token: 0x0600AE37 RID: 44599 RVA: 0x0028C268 File Offset: 0x0028A468
|
||||
[Token(Token = "0x17001BE8")]
|
||||
public virtual DerObjectIdentifier InfoFormat
|
||||
{
|
||||
[Token(Token = "0x600AE37")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.otherRevInfoFormat;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BE9 RID: 7145
|
||||
// (get) Token: 0x0600AE38 RID: 44600 RVA: 0x0028C27C File Offset: 0x0028A47C
|
||||
[Token(Token = "0x17001BE9")]
|
||||
public virtual Asn1Encodable Info
|
||||
{
|
||||
[Token(Token = "0x600AE38")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.otherRevInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE39 RID: 44601 RVA: 0x0028C290 File Offset: 0x0028A490
|
||||
[Token(Token = "0x600AE39")]
|
||||
[Address(RVA = "0x28F5710", Offset = "0x28F4110", VA = "0x1828F5710", 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: 0x04007277 RID: 29303
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007277")]
|
||||
private readonly DerObjectIdentifier otherRevInfoFormat;
|
||||
|
||||
// Token: 0x04007278 RID: 29304
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007278")]
|
||||
private readonly Asn1Encodable otherRevInfo;
|
||||
}
|
||||
}
|
||||
+245
@@ -0,0 +1,245 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200195B RID: 6491
|
||||
[Token(Token = "0x200195B")]
|
||||
[StructLayout(3)]
|
||||
public class PasswordRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE3A RID: 44602 RVA: 0x0028C2D8 File Offset: 0x0028A4D8
|
||||
[Token(Token = "0x600AE3A")]
|
||||
[Address(RVA = "0x28F6060", Offset = "0x28F4A60", VA = "0x1828F6060")]
|
||||
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: 0x0600AE3B RID: 44603 RVA: 0x0028C30C File Offset: 0x0028A50C
|
||||
[Token(Token = "0x600AE3B")]
|
||||
[Address(RVA = "0x28F60E0", Offset = "0x28F4AE0", VA = "0x1828F60E0")]
|
||||
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: 0x0600AE3C RID: 44604 RVA: 0x0028C344 File Offset: 0x0028A544
|
||||
[Token(Token = "0x600AE3C")]
|
||||
[Address(RVA = "0x28F5D80", Offset = "0x28F4780", VA = "0x1828F5D80")]
|
||||
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: 0x0600AE3D RID: 44605 RVA: 0x0028C3FC File Offset: 0x0028A5FC
|
||||
[Token(Token = "0x600AE3D")]
|
||||
[Address(RVA = "0x28F58E0", Offset = "0x28F42E0", VA = "0x1828F58E0")]
|
||||
public static PasswordRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return PasswordRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600AE3E RID: 44606 RVA: 0x0028C418 File Offset: 0x0028A618
|
||||
[Token(Token = "0x600AE3E")]
|
||||
[Address(RVA = "0x28F5900", Offset = "0x28F4300", VA = "0x1828F5900")]
|
||||
public static PasswordRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE3E)
|
||||
|
||||
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: 0x17001BEA RID: 7146
|
||||
// (get) Token: 0x0600AE3F RID: 44607 RVA: 0x0028C468 File Offset: 0x0028A668
|
||||
[Token(Token = "0x17001BEA")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AE3F")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BEB RID: 7147
|
||||
// (get) Token: 0x0600AE40 RID: 44608 RVA: 0x0028C47C File Offset: 0x0028A67C
|
||||
[Token(Token = "0x17001BEB")]
|
||||
public AlgorithmIdentifier KeyDerivationAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600AE40")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.keyDerivationAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BEC RID: 7148
|
||||
// (get) Token: 0x0600AE41 RID: 44609 RVA: 0x0028C490 File Offset: 0x0028A690
|
||||
[Token(Token = "0x17001BEC")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600AE41")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BED RID: 7149
|
||||
// (get) Token: 0x0600AE42 RID: 44610 RVA: 0x0028C4A4 File Offset: 0x0028A6A4
|
||||
[Token(Token = "0x17001BED")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600AE42")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE43 RID: 44611 RVA: 0x0028C4B8 File Offset: 0x0028A6B8
|
||||
[Token(Token = "0x600AE43")]
|
||||
[Address(RVA = "0x28F5AF0", Offset = "0x28F44F0", VA = "0x1828F5AF0", 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: 0x04007279 RID: 29305
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007279")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x0400727A RID: 29306
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400727A")]
|
||||
private readonly AlgorithmIdentifier keyDerivationAlgorithm;
|
||||
|
||||
// Token: 0x0400727B RID: 29307
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400727B")]
|
||||
private readonly AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x0400727C RID: 29308
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400727C")]
|
||||
private readonly Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
+140
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200195C RID: 6492
|
||||
[Token(Token = "0x200195C")]
|
||||
[StructLayout(3)]
|
||||
public class RecipientEncryptedKey : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE44 RID: 44612 RVA: 0x0028C574 File Offset: 0x0028A774
|
||||
[Token(Token = "0x600AE44")]
|
||||
[Address(RVA = "0x28FBCA0", Offset = "0x28FA6A0", VA = "0x1828FBCA0")]
|
||||
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: 0x0600AE45 RID: 44613 RVA: 0x0028C5BC File Offset: 0x0028A7BC
|
||||
[Token(Token = "0x600AE45")]
|
||||
[Address(RVA = "0x28FBB70", Offset = "0x28FA570", VA = "0x1828FBB70")]
|
||||
public static RecipientEncryptedKey GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return RecipientEncryptedKey.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AE46 RID: 44614 RVA: 0x0028C5D8 File Offset: 0x0028A7D8
|
||||
[Token(Token = "0x600AE46")]
|
||||
[Address(RVA = "0x28FB8C0", Offset = "0x28FA2C0", VA = "0x1828FB8C0")]
|
||||
public static RecipientEncryptedKey GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE46)
|
||||
|
||||
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: 0x0600AE47 RID: 44615 RVA: 0x0028C638 File Offset: 0x0028A838
|
||||
[Token(Token = "0x600AE47")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public RecipientEncryptedKey(KeyAgreeRecipientIdentifier id, Asn1OctetString encryptedKey)
|
||||
{
|
||||
this.identifier = id;
|
||||
this.encryptedKey = encryptedKey;
|
||||
}
|
||||
|
||||
// Token: 0x17001BEE RID: 7150
|
||||
// (get) Token: 0x0600AE48 RID: 44616 RVA: 0x0028C65C File Offset: 0x0028A85C
|
||||
[Token(Token = "0x17001BEE")]
|
||||
public KeyAgreeRecipientIdentifier Identifier
|
||||
{
|
||||
[Token(Token = "0x600AE48")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.identifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BEF RID: 7151
|
||||
// (get) Token: 0x0600AE49 RID: 44617 RVA: 0x0028C670 File Offset: 0x0028A870
|
||||
[Token(Token = "0x17001BEF")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600AE49")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE4A RID: 44618 RVA: 0x0028C684 File Offset: 0x0028A884
|
||||
[Token(Token = "0x600AE4A")]
|
||||
[Address(RVA = "0x28FBB90", Offset = "0x28FA590", VA = "0x1828FBB90", 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: 0x0400727D RID: 29309
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400727D")]
|
||||
private readonly KeyAgreeRecipientIdentifier identifier;
|
||||
|
||||
// Token: 0x0400727E RID: 29310
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400727E")]
|
||||
private readonly Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
+129
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200195D RID: 6493
|
||||
[Token(Token = "0x200195D")]
|
||||
[StructLayout(3)]
|
||||
public class RecipientIdentifier : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AE4B RID: 44619 RVA: 0x0028C6CC File Offset: 0x0028A8CC
|
||||
[Token(Token = "0x600AE4B")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public RecipientIdentifier(IssuerAndSerialNumber id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE4C RID: 44620 RVA: 0x0028C6E8 File Offset: 0x0028A8E8
|
||||
[Token(Token = "0x600AE4C")]
|
||||
[Address(RVA = "0x28FC070", Offset = "0x28FAA70", VA = "0x1828FC070")]
|
||||
public RecipientIdentifier(Asn1OctetString id)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, id);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE4D RID: 44621 RVA: 0x0028C710 File Offset: 0x0028A910
|
||||
[Token(Token = "0x600AE4D")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public RecipientIdentifier(Asn1Object id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE4E RID: 44622 RVA: 0x0028C72C File Offset: 0x0028A92C
|
||||
[Token(Token = "0x600AE4E")]
|
||||
[Address(RVA = "0x28FBD90", Offset = "0x28FA790", VA = "0x1828FBD90")]
|
||||
public static RecipientIdentifier GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE4E)
|
||||
|
||||
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: 0x17001BF0 RID: 7152
|
||||
// (get) Token: 0x0600AE4F RID: 44623 RVA: 0x0028C784 File Offset: 0x0028A984
|
||||
[Token(Token = "0x17001BF0")]
|
||||
public bool IsTagged
|
||||
{
|
||||
[Token(Token = "0x600AE4F")]
|
||||
[Address(RVA = "0x28FC1D0", Offset = "0x28FABD0", VA = "0x1828FC1D0")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BF1 RID: 7153
|
||||
// (get) Token: 0x0600AE50 RID: 44624 RVA: 0x0028C7B0 File Offset: 0x0028A9B0
|
||||
[Token(Token = "0x17001BF1")]
|
||||
public Asn1Encodable ID
|
||||
{
|
||||
[Token(Token = "0x600AE50")]
|
||||
[Address(RVA = "0x28FC0F0", Offset = "0x28FAAF0", VA = "0x1828FC0F0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE50)
|
||||
|
||||
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: 0x0600AE51 RID: 44625 RVA: 0x0028C7E0 File Offset: 0x0028A9E0
|
||||
[Token(Token = "0x600AE51")]
|
||||
[Address(RVA = "0x52D760", Offset = "0x52C160", VA = "0x18052D760", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.id.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x0400727F RID: 29311
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400727F")]
|
||||
private Asn1Encodable id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200195E RID: 6494
|
||||
[Token(Token = "0x200195E")]
|
||||
[StructLayout(3)]
|
||||
public class RecipientInfo : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AE52 RID: 44626 RVA: 0x0028C800 File Offset: 0x0028AA00
|
||||
[Token(Token = "0x600AE52")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public RecipientInfo(KeyTransRecipientInfo info)
|
||||
{
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE53 RID: 44627 RVA: 0x0028C81C File Offset: 0x0028AA1C
|
||||
[Token(Token = "0x600AE53")]
|
||||
[Address(RVA = "0x28FC640", Offset = "0x28FB040", VA = "0x1828FC640")]
|
||||
public RecipientInfo(KeyAgreeRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 1, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE54 RID: 44628 RVA: 0x0028C844 File Offset: 0x0028AA44
|
||||
[Token(Token = "0x600AE54")]
|
||||
[Address(RVA = "0x28FC5C0", Offset = "0x28FAFC0", VA = "0x1828FC5C0")]
|
||||
public RecipientInfo(KekRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 2, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE55 RID: 44629 RVA: 0x0028C86C File Offset: 0x0028AA6C
|
||||
[Token(Token = "0x600AE55")]
|
||||
[Address(RVA = "0x28FC4C0", Offset = "0x28FAEC0", VA = "0x1828FC4C0")]
|
||||
public RecipientInfo(PasswordRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 3, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE56 RID: 44630 RVA: 0x0028C894 File Offset: 0x0028AA94
|
||||
[Token(Token = "0x600AE56")]
|
||||
[Address(RVA = "0x28FC540", Offset = "0x28FAF40", VA = "0x1828FC540")]
|
||||
public RecipientInfo(OtherRecipientInfo info)
|
||||
{
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 4, info);
|
||||
num = 0;
|
||||
this.info = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE57 RID: 44631 RVA: 0x0028C8BC File Offset: 0x0028AABC
|
||||
[Token(Token = "0x600AE57")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public RecipientInfo(Asn1Object info)
|
||||
{
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE58 RID: 44632 RVA: 0x0028C8D8 File Offset: 0x0028AAD8
|
||||
[Token(Token = "0x600AE58")]
|
||||
[Address(RVA = "0x28FC250", Offset = "0x28FAC50", VA = "0x1828FC250")]
|
||||
public static RecipientInfo GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE58)
|
||||
|
||||
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: 0x17001BF2 RID: 7154
|
||||
// (get) Token: 0x0600AE59 RID: 44633 RVA: 0x0028C91C File Offset: 0x0028AB1C
|
||||
[Token(Token = "0x17001BF2")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AE59")]
|
||||
[Address(RVA = "0x28FCA10", Offset = "0x28FB410", VA = "0x1828FCA10")]
|
||||
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: 0x17001BF3 RID: 7155
|
||||
// (get) Token: 0x0600AE5A RID: 44634 RVA: 0x0028C98C File Offset: 0x0028AB8C
|
||||
[Token(Token = "0x17001BF3")]
|
||||
public bool IsTagged
|
||||
{
|
||||
[Token(Token = "0x600AE5A")]
|
||||
[Address(RVA = "0x28FC990", Offset = "0x28FB390", VA = "0x1828FC990")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.info;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BF4 RID: 7156
|
||||
// (get) Token: 0x0600AE5B RID: 44635 RVA: 0x0028C9B8 File Offset: 0x0028ABB8
|
||||
[Token(Token = "0x17001BF4")]
|
||||
public Asn1Encodable Info
|
||||
{
|
||||
[Token(Token = "0x600AE5B")]
|
||||
[Address(RVA = "0x28FC6C0", Offset = "0x28FB0C0", VA = "0x1828FC6C0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE5B)
|
||||
|
||||
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: 0x0600AE5C RID: 44636 RVA: 0x0028CA60 File Offset: 0x0028AC60
|
||||
[Token(Token = "0x600AE5C")]
|
||||
[Address(RVA = "0x28FC490", Offset = "0x28FAE90", VA = "0x1828FC490")]
|
||||
private KekRecipientInfo GetKekInfo(Asn1TaggedObject o)
|
||||
{
|
||||
bool explicitly = o.explicitly;
|
||||
return KekRecipientInfo.GetInstance(Asn1Sequence.GetInstance(o, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600AE5D RID: 44637 RVA: 0x0028CA88 File Offset: 0x0028AC88
|
||||
[Token(Token = "0x600AE5D")]
|
||||
[Address(RVA = "0x52D760", Offset = "0x52C160", VA = "0x18052D760", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.info.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x04007280 RID: 29312
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007280")]
|
||||
internal Asn1Encodable info;
|
||||
}
|
||||
}
|
||||
+188
@@ -0,0 +1,188 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x0200195F RID: 6495
|
||||
[Token(Token = "0x200195F")]
|
||||
[StructLayout(3)]
|
||||
public class RecipientKeyIdentifier : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE5E RID: 44638 RVA: 0x0028CAA8 File Offset: 0x0028ACA8
|
||||
[Token(Token = "0x600AE5E")]
|
||||
[Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")]
|
||||
public RecipientKeyIdentifier(Asn1OctetString subjectKeyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
|
||||
{
|
||||
this.subjectKeyIdentifier = subjectKeyIdentifier;
|
||||
this.date = date;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE5F RID: 44639 RVA: 0x0028CAD0 File Offset: 0x0028ACD0
|
||||
[Token(Token = "0x600AE5F")]
|
||||
[Address(RVA = "0x28FCF90", Offset = "0x28FB990", VA = "0x1828FCF90")]
|
||||
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(subjectKeyIdentifier);
|
||||
int num = 0;
|
||||
this.subjectKeyIdentifier = derOctetString;
|
||||
this.date = num;
|
||||
this.other = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE60 RID: 44640 RVA: 0x0028CB04 File Offset: 0x0028AD04
|
||||
[Token(Token = "0x600AE60")]
|
||||
[Address(RVA = "0x28FD010", Offset = "0x28FBA10", VA = "0x1828FD010")]
|
||||
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(subjectKeyIdentifier);
|
||||
this.subjectKeyIdentifier = derOctetString;
|
||||
this.date = date;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE61 RID: 44641 RVA: 0x0028CB34 File Offset: 0x0028AD34
|
||||
[Token(Token = "0x600AE61")]
|
||||
[Address(RVA = "0x28FD0A0", Offset = "0x28FBAA0", VA = "0x1828FD0A0")]
|
||||
public RecipientKeyIdentifier(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE61)
|
||||
|
||||
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: 0x0600AE62 RID: 44642 RVA: 0x0028CBB4 File Offset: 0x0028ADB4
|
||||
[Token(Token = "0x600AE62")]
|
||||
[Address(RVA = "0x28FCDA0", Offset = "0x28FB7A0", VA = "0x1828FCDA0")]
|
||||
public static RecipientKeyIdentifier GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return RecipientKeyIdentifier.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600AE63 RID: 44643 RVA: 0x0028CBD0 File Offset: 0x0028ADD0
|
||||
[Token(Token = "0x600AE63")]
|
||||
[Address(RVA = "0x28FCBB0", Offset = "0x28FB5B0", VA = "0x1828FCBB0")]
|
||||
public static RecipientKeyIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE63)
|
||||
|
||||
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: 0x17001BF5 RID: 7157
|
||||
// (get) Token: 0x0600AE64 RID: 44644 RVA: 0x0028CC20 File Offset: 0x0028AE20
|
||||
[Token(Token = "0x17001BF5")]
|
||||
public Asn1OctetString SubjectKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600AE64")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.subjectKeyIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BF6 RID: 7158
|
||||
// (get) Token: 0x0600AE65 RID: 44645 RVA: 0x0028CC34 File Offset: 0x0028AE34
|
||||
[Token(Token = "0x17001BF6")]
|
||||
public DerGeneralizedTime Date
|
||||
{
|
||||
[Token(Token = "0x600AE65")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.date;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BF7 RID: 7159
|
||||
// (get) Token: 0x0600AE66 RID: 44646 RVA: 0x0028CC48 File Offset: 0x0028AE48
|
||||
[Token(Token = "0x17001BF7")]
|
||||
public OtherKeyAttribute OtherKeyAttribute
|
||||
{
|
||||
[Token(Token = "0x600AE66")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.other;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE67 RID: 44647 RVA: 0x0028CC5C File Offset: 0x0028AE5C
|
||||
[Token(Token = "0x600AE67")]
|
||||
[Address(RVA = "0x28FCDC0", Offset = "0x28FB7C0", VA = "0x1828FCDC0", 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: 0x04007281 RID: 29313
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007281")]
|
||||
private Asn1OctetString subjectKeyIdentifier;
|
||||
|
||||
// Token: 0x04007282 RID: 29314
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007282")]
|
||||
private DerGeneralizedTime date;
|
||||
|
||||
// Token: 0x04007283 RID: 29315
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007283")]
|
||||
private OtherKeyAttribute other;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001960 RID: 6496
|
||||
[Token(Token = "0x2001960")]
|
||||
[StructLayout(3)]
|
||||
public class ScvpReqRes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE68 RID: 44648 RVA: 0x0028CCD4 File Offset: 0x0028AED4
|
||||
[Token(Token = "0x600AE68")]
|
||||
[Address(RVA = "0x28FF230", Offset = "0x28FDC30", VA = "0x1828FF230")]
|
||||
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: 0x0600AE69 RID: 44649 RVA: 0x0028CD60 File Offset: 0x0028AF60
|
||||
[Token(Token = "0x600AE69")]
|
||||
[Address(RVA = "0x28FF620", Offset = "0x28FE020", VA = "0x1828FF620")]
|
||||
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: 0x0600AE6A RID: 44650 RVA: 0x0028CDC4 File Offset: 0x0028AFC4
|
||||
[Token(Token = "0x600AE6A")]
|
||||
[Address(RVA = "0x28FF750", Offset = "0x28FE150", VA = "0x1828FF750")]
|
||||
public ScvpReqRes(ContentInfo response)
|
||||
{
|
||||
this.request = (ulong)0L;
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE6B RID: 44651 RVA: 0x0028CDE8 File Offset: 0x0028AFE8
|
||||
[Token(Token = "0x600AE6B")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public ScvpReqRes(ContentInfo request, ContentInfo response)
|
||||
{
|
||||
this.request = request;
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
// Token: 0x17001BF8 RID: 7160
|
||||
// (get) Token: 0x0600AE6C RID: 44652 RVA: 0x0028CE0C File Offset: 0x0028B00C
|
||||
[Token(Token = "0x17001BF8")]
|
||||
public virtual ContentInfo Request
|
||||
{
|
||||
[Token(Token = "0x600AE6C")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.request;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BF9 RID: 7161
|
||||
// (get) Token: 0x0600AE6D RID: 44653 RVA: 0x0028CE20 File Offset: 0x0028B020
|
||||
[Token(Token = "0x17001BF9")]
|
||||
public virtual ContentInfo Response
|
||||
{
|
||||
[Token(Token = "0x600AE6D")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.response;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE6E RID: 44654 RVA: 0x0028CE34 File Offset: 0x0028B034
|
||||
[Token(Token = "0x600AE6E")]
|
||||
[Address(RVA = "0x28FF440", Offset = "0x28FDE40", VA = "0x1828FF440", 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: 0x04007284 RID: 29316
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007284")]
|
||||
private readonly ContentInfo request;
|
||||
|
||||
// Token: 0x04007285 RID: 29317
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007285")]
|
||||
private readonly ContentInfo response;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,455 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001961 RID: 6497
|
||||
[Token(Token = "0x2001961")]
|
||||
[StructLayout(3)]
|
||||
public class SignedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE6F RID: 44655 RVA: 0x0028CEB0 File Offset: 0x0028B0B0
|
||||
[Token(Token = "0x600AE6F")]
|
||||
[Address(RVA = "0x2900680", Offset = "0x28FF080", VA = "0x182900680")]
|
||||
public static SignedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE6F)
|
||||
|
||||
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: 0x0600AE70 RID: 44656 RVA: 0x0028CF00 File Offset: 0x0028B100
|
||||
[Token(Token = "0x600AE70")]
|
||||
[Address(RVA = "0x2901180", Offset = "0x28FFB80", VA = "0x182901180")]
|
||||
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: 0x0600AE71 RID: 44657 RVA: 0x0028CF68 File Offset: 0x0028B168
|
||||
[Token(Token = "0x600AE71")]
|
||||
[Address(RVA = "0x28FFFF0", Offset = "0x28FE9F0", VA = "0x1828FFFF0")]
|
||||
private DerInteger CalculateVersion(DerObjectIdentifier contentOid, Asn1Set certs, Asn1Set crls, Asn1Set signerInfs)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
if (certs == 0)
|
||||
{
|
||||
goto IL_44;
|
||||
}
|
||||
IEnumerator enumerator = certs.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
while (enumerator == 0)
|
||||
{
|
||||
}
|
||||
while (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_92;
|
||||
}
|
||||
if (enumerator != (ulong)1L && enumerator != (ulong)2L)
|
||||
{
|
||||
while (enumerator != (ulong)3L)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
if ((ulong)1L == 0UL)
|
||||
{
|
||||
goto IL_44;
|
||||
}
|
||||
goto IL_8C;
|
||||
}
|
||||
IL_5A:
|
||||
if (num != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
IL_44:
|
||||
if (crls == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IEnumerator enumerator2 = crls.GetEnumerator();
|
||||
if (enumerator2 != 0)
|
||||
{
|
||||
while (enumerator2 == 0)
|
||||
{
|
||||
}
|
||||
goto IL_5A;
|
||||
}
|
||||
goto IL_5A;
|
||||
}
|
||||
DerObjectIdentifier data = CmsObjectIdentifiers.Data;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
return SignedData.Version1;
|
||||
}
|
||||
return SignedData.Version3;
|
||||
IL_8C:
|
||||
return SignedData.Version5;
|
||||
IL_92:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AE72 RID: 44658 RVA: 0x0028D014 File Offset: 0x0028B214
|
||||
[Token(Token = "0x600AE72")]
|
||||
[Address(RVA = "0x29004C0", Offset = "0x28FEEC0", VA = "0x1829004C0")]
|
||||
private bool CheckForVersion3(Asn1Set signerInfs)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
int intValue;
|
||||
if (signerInfs.GetEnumerator() != 0)
|
||||
{
|
||||
SignerInfo signerInfo;
|
||||
intValue = signerInfo.version.Value.IntValue;
|
||||
while (intValue != 3)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (intValue != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)71L)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)69L)
|
||||
{
|
||||
goto IL_44;
|
||||
}
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_44;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
IL_44:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AE73 RID: 44659 RVA: 0x0028D084 File Offset: 0x0028B284
|
||||
[Token(Token = "0x600AE73")]
|
||||
[Address(RVA = "0x2900DF0", Offset = "0x28FF7F0", VA = "0x182900DF0")]
|
||||
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: 0x17001BFA RID: 7162
|
||||
// (get) Token: 0x0600AE74 RID: 44660 RVA: 0x0028D148 File Offset: 0x0028B348
|
||||
[Token(Token = "0x17001BFA")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AE74")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BFB RID: 7163
|
||||
// (get) Token: 0x0600AE75 RID: 44661 RVA: 0x0028D15C File Offset: 0x0028B35C
|
||||
[Token(Token = "0x17001BFB")]
|
||||
public Asn1Set DigestAlgorithms
|
||||
{
|
||||
[Token(Token = "0x600AE75")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithms;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BFC RID: 7164
|
||||
// (get) Token: 0x0600AE76 RID: 44662 RVA: 0x0028D170 File Offset: 0x0028B370
|
||||
[Token(Token = "0x17001BFC")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600AE76")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.contentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BFD RID: 7165
|
||||
// (get) Token: 0x0600AE77 RID: 44663 RVA: 0x0028D184 File Offset: 0x0028B384
|
||||
[Token(Token = "0x17001BFD")]
|
||||
public Asn1Set Certificates
|
||||
{
|
||||
[Token(Token = "0x600AE77")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.certificates;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BFE RID: 7166
|
||||
// (get) Token: 0x0600AE78 RID: 44664 RVA: 0x0028D198 File Offset: 0x0028B398
|
||||
[Token(Token = "0x17001BFE")]
|
||||
public Asn1Set CRLs
|
||||
{
|
||||
[Token(Token = "0x600AE78")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.crls;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BFF RID: 7167
|
||||
// (get) Token: 0x0600AE79 RID: 44665 RVA: 0x0028D1AC File Offset: 0x0028B3AC
|
||||
[Token(Token = "0x17001BFF")]
|
||||
public Asn1Set SignerInfos
|
||||
{
|
||||
[Token(Token = "0x600AE79")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.signerInfos;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE7A RID: 44666 RVA: 0x0028D1C0 File Offset: 0x0028B3C0
|
||||
[Token(Token = "0x600AE7A")]
|
||||
[Address(RVA = "0x2900870", Offset = "0x28FF270", VA = "0x182900870", 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: 0x04007286 RID: 29318
|
||||
[Token(Token = "0x4007286")]
|
||||
private static readonly DerInteger Version1 = new DerInteger(1);
|
||||
|
||||
// Token: 0x04007287 RID: 29319
|
||||
[Token(Token = "0x4007287")]
|
||||
private static readonly DerInteger Version3 = new DerInteger(3);
|
||||
|
||||
// Token: 0x04007288 RID: 29320
|
||||
[Token(Token = "0x4007288")]
|
||||
private static readonly DerInteger Version4 = new DerInteger(4);
|
||||
|
||||
// Token: 0x04007289 RID: 29321
|
||||
[Token(Token = "0x4007289")]
|
||||
private static readonly DerInteger Version5 = new DerInteger(5);
|
||||
|
||||
// Token: 0x0400728A RID: 29322
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400728A")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x0400728B RID: 29323
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400728B")]
|
||||
private readonly Asn1Set digestAlgorithms;
|
||||
|
||||
// Token: 0x0400728C RID: 29324
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400728C")]
|
||||
private readonly ContentInfo contentInfo;
|
||||
|
||||
// Token: 0x0400728D RID: 29325
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400728D")]
|
||||
private readonly Asn1Set certificates;
|
||||
|
||||
// Token: 0x0400728E RID: 29326
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400728E")]
|
||||
private readonly Asn1Set crls;
|
||||
|
||||
// Token: 0x0400728F RID: 29327
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400728F")]
|
||||
private readonly Asn1Set signerInfos;
|
||||
|
||||
// Token: 0x04007290 RID: 29328
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007290")]
|
||||
private readonly bool certsBer;
|
||||
|
||||
// Token: 0x04007291 RID: 29329
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x41")]
|
||||
[Token(Token = "0x4007291")]
|
||||
private readonly bool crlsBer;
|
||||
}
|
||||
}
|
||||
+182
@@ -0,0 +1,182 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001962 RID: 6498
|
||||
[Token(Token = "0x2001962")]
|
||||
[StructLayout(3)]
|
||||
public class SignedDataParser
|
||||
{
|
||||
// Token: 0x0600AE7C RID: 44668 RVA: 0x0028D33C File Offset: 0x0028B53C
|
||||
[Token(Token = "0x600AE7C")]
|
||||
[Address(RVA = "0x28FFC30", Offset = "0x28FE630", VA = "0x1828FFC30")]
|
||||
public static SignedDataParser GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE7C)
|
||||
|
||||
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: 0x0600AE7D RID: 44669 RVA: 0x0028D380 File Offset: 0x0028B580
|
||||
[Token(Token = "0x600AE7D")]
|
||||
[Address(RVA = "0x28FFF20", Offset = "0x28FE920", VA = "0x1828FFF20")]
|
||||
public SignedDataParser(Asn1SequenceParser seq)
|
||||
{
|
||||
this._seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x17001C00 RID: 7168
|
||||
// (get) Token: 0x0600AE7E RID: 44670 RVA: 0x0028D3B0 File Offset: 0x0028B5B0
|
||||
[Token(Token = "0x17001C00")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AE7E")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this._version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE7F RID: 44671 RVA: 0x0028D3C4 File Offset: 0x0028B5C4
|
||||
[Token(Token = "0x600AE7F")]
|
||||
[Address(RVA = "0x28FFB00", Offset = "0x28FE500", VA = "0x1828FFB00")]
|
||||
public Asn1SetParser GetDigestAlgorithms()
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AE80 RID: 44672 RVA: 0x0028D3E0 File Offset: 0x0028B5E0
|
||||
[Token(Token = "0x600AE80")]
|
||||
[Address(RVA = "0x28FFB80", Offset = "0x28FE580", VA = "0x1828FFB80")]
|
||||
public ContentInfoParser GetEncapContentInfo()
|
||||
{
|
||||
ContentInfoParser contentInfoParser;
|
||||
do
|
||||
{
|
||||
Asn1SequenceParser seq = this._seq;
|
||||
if (this == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (contentInfoParser == 0);
|
||||
return contentInfoParser;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE81 RID: 44673 RVA: 0x0028D404 File Offset: 0x0028B604
|
||||
[Token(Token = "0x600AE81")]
|
||||
[Address(RVA = "0x28FF780", Offset = "0x28FE180", VA = "0x1828FF780")]
|
||||
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: 0x0600AE82 RID: 44674 RVA: 0x0028D44C File Offset: 0x0028B64C
|
||||
[Token(Token = "0x600AE82")]
|
||||
[Address(RVA = "0x28FF920", Offset = "0x28FE320", VA = "0x1828FF920")]
|
||||
public Asn1SetParser GetCrls()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE82)
|
||||
|
||||
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: 0x0600AE83 RID: 44675 RVA: 0x0028D4CC File Offset: 0x0028B6CC
|
||||
[Token(Token = "0x600AE83")]
|
||||
[Address(RVA = "0x28FFE50", Offset = "0x28FE850", VA = "0x1828FFE50")]
|
||||
public Asn1SetParser GetSignerInfos()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE83)
|
||||
|
||||
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: 0x04007292 RID: 29330
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007292")]
|
||||
private Asn1SequenceParser _seq;
|
||||
|
||||
// Token: 0x04007293 RID: 29331
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007293")]
|
||||
private DerInteger _version;
|
||||
|
||||
// Token: 0x04007294 RID: 29332
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007294")]
|
||||
private object _nextObject;
|
||||
|
||||
// Token: 0x04007295 RID: 29333
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007295")]
|
||||
private bool _certsCalled;
|
||||
|
||||
// Token: 0x04007296 RID: 29334
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x4007296")]
|
||||
private bool _crlsCalled;
|
||||
}
|
||||
}
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001963 RID: 6499
|
||||
[Token(Token = "0x2001963")]
|
||||
[StructLayout(3)]
|
||||
public class SignerIdentifier : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AE84 RID: 44676 RVA: 0x0028D510 File Offset: 0x0028B710
|
||||
[Token(Token = "0x600AE84")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public SignerIdentifier(IssuerAndSerialNumber id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE85 RID: 44677 RVA: 0x0028D52C File Offset: 0x0028B72C
|
||||
[Token(Token = "0x600AE85")]
|
||||
[Address(RVA = "0x1EE12B0", Offset = "0x1EDFCB0", VA = "0x181EE12B0")]
|
||||
public SignerIdentifier(Asn1OctetString id)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, id);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.id = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE86 RID: 44678 RVA: 0x0028D554 File Offset: 0x0028B754
|
||||
[Token(Token = "0x600AE86")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public SignerIdentifier(Asn1Object id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE87 RID: 44679 RVA: 0x0028D570 File Offset: 0x0028B770
|
||||
[Token(Token = "0x600AE87")]
|
||||
[Address(RVA = "0x1EE0FD0", Offset = "0x1EDF9D0", VA = "0x181EE0FD0")]
|
||||
public static SignerIdentifier GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE87)
|
||||
|
||||
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: 0x17001C01 RID: 7169
|
||||
// (get) Token: 0x0600AE88 RID: 44680 RVA: 0x0028D5C8 File Offset: 0x0028B7C8
|
||||
[Token(Token = "0x17001C01")]
|
||||
public bool IsTagged
|
||||
{
|
||||
[Token(Token = "0x600AE88")]
|
||||
[Address(RVA = "0x1EE1400", Offset = "0x1EDFE00", VA = "0x181EE1400")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.id;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C02 RID: 7170
|
||||
// (get) Token: 0x0600AE89 RID: 44681 RVA: 0x0028D5F4 File Offset: 0x0028B7F4
|
||||
[Token(Token = "0x17001C02")]
|
||||
public Asn1Encodable ID
|
||||
{
|
||||
[Token(Token = "0x600AE89")]
|
||||
[Address(RVA = "0x1EE1330", Offset = "0x1EDFD30", VA = "0x181EE1330")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
do
|
||||
{
|
||||
asn1Encodable = this.id;
|
||||
}
|
||||
while (asn1Encodable != 0 && asn1Encodable != 0 && asn1Encodable != 0 && asn1Encodable == 0);
|
||||
return asn1Encodable;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE8A RID: 44682 RVA: 0x0028D620 File Offset: 0x0028B820
|
||||
[Token(Token = "0x600AE8A")]
|
||||
[Address(RVA = "0x52D760", Offset = "0x52C160", VA = "0x18052D760", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.id.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x04007297 RID: 29335
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007297")]
|
||||
private Asn1Encodable id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,320 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001964 RID: 6500
|
||||
[Token(Token = "0x2001964")]
|
||||
[StructLayout(3)]
|
||||
public class SignerInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE8B RID: 44683 RVA: 0x0028D640 File Offset: 0x0028B840
|
||||
[Token(Token = "0x600AE8B")]
|
||||
[Address(RVA = "0x1EE1480", Offset = "0x1EDFE80", VA = "0x181EE1480")]
|
||||
public static SignerInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE8B)
|
||||
|
||||
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: 0x0600AE8C RID: 44684 RVA: 0x0028D694 File Offset: 0x0028B894
|
||||
[Token(Token = "0x600AE8C")]
|
||||
[Address(RVA = "0x1EE1A60", Offset = "0x1EE0460", VA = "0x181EE1A60")]
|
||||
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: 0x0600AE8D RID: 44685 RVA: 0x0028D6EC File Offset: 0x0028B8EC
|
||||
[Token(Token = "0x600AE8D")]
|
||||
[Address(RVA = "0x1EE1E70", Offset = "0x1EE0870", VA = "0x181EE1E70")]
|
||||
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: 0x0600AE8E RID: 44686 RVA: 0x0028D74C File Offset: 0x0028B94C
|
||||
[Token(Token = "0x600AE8E")]
|
||||
[Address(RVA = "0x1EE1B40", Offset = "0x1EE0540", VA = "0x181EE1B40")]
|
||||
[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: 0x17001C03 RID: 7171
|
||||
// (get) Token: 0x0600AE8F RID: 44687 RVA: 0x0028D804 File Offset: 0x0028BA04
|
||||
[Token(Token = "0x17001C03")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AE8F")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C04 RID: 7172
|
||||
// (get) Token: 0x0600AE90 RID: 44688 RVA: 0x0028D818 File Offset: 0x0028BA18
|
||||
[Token(Token = "0x17001C04")]
|
||||
public SignerIdentifier SignerID
|
||||
{
|
||||
[Token(Token = "0x600AE90")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.sid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C05 RID: 7173
|
||||
// (get) Token: 0x0600AE91 RID: 44689 RVA: 0x0028D82C File Offset: 0x0028BA2C
|
||||
[Token(Token = "0x17001C05")]
|
||||
public Asn1Set AuthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600AE91")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.authenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C06 RID: 7174
|
||||
// (get) Token: 0x0600AE92 RID: 44690 RVA: 0x0028D840 File Offset: 0x0028BA40
|
||||
[Token(Token = "0x17001C06")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600AE92")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.digAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C07 RID: 7175
|
||||
// (get) Token: 0x0600AE93 RID: 44691 RVA: 0x0028D854 File Offset: 0x0028BA54
|
||||
[Token(Token = "0x17001C07")]
|
||||
public Asn1OctetString EncryptedDigest
|
||||
{
|
||||
[Token(Token = "0x600AE93")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C08 RID: 7176
|
||||
// (get) Token: 0x0600AE94 RID: 44692 RVA: 0x0028D868 File Offset: 0x0028BA68
|
||||
[Token(Token = "0x17001C08")]
|
||||
public AlgorithmIdentifier DigestEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600AE94")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.digEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C09 RID: 7177
|
||||
// (get) Token: 0x0600AE95 RID: 44693 RVA: 0x0028D87C File Offset: 0x0028BA7C
|
||||
[Token(Token = "0x17001C09")]
|
||||
public Asn1Set UnauthenticatedAttributes
|
||||
{
|
||||
[Token(Token = "0x600AE95")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get
|
||||
{
|
||||
return this.unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AE96 RID: 44694 RVA: 0x0028D890 File Offset: 0x0028BA90
|
||||
[Token(Token = "0x600AE96")]
|
||||
[Address(RVA = "0x1EE1680", Offset = "0x1EE0080", VA = "0x181EE1680", 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: 0x04007298 RID: 29336
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007298")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007299 RID: 29337
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007299")]
|
||||
private SignerIdentifier sid;
|
||||
|
||||
// Token: 0x0400729A RID: 29338
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400729A")]
|
||||
private AlgorithmIdentifier digAlgorithm;
|
||||
|
||||
// Token: 0x0400729B RID: 29339
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400729B")]
|
||||
private Asn1Set authenticatedAttributes;
|
||||
|
||||
// Token: 0x0400729C RID: 29340
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400729C")]
|
||||
private AlgorithmIdentifier digEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x0400729D RID: 29341
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400729D")]
|
||||
private Asn1OctetString encryptedDigest;
|
||||
|
||||
// Token: 0x0400729E RID: 29342
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400729E")]
|
||||
private Asn1Set unauthenticatedAttributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001965 RID: 6501
|
||||
[Token(Token = "0x2001965")]
|
||||
[StructLayout(3)]
|
||||
public class Time : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AE97 RID: 44695 RVA: 0x0028D9BC File Offset: 0x0028BBBC
|
||||
[Token(Token = "0x600AE97")]
|
||||
[Address(RVA = "0x1EE3DE0", Offset = "0x1EE27E0", VA = "0x181EE3DE0")]
|
||||
public static Time GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return Time.GetInstance(obj.GetObject());
|
||||
}
|
||||
|
||||
// Token: 0x0600AE98 RID: 44696 RVA: 0x0028D9DC File Offset: 0x0028BBDC
|
||||
[Token(Token = "0x600AE98")]
|
||||
[Address(RVA = "0x1EE3F50", Offset = "0x1EE2950", VA = "0x181EE3F50")]
|
||||
public Time(Asn1Object time)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE98)
|
||||
|
||||
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: 0x0600AE99 RID: 44697 RVA: 0x0028DA1C File Offset: 0x0028BC1C
|
||||
[Token(Token = "0x600AE99")]
|
||||
[Address(RVA = "0x1EE3E10", Offset = "0x1EE2810", VA = "0x181EE3E10")]
|
||||
public Time(DateTime date)
|
||||
{
|
||||
CultureInfo invariantCulture = CultureInfo.InvariantCulture;
|
||||
int num = 0;
|
||||
string text;
|
||||
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: 0x0600AE9A RID: 44698 RVA: 0x0028DA88 File Offset: 0x0028BC88
|
||||
[Token(Token = "0x600AE9A")]
|
||||
[Address(RVA = "0x1EE3B50", Offset = "0x1EE2550", VA = "0x181EE3B50")]
|
||||
public static Time GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE9A)
|
||||
|
||||
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: 0x17001C0A RID: 7178
|
||||
// (get) Token: 0x0600AE9B RID: 44699 RVA: 0x0028DAE8 File Offset: 0x0028BCE8
|
||||
[Token(Token = "0x17001C0A")]
|
||||
public string TimeString
|
||||
{
|
||||
[Token(Token = "0x600AE9B")]
|
||||
[Address(RVA = "0x1EE42B0", Offset = "0x1EE2CB0", VA = "0x181EE42B0")]
|
||||
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: 0x17001C0B RID: 7179
|
||||
// (get) Token: 0x0600AE9C RID: 44700 RVA: 0x0028DB28 File Offset: 0x0028BD28
|
||||
[Token(Token = "0x17001C0B")]
|
||||
public DateTime Date
|
||||
{
|
||||
[Token(Token = "0x600AE9C")]
|
||||
[Address(RVA = "0x1EE4080", Offset = "0x1EE2A80", VA = "0x181EE4080")]
|
||||
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: 0x0600AE9D RID: 44701 RVA: 0x0028DB80 File Offset: 0x0028BD80
|
||||
[Token(Token = "0x600AE9D")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.time;
|
||||
}
|
||||
|
||||
// Token: 0x0400729F RID: 29343
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400729F")]
|
||||
private readonly Asn1Object time;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001966 RID: 6502
|
||||
[Token(Token = "0x2001966")]
|
||||
[StructLayout(3)]
|
||||
public class TimeStampAndCrl : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AE9E RID: 44702 RVA: 0x0028DB94 File Offset: 0x0028BD94
|
||||
[Token(Token = "0x600AE9E")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public TimeStampAndCrl(ContentInfo timeStamp)
|
||||
{
|
||||
this.timeStamp = timeStamp;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE9F RID: 44703 RVA: 0x0028DBB0 File Offset: 0x0028BDB0
|
||||
[Token(Token = "0x600AE9F")]
|
||||
[Address(RVA = "0x1EE2840", Offset = "0x1EE1240", VA = "0x181EE2840")]
|
||||
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: 0x0600AEA0 RID: 44704 RVA: 0x0028DBEC File Offset: 0x0028BDEC
|
||||
[Token(Token = "0x600AEA0")]
|
||||
[Address(RVA = "0x1EE2560", Offset = "0x1EE0F60", VA = "0x181EE2560")]
|
||||
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: 0x17001C0C RID: 7180
|
||||
// (get) Token: 0x0600AEA1 RID: 44705 RVA: 0x0028DC44 File Offset: 0x0028BE44
|
||||
[Token(Token = "0x17001C0C")]
|
||||
public virtual ContentInfo TimeStampToken
|
||||
{
|
||||
[Token(Token = "0x600AEA1")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.timeStamp;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C0D RID: 7181
|
||||
// (get) Token: 0x0600AEA2 RID: 44706 RVA: 0x0028DC58 File Offset: 0x0028BE58
|
||||
[Token(Token = "0x17001C0D")]
|
||||
public virtual CertificateList Crl
|
||||
{
|
||||
[Token(Token = "0x600AEA2")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.crl;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEA3 RID: 44707 RVA: 0x0028DC6C File Offset: 0x0028BE6C
|
||||
[Token(Token = "0x600AEA3")]
|
||||
[Address(RVA = "0x1EE26D0", Offset = "0x1EE10D0", VA = "0x181EE26D0", 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: 0x040072A0 RID: 29344
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072A0")]
|
||||
private ContentInfo timeStamp;
|
||||
|
||||
// Token: 0x040072A1 RID: 29345
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072A1")]
|
||||
private CertificateList crl;
|
||||
}
|
||||
}
|
||||
+187
@@ -0,0 +1,187 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001967 RID: 6503
|
||||
[Token(Token = "0x2001967")]
|
||||
[StructLayout(3)]
|
||||
public class TimeStampTokenEvidence : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEA4 RID: 44708 RVA: 0x0028DCCC File Offset: 0x0028BECC
|
||||
[Token(Token = "0x600AEA4")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl[] timeStampAndCrls)
|
||||
{
|
||||
this.timeStampAndCrls = timeStampAndCrls;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEA5 RID: 44709 RVA: 0x0028DCE8 File Offset: 0x0028BEE8
|
||||
[Token(Token = "0x600AEA5")]
|
||||
[Address(RVA = "0x1EE2FC0", Offset = "0x1EE19C0", VA = "0x181EE2FC0")]
|
||||
public TimeStampTokenEvidence(TimeStampAndCrl timeStampAndCrl)
|
||||
{
|
||||
TimeStampAndCrl[] array = new TimeStampAndCrl[1];
|
||||
if (timeStampAndCrl != 0)
|
||||
{
|
||||
}
|
||||
array[0] = timeStampAndCrl;
|
||||
this.timeStampAndCrls = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEA6 RID: 44710 RVA: 0x0028DD1C File Offset: 0x0028BF1C
|
||||
[Token(Token = "0x600AEA6")]
|
||||
[Address(RVA = "0x1EE2BB0", Offset = "0x1EE15B0", VA = "0x181EE2BB0")]
|
||||
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_BB;
|
||||
}
|
||||
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_A3;
|
||||
}
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = num;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_A3:
|
||||
throw new ArrayTypeMismatchException();
|
||||
IL_BB:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AEA7 RID: 44711 RVA: 0x0028DDEC File Offset: 0x0028BFEC
|
||||
[Token(Token = "0x600AEA7")]
|
||||
[Address(RVA = "0x1EE29D0", Offset = "0x1EE13D0", VA = "0x181EE29D0")]
|
||||
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: 0x0600AEA8 RID: 44712 RVA: 0x0028DE28 File Offset: 0x0028C028
|
||||
[Token(Token = "0x600AEA8")]
|
||||
[Address(RVA = "0x1EE28D0", Offset = "0x1EE12D0", VA = "0x181EE28D0")]
|
||||
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: 0x0600AEA9 RID: 44713 RVA: 0x0028DE5C File Offset: 0x0028C05C
|
||||
[Token(Token = "0x600AEA9")]
|
||||
[Address(RVA = "0x1EE2B30", Offset = "0x1EE1530", VA = "0x181EE2B30", Slot = "6")]
|
||||
public virtual TimeStampAndCrl[] ToTimeStampAndCrlArray()
|
||||
{
|
||||
TimeStampAndCrl[] array = this.timeStampAndCrls;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AEAA RID: 44714 RVA: 0x0028DE78 File Offset: 0x0028C078
|
||||
[Token(Token = "0x600AEAA")]
|
||||
[Address(RVA = "0x1EE2AD0", Offset = "0x1EE14D0", VA = "0x181EE2AD0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEAA)
|
||||
|
||||
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: 0x040072A2 RID: 29346
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072A2")]
|
||||
private TimeStampAndCrl[] timeStampAndCrls;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,202 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001968 RID: 6504
|
||||
[Token(Token = "0x2001968")]
|
||||
[StructLayout(3)]
|
||||
public class TimeStampedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEAB RID: 44715 RVA: 0x0028DE90 File Offset: 0x0028C090
|
||||
[Token(Token = "0x600AEAB")]
|
||||
[Address(RVA = "0x1EE3820", Offset = "0x1EE2220", VA = "0x181EE3820")]
|
||||
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: 0x0600AEAC RID: 44716 RVA: 0x0028DED0 File Offset: 0x0028C0D0
|
||||
[Token(Token = "0x600AEAC")]
|
||||
[Address(RVA = "0x1EE38C0", Offset = "0x1EE22C0", VA = "0x181EE38C0")]
|
||||
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: 0x0600AEAD RID: 44717 RVA: 0x0028DF88 File Offset: 0x0028C188
|
||||
[Token(Token = "0x600AEAD")]
|
||||
[Address(RVA = "0x1EE3490", Offset = "0x1EE1E90", VA = "0x181EE3490")]
|
||||
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: 0x17001C0E RID: 7182
|
||||
// (get) Token: 0x0600AEAE RID: 44718 RVA: 0x0028DFBC File Offset: 0x0028C1BC
|
||||
[Token(Token = "0x17001C0E")]
|
||||
public virtual DerIA5String DataUri
|
||||
{
|
||||
[Token(Token = "0x600AEAE")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.dataUri;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C0F RID: 7183
|
||||
// (get) Token: 0x0600AEAF RID: 44719 RVA: 0x0028DFD0 File Offset: 0x0028C1D0
|
||||
[Token(Token = "0x17001C0F")]
|
||||
public MetaData MetaData
|
||||
{
|
||||
[Token(Token = "0x600AEAF")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.metaData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C10 RID: 7184
|
||||
// (get) Token: 0x0600AEB0 RID: 44720 RVA: 0x0028DFE4 File Offset: 0x0028C1E4
|
||||
[Token(Token = "0x17001C10")]
|
||||
public Asn1OctetString Content
|
||||
{
|
||||
[Token(Token = "0x600AEB0")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C11 RID: 7185
|
||||
// (get) Token: 0x0600AEB1 RID: 44721 RVA: 0x0028DFF8 File Offset: 0x0028C1F8
|
||||
[Token(Token = "0x17001C11")]
|
||||
public Evidence TemporalEvidence
|
||||
{
|
||||
[Token(Token = "0x600AEB1")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.temporalEvidence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEB2 RID: 44722 RVA: 0x0028E00C File Offset: 0x0028C20C
|
||||
[Token(Token = "0x600AEB2")]
|
||||
[Address(RVA = "0x1EE3590", Offset = "0x1EE1F90", VA = "0x181EE3590", 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: 0x040072A3 RID: 29347
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072A3")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040072A4 RID: 29348
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072A4")]
|
||||
private DerIA5String dataUri;
|
||||
|
||||
// Token: 0x040072A5 RID: 29349
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072A5")]
|
||||
private MetaData metaData;
|
||||
|
||||
// Token: 0x040072A6 RID: 29350
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40072A6")]
|
||||
private Asn1OctetString content;
|
||||
|
||||
// Token: 0x040072A7 RID: 29351
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40072A7")]
|
||||
private Evidence temporalEvidence;
|
||||
}
|
||||
}
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001969 RID: 6505
|
||||
[Token(Token = "0x2001969")]
|
||||
[StructLayout(3)]
|
||||
public class TimeStampedDataParser
|
||||
{
|
||||
// Token: 0x0600AEB3 RID: 44723 RVA: 0x0028E0C0 File Offset: 0x0028C2C0
|
||||
[Token(Token = "0x600AEB3")]
|
||||
[Address(RVA = "0x1EE32B0", Offset = "0x1EE1CB0", VA = "0x181EE32B0")]
|
||||
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: 0x0600AEB4 RID: 44724 RVA: 0x0028E130 File Offset: 0x0028C330
|
||||
[Token(Token = "0x600AEB4")]
|
||||
[Address(RVA = "0x1EE3070", Offset = "0x1EE1A70", VA = "0x181EE3070")]
|
||||
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: 0x17001C12 RID: 7186
|
||||
// (get) Token: 0x0600AEB5 RID: 44725 RVA: 0x0028E15C File Offset: 0x0028C35C
|
||||
[Token(Token = "0x17001C12")]
|
||||
public virtual DerIA5String DataUri
|
||||
{
|
||||
[Token(Token = "0x600AEB5")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.dataUri;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C13 RID: 7187
|
||||
// (get) Token: 0x0600AEB6 RID: 44726 RVA: 0x0028E170 File Offset: 0x0028C370
|
||||
[Token(Token = "0x17001C13")]
|
||||
public virtual MetaData MetaData
|
||||
{
|
||||
[Token(Token = "0x600AEB6")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.metaData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C14 RID: 7188
|
||||
// (get) Token: 0x0600AEB7 RID: 44727 RVA: 0x0028E184 File Offset: 0x0028C384
|
||||
[Token(Token = "0x17001C14")]
|
||||
public virtual Asn1OctetStringParser Content
|
||||
{
|
||||
[Token(Token = "0x600AEB7")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEB8 RID: 44728 RVA: 0x0028E198 File Offset: 0x0028C398
|
||||
[Token(Token = "0x600AEB8")]
|
||||
[Address(RVA = "0x1EE3230", Offset = "0x1EE1C30", VA = "0x181EE3230", 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: 0x040072A8 RID: 29352
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072A8")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040072A9 RID: 29353
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072A9")]
|
||||
private DerIA5String dataUri;
|
||||
|
||||
// Token: 0x040072AA RID: 29354
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072AA")]
|
||||
private MetaData metaData;
|
||||
|
||||
// Token: 0x040072AB RID: 29355
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40072AB")]
|
||||
private Asn1OctetStringParser content;
|
||||
|
||||
// Token: 0x040072AC RID: 29356
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40072AC")]
|
||||
private Evidence temporalEvidence;
|
||||
|
||||
// Token: 0x040072AD RID: 29357
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40072AD")]
|
||||
private Asn1SequenceParser parser;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user