This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
@@ -0,0 +1,131 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E84 RID: 7812
[Token(Token = "0x2001E84")]
public class AttributePkcs : Asn1Encodable
{
// Token: 0x0600C566 RID: 50534 RVA: 0x002D1074 File Offset: 0x002CF274
[Token(Token = "0x600C566")]
[Address(RVA = "0x2BBB9E0", Offset = "0x2BBA7E0", VA = "0x182BBB9E0")]
public static AttributePkcs GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C566)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.AttributePkcs BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.AttributePkcs::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3B:
stloc:string(var_7_41, call:string(Platform::GetTypeName, ldloc:AttributePkcs[exp:object](var_3)))
stloc:ArgumentException(var_8_59, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_7_41)), 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 1660
*/;
}
// Token: 0x0600C567 RID: 50535 RVA: 0x002D10DC File Offset: 0x002CF2DC
[Token(Token = "0x600C567")]
[Address(RVA = "0x2BBBD30", Offset = "0x2BBAB30", VA = "0x182BBBD30")]
private AttributePkcs(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C567)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.AttributePkcs::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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 1660
*/;
}
// Token: 0x0600C568 RID: 50536 RVA: 0x002D112C File Offset: 0x002CF32C
[Token(Token = "0x600C568")]
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
public AttributePkcs(DerObjectIdentifier attrType, Asn1Set attrValues)
{
this.attrType = attrType;
this.attrValues = attrValues;
}
// Token: 0x17001E96 RID: 7830
// (get) Token: 0x0600C569 RID: 50537 RVA: 0x002D1150 File Offset: 0x002CF350
[Token(Token = "0x17001E96")]
public DerObjectIdentifier AttrType
{
[Token(Token = "0x600C569")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.attrType;
}
}
// Token: 0x17001E97 RID: 7831
// (get) Token: 0x0600C56A RID: 50538 RVA: 0x002D1164 File Offset: 0x002CF364
[Token(Token = "0x17001E97")]
public Asn1Set AttrValues
{
[Token(Token = "0x600C56A")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.attrValues;
}
}
// Token: 0x0600C56B RID: 50539 RVA: 0x002D1178 File Offset: 0x002CF378
[Token(Token = "0x600C56B")]
[Address(RVA = "0x2BBBC20", Offset = "0x2BBAA20", VA = "0x182BBBC20", 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: 0x04007CF8 RID: 31992
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007CF8")]
private readonly DerObjectIdentifier attrType;
// Token: 0x04007CF9 RID: 31993
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007CF9")]
private readonly Asn1Set attrValues;
}
}
@@ -0,0 +1,79 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E85 RID: 7813
[Token(Token = "0x2001E85")]
public class AuthenticatedSafe : Asn1Encodable
{
// Token: 0x0600C56C RID: 50540 RVA: 0x002D11C0 File Offset: 0x002CF3C0
[Token(Token = "0x600C56C")]
[Address(RVA = "0x2BBBF30", Offset = "0x2BBAD30", VA = "0x182BBBF30")]
public AuthenticatedSafe(Asn1Sequence seq)
{
Asn1Encodable asn1Encodable;
ContentInfo[] array = new ContentInfo[asn1Encodable];
int num = 0;
this.info = array;
if (num != array.Length)
{
Asn1SequenceParser parser = seq.Parser;
ContentInfo contentInfo;
if (contentInfo != 0)
{
}
num++;
array[0] = contentInfo;
ContentInfo[] array2 = this.info;
}
}
// Token: 0x0600C56D RID: 50541 RVA: 0x002D1214 File Offset: 0x002CF414
[Token(Token = "0x600C56D")]
[Address(RVA = "0x2BBC060", Offset = "0x2BBAE60", VA = "0x182BBC060")]
public AuthenticatedSafe(ContentInfo[] info)
{
}
// Token: 0x0600C56E RID: 50542 RVA: 0x002D1230 File Offset: 0x002CF430
[Token(Token = "0x600C56E")]
[Address(RVA = "0x2BBBE50", Offset = "0x2BBAC50", VA = "0x182BBBE50")]
public ContentInfo[] GetContentInfo()
{
ContentInfo[] array = this.info;
throw new NullReferenceException();
}
// Token: 0x0600C56F RID: 50543 RVA: 0x002D124C File Offset: 0x002CF44C
[Token(Token = "0x600C56F")]
[Address(RVA = "0x2BBBED0", Offset = "0x2BBACD0", VA = "0x182BBBED0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600C56F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.AuthenticatedSafe::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:BerSequence(var_0_0B, newobj:BerSequence(BerSequence::.ctor, ldfld:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.ContentInfo[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](AuthenticatedSafe::info, ldloc:AuthenticatedSafe(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 1660
*/;
}
// Token: 0x04007CFA RID: 31994
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007CFA")]
private readonly ContentInfo[] info;
}
}
@@ -0,0 +1,107 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E86 RID: 7814
[Token(Token = "0x2001E86")]
public class CertBag : Asn1Encodable
{
// Token: 0x0600C570 RID: 50544 RVA: 0x002D1264 File Offset: 0x002CF464
[Token(Token = "0x600C570")]
[Address(RVA = "0x2BBC870", Offset = "0x2BBB670", VA = "0x182BBC870")]
public CertBag(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C570)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertBag::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_39:
stloc:ArgumentException(var_6_48, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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 1660
*/;
}
// Token: 0x0600C571 RID: 50545 RVA: 0x002D12BC File Offset: 0x002CF4BC
[Token(Token = "0x600C571")]
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
public CertBag(DerObjectIdentifier certID, Asn1Object certValue)
{
this.certID = certID;
this.certValue = certValue;
}
// Token: 0x17001E98 RID: 7832
// (get) Token: 0x0600C572 RID: 50546 RVA: 0x002D12E0 File Offset: 0x002CF4E0
[Token(Token = "0x17001E98")]
public DerObjectIdentifier CertID
{
[Token(Token = "0x600C572")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.certID;
}
}
// Token: 0x17001E99 RID: 7833
// (get) Token: 0x0600C573 RID: 50547 RVA: 0x002D12F4 File Offset: 0x002CF4F4
[Token(Token = "0x17001E99")]
public Asn1Object CertValue
{
[Token(Token = "0x600C573")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.certValue;
}
}
// Token: 0x0600C574 RID: 50548 RVA: 0x002D1308 File Offset: 0x002CF508
[Token(Token = "0x600C574")]
[Address(RVA = "0x2BBC730", Offset = "0x2BBB530", VA = "0x182BBC730", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
DerObjectIdentifier derObjectIdentifier = this.certID;
if (derObjectIdentifier != 0)
{
}
array[0] = derObjectIdentifier;
Asn1Object asn1Object = this.certValue;
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(num, asn1Object);
num = 0;
if (derTaggedObject != 0)
{
}
array[1] = derTaggedObject;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007CFB RID: 31995
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007CFB")]
private readonly DerObjectIdentifier certID;
// Token: 0x04007CFC RID: 31996
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007CFC")]
private readonly Asn1Object certValue;
}
}
@@ -0,0 +1,160 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E87 RID: 7815
[Token(Token = "0x2001E87")]
public class CertificationRequest : Asn1Encodable
{
// Token: 0x0600C575 RID: 50549 RVA: 0x002D135C File Offset: 0x002CF55C
[Token(Token = "0x600C575")]
[Address(RVA = "0x2BBDDD0", Offset = "0x2BBCBD0", VA = "0x182BBDDD0")]
public static CertificationRequest GetInstance(object obj)
{
while (obj != 0)
{
if (obj == 0)
{
if (obj != 0)
{
CertificationRequest certificationRequest;
return certificationRequest;
}
}
else if (obj != 0)
{
return;
}
}
}
// Token: 0x0600C576 RID: 50550 RVA: 0x002D1388 File Offset: 0x002CF588
[Token(Token = "0x600C576")]
[Address(RVA = "0x4093D0", Offset = "0x4081D0", VA = "0x1804093D0")]
protected CertificationRequest()
{
}
// Token: 0x0600C577 RID: 50551 RVA: 0x002D139C File Offset: 0x002CF59C
[Token(Token = "0x600C577")]
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
public CertificationRequest(CertificationRequestInfo requestInfo, AlgorithmIdentifier algorithm, DerBitString signature)
{
this.reqInfo = requestInfo;
this.sigAlgId = algorithm;
this.sigBits = signature;
}
// Token: 0x0600C578 RID: 50552 RVA: 0x002D13C4 File Offset: 0x002CF5C4
[Token(Token = "0x600C578")]
[Address(RVA = "0x2BBE080", Offset = "0x2BBCE80", VA = "0x182BBE080")]
[Obsolete]
public CertificationRequest(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C578)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequest::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_61:
stloc:ArgumentException(var_12_70, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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.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 1660
*/;
}
// Token: 0x0600C579 RID: 50553 RVA: 0x002D1444 File Offset: 0x002CF644
[Token(Token = "0x600C579")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
public CertificationRequestInfo GetCertificationRequestInfo()
{
return this.reqInfo;
}
// Token: 0x17001E9A RID: 7834
// (get) Token: 0x0600C57A RID: 50554 RVA: 0x002D1458 File Offset: 0x002CF658
[Token(Token = "0x17001E9A")]
public AlgorithmIdentifier SignatureAlgorithm
{
[Token(Token = "0x600C57A")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.sigAlgId;
}
}
// Token: 0x17001E9B RID: 7835
// (get) Token: 0x0600C57B RID: 50555 RVA: 0x002D146C File Offset: 0x002CF66C
[Token(Token = "0x17001E9B")]
public DerBitString Signature
{
[Token(Token = "0x600C57B")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.sigBits;
}
}
// Token: 0x0600C57C RID: 50556 RVA: 0x002D1480 File Offset: 0x002CF680
[Token(Token = "0x600C57C")]
[Address(RVA = "0x271F280", Offset = "0x271E080", VA = "0x18271F280")]
public byte[] GetSignatureOctets()
{
Asn1Object asn1Object = this.sigBits.ToAsn1Object();
throw new NullReferenceException();
}
// Token: 0x0600C57D RID: 50557 RVA: 0x002D14A0 File Offset: 0x002CF6A0
[Token(Token = "0x600C57D")]
[Address(RVA = "0x2BBDF10", Offset = "0x2BBCD10", VA = "0x182BBDF10", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[3];
CertificationRequestInfo certificationRequestInfo = this.reqInfo;
if (certificationRequestInfo != 0)
{
}
array[0] = certificationRequestInfo;
AlgorithmIdentifier algorithmIdentifier = this.sigAlgId;
if (algorithmIdentifier != 0)
{
}
array[1] = algorithmIdentifier;
DerBitString derBitString = this.sigBits;
if (derBitString != 0)
{
}
array[2] = derBitString;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007CFD RID: 31997
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007CFD")]
protected CertificationRequestInfo reqInfo;
// Token: 0x04007CFE RID: 31998
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007CFE")]
protected AlgorithmIdentifier sigAlgId;
// Token: 0x04007CFF RID: 31999
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007CFF")]
protected DerBitString sigBits;
}
}
@@ -0,0 +1,245 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E88 RID: 7816
[Token(Token = "0x2001E88")]
public class CertificationRequestInfo : Asn1Encodable
{
// Token: 0x0600C57E RID: 50558 RVA: 0x002D14FC File Offset: 0x002CF6FC
[Token(Token = "0x600C57E")]
[Address(RVA = "0x2BBD4C0", Offset = "0x2BBC2C0", VA = "0x182BBD4C0")]
public static CertificationRequestInfo GetInstance(object obj)
{
while (obj != 0)
{
Asn1Sequence instance;
if (obj == 0)
{
instance = Asn1Sequence.GetInstance(obj);
return new CertificationRequestInfo(instance);
}
if (instance != 0)
{
return;
}
}
}
// Token: 0x0600C57F RID: 50559 RVA: 0x002D1530 File Offset: 0x002CF730
[Token(Token = "0x600C57F")]
[Address(RVA = "0x2BBDCF0", Offset = "0x2BBCAF0", VA = "0x182BBDCF0")]
public CertificationRequestInfo(X509Name subject, SubjectPublicKeyInfo pkInfo, Asn1Set attributes)
{
/*
An exception occurred when decompiling this method (0600C57F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequestInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectPublicKeyInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_4C:
stloc:ArgumentException(var_2_56, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not all mandatory fields set in CertificationRequestInfo generator.")))
}
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 1660
*/;
}
// Token: 0x0600C580 RID: 50560 RVA: 0x002D1594 File Offset: 0x002CF794
[Token(Token = "0x600C580")]
[Address(RVA = "0x2BBDAA0", Offset = "0x2BBC8A0", VA = "0x182BBDAA0")]
private CertificationRequestInfo(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C580)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequestInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_9F:
stloc:ArgumentException(var_12_A9, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not all mandatory fields set in CertificationRequestInfo generator.")))
}
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 1660
*/;
}
// Token: 0x17001E9C RID: 7836
// (get) Token: 0x0600C581 RID: 50561 RVA: 0x002D164C File Offset: 0x002CF84C
[Token(Token = "0x17001E9C")]
public DerInteger Version
{
[Token(Token = "0x600C581")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.version;
}
}
// Token: 0x17001E9D RID: 7837
// (get) Token: 0x0600C582 RID: 50562 RVA: 0x002D1660 File Offset: 0x002CF860
[Token(Token = "0x17001E9D")]
public X509Name Subject
{
[Token(Token = "0x600C582")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.subject;
}
}
// Token: 0x17001E9E RID: 7838
// (get) Token: 0x0600C583 RID: 50563 RVA: 0x002D1674 File Offset: 0x002CF874
[Token(Token = "0x17001E9E")]
public SubjectPublicKeyInfo SubjectPublicKeyInfo
{
[Token(Token = "0x600C583")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.subjectPKInfo;
}
}
// Token: 0x17001E9F RID: 7839
// (get) Token: 0x0600C584 RID: 50564 RVA: 0x002D1688 File Offset: 0x002CF888
[Token(Token = "0x17001E9F")]
public Asn1Set Attributes
{
[Token(Token = "0x600C584")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return this.attributes;
}
}
// Token: 0x0600C585 RID: 50565 RVA: 0x002D169C File Offset: 0x002CF89C
[Token(Token = "0x600C585")]
[Address(RVA = "0x2BBD5C0", Offset = "0x2BBC3C0", VA = "0x182BBD5C0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[3];
DerInteger derInteger = this.version;
if (derInteger != 0)
{
}
array[0] = derInteger;
X509Name x509Name = this.subject;
if (x509Name != 0)
{
}
array[1] = x509Name;
SubjectPublicKeyInfo subjectPublicKeyInfo = this.subjectPKInfo;
if (subjectPublicKeyInfo != 0)
{
}
array[2] = subjectPublicKeyInfo;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.attributes != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Set asn1Set = this.attributes;
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);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600C586 RID: 50566 RVA: 0x002D1748 File Offset: 0x002CF948
[Token(Token = "0x600C586")]
[Address(RVA = "0x2BBD810", Offset = "0x2BBC610", VA = "0x182BBD810")]
private static void ValidateAttributes(Asn1Set attributes)
{
int num;
do
{
num = 0;
if (attributes == 0)
{
break;
}
IEnumerator enumerator = attributes.GetEnumerator();
Asn1Encodable asn1Encodable;
if (enumerator != 0)
{
if (enumerator == 0 || enumerator == 0)
{
goto IL_5E;
}
AttributePkcs attributePkcs;
DerObjectIdentifier attrType = attributePkcs.attrType;
Asn1Set attrValues = attributePkcs.attrValues;
if (asn1Encodable != (ulong)1L)
{
goto IL_40;
}
}
if (asn1Encodable != 0)
{
}
}
while (num != 0);
return;
IL_40:
ArgumentException ex = new ArgumentException("challengePassword attribute must have one value");
throw new NullReferenceException();
IL_5E:
throw new NullReferenceException();
}
// Token: 0x04007D00 RID: 32000
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D00")]
internal DerInteger version;
// Token: 0x04007D01 RID: 32001
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D01")]
internal X509Name subject;
// Token: 0x04007D02 RID: 32002
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007D02")]
internal SubjectPublicKeyInfo subjectPKInfo;
// Token: 0x04007D03 RID: 32003
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007D03")]
internal Asn1Set attributes;
}
}
@@ -0,0 +1,129 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E89 RID: 7817
[Token(Token = "0x2001E89")]
public class ContentInfo : Asn1Encodable
{
// Token: 0x0600C587 RID: 50567 RVA: 0x002D17C0 File Offset: 0x002CF9C0
[Token(Token = "0x600C587")]
[Address(RVA = "0x2BBE2A0", Offset = "0x2BBD0A0", VA = "0x182BBE2A0")]
public static ContentInfo GetInstance(object obj)
{
while (obj != 0)
{
if (obj == 0)
{
return new ContentInfo(Asn1Sequence.GetInstance(obj));
}
}
}
// Token: 0x0600C588 RID: 50568 RVA: 0x002D17E4 File Offset: 0x002CF9E4
[Token(Token = "0x600C588")]
[Address(RVA = "0x2BBE4F0", Offset = "0x2BBD2F0", VA = "0x182BBE4F0")]
private ContentInfo(Asn1Sequence seq)
{
for (;;)
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
if (parser == 0)
{
}
if (parser != 0)
{
this.contentType = parser;
Asn1Encodable asn1Encodable;
if (asn1Encodable <= (ulong)1L)
{
return;
}
Asn1SequenceParser parser2 = seq.Parser;
if (parser2 != 0 && parser2 != 0)
{
break;
}
}
}
Asn1Object asn1Object;
this.content = asn1Object;
}
// Token: 0x0600C589 RID: 50569 RVA: 0x002D1838 File Offset: 0x002CFA38
[Token(Token = "0x600C589")]
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
{
this.contentType = contentType;
this.content = content;
}
// Token: 0x17001EA0 RID: 7840
// (get) Token: 0x0600C58A RID: 50570 RVA: 0x002D185C File Offset: 0x002CFA5C
[Token(Token = "0x17001EA0")]
public DerObjectIdentifier ContentType
{
[Token(Token = "0x600C58A")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.contentType;
}
}
// Token: 0x17001EA1 RID: 7841
// (get) Token: 0x0600C58B RID: 50571 RVA: 0x002D1870 File Offset: 0x002CFA70
[Token(Token = "0x17001EA1")]
public Asn1Encodable Content
{
[Token(Token = "0x600C58B")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.content;
}
}
// Token: 0x0600C58C RID: 50572 RVA: 0x002D1884 File Offset: 0x002CFA84
[Token(Token = "0x600C58C")]
[Address(RVA = "0x2BBE350", Offset = "0x2BBD150", VA = "0x182BBE350", 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: 0x04007D04 RID: 32004
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D04")]
private readonly DerObjectIdentifier contentType;
// Token: 0x04007D05 RID: 32005
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D05")]
private readonly Asn1Encodable content;
}
}
@@ -0,0 +1,153 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E8A RID: 7818
[Token(Token = "0x2001E8A")]
public class DHParameter : Asn1Encodable
{
// Token: 0x0600C58D RID: 50573 RVA: 0x002D18FC File Offset: 0x002CFAFC
[Token(Token = "0x600C58D")]
[Address(RVA = "0x2BBEF60", Offset = "0x2BBDD60", VA = "0x182BBEF60")]
public DHParameter(BigInteger p, BigInteger g, int l)
{
DerInteger derInteger = new DerInteger(p);
this.p = derInteger;
DerInteger derInteger2 = new DerInteger(g);
this.g = derInteger2;
if (l != 0)
{
DerInteger derInteger3 = new DerInteger(l);
this.l = derInteger3;
}
}
// Token: 0x0600C58E RID: 50574 RVA: 0x002D1940 File Offset: 0x002CFB40
[Token(Token = "0x600C58E")]
[Address(RVA = "0x2BBED60", Offset = "0x2BBDB60", VA = "0x182BBED60")]
public DHParameter(Asn1Sequence seq)
{
IEnumerator enumerator;
for (;;)
{
base..ctor();
enumerator = seq.GetEnumerator();
if (enumerator == 0)
{
}
if (enumerator != 0)
{
this.p = enumerator;
if (enumerator == 0)
{
}
if (enumerator != 0)
{
this.g = enumerator;
if (enumerator == 0)
{
return;
}
if (enumerator == 0 || enumerator != 0)
{
break;
}
}
}
}
this.l = enumerator;
}
// Token: 0x17001EA2 RID: 7842
// (get) Token: 0x0600C58F RID: 50575 RVA: 0x002D1998 File Offset: 0x002CFB98
[Token(Token = "0x17001EA2")]
public BigInteger P
{
[Token(Token = "0x600C58F")]
[Address(RVA = "0x27283C0", Offset = "0x27271C0", VA = "0x1827283C0")]
get
{
return this.p.PositiveValue;
}
}
// Token: 0x17001EA3 RID: 7843
// (get) Token: 0x0600C590 RID: 50576 RVA: 0x002D19B8 File Offset: 0x002CFBB8
[Token(Token = "0x17001EA3")]
public BigInteger G
{
[Token(Token = "0x600C590")]
[Address(RVA = "0x27283E0", Offset = "0x27271E0", VA = "0x1827283E0")]
get
{
return this.g.PositiveValue;
}
}
// Token: 0x17001EA4 RID: 7844
// (get) Token: 0x0600C591 RID: 50577 RVA: 0x002D19D8 File Offset: 0x002CFBD8
[Token(Token = "0x17001EA4")]
public BigInteger L
{
[Token(Token = "0x600C591")]
[Address(RVA = "0x2BBF030", Offset = "0x2BBDE30", VA = "0x182BBF030")]
get
{
DerInteger derInteger = this.l;
if (derInteger == 0)
{
}
return derInteger.PositiveValue;
}
}
// Token: 0x0600C592 RID: 50578 RVA: 0x002D19F8 File Offset: 0x002CFBF8
[Token(Token = "0x600C592")]
[Address(RVA = "0x2BBEBA0", Offset = "0x2BBD9A0", VA = "0x182BBEBA0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
DerInteger derInteger = this.p;
if (derInteger != 0)
{
}
array[0] = derInteger;
DerInteger derInteger2 = this.g;
if (derInteger2 != 0)
{
}
array[1] = derInteger2;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.l != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
DerInteger derInteger3 = this.l;
if (derInteger3 != 0)
{
}
array2[0] = derInteger3;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007D06 RID: 32006
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D06")]
internal DerInteger p;
// Token: 0x04007D07 RID: 32007
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D07")]
internal DerInteger g;
// Token: 0x04007D08 RID: 32008
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007D08")]
internal DerInteger l;
}
}
@@ -0,0 +1,189 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E8B RID: 7819
[Token(Token = "0x2001E8B")]
public class EncryptedData : Asn1Encodable
{
// Token: 0x0600C593 RID: 50579 RVA: 0x002D1A78 File Offset: 0x002CFC78
[Token(Token = "0x600C593")]
[Address(RVA = "0x2BC0200", Offset = "0x2BBF000", VA = "0x182BC0200")]
public static EncryptedData GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C593)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.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_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 1660
*/;
}
// Token: 0x0600C594 RID: 50580 RVA: 0x002D1AC8 File Offset: 0x002CFCC8
[Token(Token = "0x600C594")]
[Address(RVA = "0x2BC0520", Offset = "0x2BBF320", VA = "0x182BC0520")]
private EncryptedData(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C594)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedData::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_4D:
stloc:ArgumentException(var_7_57, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("sequence not version 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 1660
*/;
}
// Token: 0x0600C595 RID: 50581 RVA: 0x002D1B30 File Offset: 0x002CFD30
[Token(Token = "0x600C595")]
[Address(RVA = "0x2BC0730", Offset = "0x2BBF530", VA = "0x182BC0730")]
public EncryptedData(DerObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, Asn1Encodable content)
{
Asn1Encodable[] array = new Asn1Encodable[3];
if (contentType != 0)
{
}
array[0] = contentType;
Asn1Object asn1Object = encryptionAlgorithm.ToAsn1Object();
if (asn1Object != 0)
{
}
array[1] = asn1Object;
int num;
int num2;
BerTaggedObject berTaggedObject = new BerTaggedObject(num != 0, num2, content);
num2 = 0;
num = 0;
if (berTaggedObject != 0)
{
}
array[2] = berTaggedObject;
BerSequence berSequence = new BerSequence(array);
this.data = berSequence;
}
// Token: 0x17001EA5 RID: 7845
// (get) Token: 0x0600C596 RID: 50582 RVA: 0x002D1B9C File Offset: 0x002CFD9C
[Token(Token = "0x17001EA5")]
public DerObjectIdentifier ContentType
{
[Token(Token = "0x600C596")]
[Address(RVA = "0x2BC0910", Offset = "0x2BBF710", VA = "0x182BC0910")]
get
{
Asn1SequenceParser parser;
do
{
parser = this.data.Parser;
if (parser == 0)
{
}
}
while (parser == 0);
throw new NullReferenceException();
}
}
// Token: 0x17001EA6 RID: 7846
// (get) Token: 0x0600C597 RID: 50583 RVA: 0x002D1BC4 File Offset: 0x002CFDC4
[Token(Token = "0x17001EA6")]
public AlgorithmIdentifier EncryptionAlgorithm
{
[Token(Token = "0x600C597")]
[Address(RVA = "0x2BC0A90", Offset = "0x2BBF890", VA = "0x182BC0A90")]
get
{
Asn1SequenceParser parser = this.data.Parser;
AlgorithmIdentifier algorithmIdentifier;
return algorithmIdentifier;
}
}
// Token: 0x17001EA7 RID: 7847
// (get) Token: 0x0600C598 RID: 50584 RVA: 0x002D1BE4 File Offset: 0x002CFDE4
[Token(Token = "0x17001EA7")]
public Asn1OctetString Content
{
[Token(Token = "0x600C598")]
[Address(RVA = "0x2BC09B0", Offset = "0x2BBF7B0", VA = "0x182BC09B0")]
get
{
for (;;)
{
Asn1Sequence asn1Sequence = this.data;
Asn1Encodable asn1Encodable;
if (asn1Encodable != (ulong)3L)
{
}
Asn1SequenceParser parser = this.data.Parser;
if (parser == 0)
{
break;
}
if (parser != 0)
{
Asn1OctetString asn1OctetString;
return asn1OctetString;
}
}
int num = 0;
int num2 = 0;
return Asn1OctetString.GetInstance(num, num2 != 0);
}
}
// Token: 0x0600C599 RID: 50585 RVA: 0x002D1C30 File Offset: 0x002CFE30
[Token(Token = "0x600C599")]
[Address(RVA = "0x2BC03F0", Offset = "0x2BBF1F0", VA = "0x182BC03F0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
int num;
DerInteger derInteger = new DerInteger(num);
num = 0;
if (derInteger != 0)
{
}
array[0] = derInteger;
Asn1Sequence asn1Sequence = this.data;
if (asn1Sequence != 0)
{
}
array[1] = asn1Sequence;
BerSequence berSequence = new BerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007D09 RID: 32009
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D09")]
private readonly Asn1Sequence data;
}
}
@@ -0,0 +1,131 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E8C RID: 7820
[Token(Token = "0x2001E8C")]
public class EncryptedPrivateKeyInfo : Asn1Encodable
{
// Token: 0x0600C59A RID: 50586 RVA: 0x002D1C7C File Offset: 0x002CFE7C
[Token(Token = "0x600C59A")]
[Address(RVA = "0x2BC0F10", Offset = "0x2BBFD10", VA = "0x182BC0F10")]
private EncryptedPrivateKeyInfo(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C59A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedPrivateKeyInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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 1660
*/;
}
// Token: 0x0600C59B RID: 50587 RVA: 0x002D1CCC File Offset: 0x002CFECC
[Token(Token = "0x600C59B")]
[Address(RVA = "0x2BC0E90", Offset = "0x2BBFC90", VA = "0x182BC0E90")]
public EncryptedPrivateKeyInfo(AlgorithmIdentifier algId, byte[] encoding)
{
this.algId = algId;
DerOctetString derOctetString = new DerOctetString(encoding);
this.data = derOctetString;
}
// Token: 0x0600C59C RID: 50588 RVA: 0x002D1CF4 File Offset: 0x002CFEF4
[Token(Token = "0x600C59C")]
[Address(RVA = "0x2BC0AD0", Offset = "0x2BBF8D0", VA = "0x182BC0AD0")]
public static EncryptedPrivateKeyInfo GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C59C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedPrivateKeyInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptedPrivateKeyInfo::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_32:
stloc:string(var_8_38, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_9_50, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_8_38)), ldstr:string("obj")))
stloc:ArgumentException(var_10_61, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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.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 1660
*/;
}
// Token: 0x17001EA8 RID: 7848
// (get) Token: 0x0600C59D RID: 50589 RVA: 0x002D1D64 File Offset: 0x002CFF64
[Token(Token = "0x17001EA8")]
public AlgorithmIdentifier EncryptionAlgorithm
{
[Token(Token = "0x600C59D")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.algId;
}
}
// Token: 0x0600C59E RID: 50590 RVA: 0x002D1D78 File Offset: 0x002CFF78
[Token(Token = "0x600C59E")]
[Address(RVA = "0x260E100", Offset = "0x260CF00", VA = "0x18260E100")]
public byte[] GetEncryptedData()
{
Stream octetStream = ((Asn1OctetStringParser)this.data).GetOctetStream();
throw new NullReferenceException();
}
// Token: 0x0600C59F RID: 50591 RVA: 0x002D1D98 File Offset: 0x002CFF98
[Token(Token = "0x600C59F")]
[Address(RVA = "0x2BC0D80", Offset = "0x2BBFB80", VA = "0x182BC0D80", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
AlgorithmIdentifier algorithmIdentifier = this.algId;
if (algorithmIdentifier != 0)
{
}
array[0] = algorithmIdentifier;
Asn1OctetString asn1OctetString = this.data;
if (asn1OctetString != 0)
{
}
array[1] = asn1OctetString;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007D0A RID: 32010
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D0A")]
private readonly AlgorithmIdentifier algId;
// Token: 0x04007D0B RID: 32011
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D0B")]
private readonly Asn1OctetString data;
}
}
@@ -0,0 +1,104 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E8D RID: 7821
[Token(Token = "0x2001E8D")]
public class EncryptionScheme : AlgorithmIdentifier
{
// Token: 0x0600C5A0 RID: 50592 RVA: 0x002D1DE0 File Offset: 0x002CFFE0
[Token(Token = "0x600C5A0")]
[Address(RVA = "0x57BA50", Offset = "0x57A850", VA = "0x18057BA50")]
public EncryptionScheme(DerObjectIdentifier objectID)
: base(objectID)
{
}
// Token: 0x0600C5A1 RID: 50593 RVA: 0x002D1DF4 File Offset: 0x002CFFF4
[Token(Token = "0x600C5A1")]
[Address(RVA = "0x2BC14D0", Offset = "0x2BC02D0", VA = "0x182BC14D0")]
public EncryptionScheme(DerObjectIdentifier objectID, Asn1Encodable parameters)
: base(objectID, parameters)
{
}
// Token: 0x0600C5A2 RID: 50594 RVA: 0x002D1E0C File Offset: 0x002D000C
[Token(Token = "0x600C5A2")]
[Address(RVA = "0x2BC13E0", Offset = "0x2BC01E0", VA = "0x182BC13E0")]
internal EncryptionScheme(Asn1Sequence seq)
{
Asn1SequenceParser parser;
do
{
parser = seq.Parser;
Asn1SequenceParser parser2 = seq.Parser;
if (parser == 0)
{
}
}
while (parser == 0);
}
// Token: 0x0600C5A3 RID: 50595 RVA: 0x002D1E38 File Offset: 0x002D0038
[Token(Token = "0x600C5A3")]
[Address(RVA = "0x2BC1000", Offset = "0x2BBFE00", VA = "0x182BC1000")]
public new static EncryptionScheme GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C5A3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptionScheme BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.EncryptionScheme::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_24:
stloc:string(var_8_2A, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_9_42, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_8_2A)), 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 1660
*/;
}
// Token: 0x17001EA9 RID: 7849
// (get) Token: 0x0600C5A4 RID: 50596 RVA: 0x002D1E88 File Offset: 0x002D0088
[Token(Token = "0x17001EA9")]
public Asn1Object Asn1Object
{
[Token(Token = "0x600C5A4")]
[Address(RVA = "0x2BC14E0", Offset = "0x2BC02E0", VA = "0x182BC14E0")]
get
{
return this.ObjectID.ToAsn1Object();
}
}
// Token: 0x0600C5A5 RID: 50597 RVA: 0x002D1EA8 File Offset: 0x002D00A8
[Token(Token = "0x600C5A5")]
[Address(RVA = "0x2BC12A0", Offset = "0x2BC00A0", VA = "0x182BC12A0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
Asn1Object asn1Object = this.ToAsn1Object();
if (asn1Object != 0)
{
}
array[0] = asn1Object;
DerObjectIdentifier objectID = this.ObjectID;
if (objectID != 0)
{
}
array[1] = objectID;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
}
}
@@ -0,0 +1,144 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E8E RID: 7822
[Token(Token = "0x2001E8E")]
public class IssuerAndSerialNumber : Asn1Encodable
{
// Token: 0x0600C5A6 RID: 50598 RVA: 0x002D1EF0 File Offset: 0x002D00F0
[Token(Token = "0x600C5A6")]
[Address(RVA = "0x2BC1520", Offset = "0x2BC0320", VA = "0x182BC1520")]
public static IssuerAndSerialNumber GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C5A6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.IssuerAndSerialNumber BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.IssuerAndSerialNumber::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2E:
stloc:string(var_8_34, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_9_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_8_34)), ldstr:string("obj")))
stloc:ArgumentException(var_10_5D, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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.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 1660
*/;
}
// Token: 0x0600C5A7 RID: 50599 RVA: 0x002D1F5C File Offset: 0x002D015C
[Token(Token = "0x600C5A7")]
[Address(RVA = "0x2BC1980", Offset = "0x2BC0780", VA = "0x182BC1980")]
private IssuerAndSerialNumber(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C5A7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.IssuerAndSerialNumber::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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 1660
*/;
}
// Token: 0x0600C5A8 RID: 50600 RVA: 0x002D1FAC File Offset: 0x002D01AC
[Token(Token = "0x600C5A8")]
[Address(RVA = "0x2BC1900", Offset = "0x2BC0700", VA = "0x182BC1900")]
public IssuerAndSerialNumber(X509Name name, BigInteger certSerialNumber)
{
this.name = name;
DerInteger derInteger = new DerInteger(certSerialNumber);
this.certSerialNumber = derInteger;
}
// Token: 0x0600C5A9 RID: 50601 RVA: 0x002D1FD4 File Offset: 0x002D01D4
[Token(Token = "0x600C5A9")]
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
public IssuerAndSerialNumber(X509Name name, DerInteger certSerialNumber)
{
this.name = name;
this.certSerialNumber = certSerialNumber;
}
// Token: 0x17001EAA RID: 7850
// (get) Token: 0x0600C5AA RID: 50602 RVA: 0x002D1FF8 File Offset: 0x002D01F8
[Token(Token = "0x17001EAA")]
public X509Name Name
{
[Token(Token = "0x600C5AA")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.name;
}
}
// Token: 0x17001EAB RID: 7851
// (get) Token: 0x0600C5AB RID: 50603 RVA: 0x002D200C File Offset: 0x002D020C
[Token(Token = "0x17001EAB")]
public DerInteger CertificateSerialNumber
{
[Token(Token = "0x600C5AB")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.certSerialNumber;
}
}
// Token: 0x0600C5AC RID: 50604 RVA: 0x002D2020 File Offset: 0x002D0220
[Token(Token = "0x600C5AC")]
[Address(RVA = "0x2BC17F0", Offset = "0x2BC05F0", VA = "0x182BC17F0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
X509Name x509Name = this.name;
if (x509Name != 0)
{
}
array[0] = x509Name;
DerInteger derInteger = this.certSerialNumber;
if (derInteger != 0)
{
}
array[1] = derInteger;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007D0C RID: 32012
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D0C")]
private readonly X509Name name;
// Token: 0x04007D0D RID: 32013
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D0D")]
private readonly DerInteger certSerialNumber;
}
}
@@ -0,0 +1,27 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E8F RID: 7823
[Token(Token = "0x2001E8F")]
public class KeyDerivationFunc : AlgorithmIdentifier
{
// Token: 0x0600C5AD RID: 50605 RVA: 0x002D2068 File Offset: 0x002D0268
[Token(Token = "0x600C5AD")]
[Address(RVA = "0x2BC1AA0", Offset = "0x2BC08A0", VA = "0x182BC1AA0")]
internal KeyDerivationFunc(Asn1Sequence seq)
: base(seq)
{
}
// Token: 0x0600C5AE RID: 50606 RVA: 0x002D207C File Offset: 0x002D027C
[Token(Token = "0x600C5AE")]
[Address(RVA = "0x2BC14D0", Offset = "0x2BC02D0", VA = "0x182BC14D0")]
public KeyDerivationFunc(DerObjectIdentifier id, Asn1Encodable parameters)
: base(id, parameters)
{
}
}
}
@@ -0,0 +1,158 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E90 RID: 7824
[Token(Token = "0x2001E90")]
public class MacData : Asn1Encodable
{
// Token: 0x0600C5AF RID: 50607 RVA: 0x002D2094 File Offset: 0x002D0294
[Token(Token = "0x600C5AF")]
[Address(RVA = "0x2BC1AB0", Offset = "0x2BC08B0", VA = "0x182BC1AB0")]
public static MacData GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C5AF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.MacData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.MacData::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 1660
*/;
}
// Token: 0x0600C5B0 RID: 50608 RVA: 0x002D20E4 File Offset: 0x002D02E4
[Token(Token = "0x600C5B0")]
[Address(RVA = "0x2BC1F80", Offset = "0x2BC0D80", VA = "0x182BC1F80")]
private MacData(Asn1Sequence seq)
{
for (;;)
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
DigestInfo digestInfo;
this.digInfo = digestInfo;
Asn1SequenceParser parser2 = seq.Parser;
if (parser2 != 0 && parser2 != 0)
{
Asn1Encodable asn1Encodable;
if (asn1Encodable != (ulong)3L)
{
break;
}
Asn1SequenceParser parser3 = seq.Parser;
if (parser3 != 0 && parser3 != 0)
{
return;
}
}
}
BigInteger one = BigInteger.One;
this.iterationCount = one;
}
// Token: 0x0600C5B1 RID: 50609 RVA: 0x002D2154 File Offset: 0x002D0354
[Token(Token = "0x600C5B1")]
[Address(RVA = "0x2BC21D0", Offset = "0x2BC0FD0", VA = "0x182BC21D0")]
public MacData(DigestInfo digInfo, byte[] salt, int iterationCount)
{
this.digInfo = digInfo;
BigInteger bigInteger = BigInteger.ValueOf((long)iterationCount);
this.iterationCount = bigInteger;
}
// Token: 0x17001EAC RID: 7852
// (get) Token: 0x0600C5B2 RID: 50610 RVA: 0x002D2184 File Offset: 0x002D0384
[Token(Token = "0x17001EAC")]
public DigestInfo Mac
{
[Token(Token = "0x600C5B2")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.digInfo;
}
}
// Token: 0x0600C5B3 RID: 50611 RVA: 0x002D2198 File Offset: 0x002D0398
[Token(Token = "0x600C5B3")]
[Address(RVA = "0x2BC1CA0", Offset = "0x2BC0AA0", VA = "0x182BC1CA0")]
public byte[] GetSalt()
{
byte[] array = this.salt;
throw new NullReferenceException();
}
// Token: 0x17001EAD RID: 7853
// (get) Token: 0x0600C5B4 RID: 50612 RVA: 0x002D21B4 File Offset: 0x002D03B4
[Token(Token = "0x17001EAD")]
public BigInteger IterationCount
{
[Token(Token = "0x600C5B4")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.iterationCount;
}
}
// Token: 0x0600C5B5 RID: 50613 RVA: 0x002D21C8 File Offset: 0x002D03C8
[Token(Token = "0x600C5B5")]
[Address(RVA = "0x2BC1D20", Offset = "0x2BC0B20", VA = "0x182BC1D20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
DigestInfo digestInfo = this.digInfo;
if (digestInfo != 0)
{
}
array[0] = digestInfo;
DerOctetString derOctetString = new DerOctetString(this.salt);
if (derOctetString != 0)
{
}
array[1] = derOctetString;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
BigInteger bigInteger = this.iterationCount;
Asn1Encodable[] array2 = new Asn1Encodable[1];
DerInteger derInteger = new DerInteger(this.iterationCount);
if (derInteger != 0)
{
}
array2[0] = derInteger;
asn1EncodableVector.Add(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007D0E RID: 32014
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D0E")]
internal DigestInfo digInfo;
// Token: 0x04007D0F RID: 32015
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D0F")]
internal byte[] salt;
// Token: 0x04007D10 RID: 32016
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007D10")]
internal BigInteger iterationCount;
}
}
@@ -0,0 +1,132 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E91 RID: 7825
[Token(Token = "0x2001E91")]
public class PbeParameter : Asn1Encodable
{
// Token: 0x0600C5B6 RID: 50614 RVA: 0x002D2250 File Offset: 0x002D0450
[Token(Token = "0x600C5B6")]
[Address(RVA = "0x2BC3740", Offset = "0x2BC2540", VA = "0x182BC3740")]
public static PbeParameter GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C5B6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PbeParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PbeParameter::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_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_9_3F)), ldstr:string("obj")))
stloc:ArgumentException(var_11_68, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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.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 1660
*/;
}
// Token: 0x0600C5B7 RID: 50615 RVA: 0x002D22C8 File Offset: 0x002D04C8
[Token(Token = "0x600C5B7")]
[Address(RVA = "0x2BC3B00", Offset = "0x2BC2900", VA = "0x182BC3B00")]
private PbeParameter(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C5B7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PbeParameter::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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 1660
*/;
}
// Token: 0x0600C5B8 RID: 50616 RVA: 0x002D2318 File Offset: 0x002D0518
[Token(Token = "0x600C5B8")]
[Address(RVA = "0x2BC3BF0", Offset = "0x2BC29F0", VA = "0x182BC3BF0")]
public PbeParameter(byte[] salt, int iterationCount)
{
DerOctetString derOctetString = new DerOctetString(salt);
this.salt = derOctetString;
DerInteger derInteger = new DerInteger(iterationCount);
this.iterationCount = derInteger;
}
// Token: 0x0600C5B9 RID: 50617 RVA: 0x002D2348 File Offset: 0x002D0548
[Token(Token = "0x600C5B9")]
[Address(RVA = "0x5F5F00", Offset = "0x5F4D00", VA = "0x1805F5F00")]
public byte[] GetSalt()
{
Stream octetStream = ((Asn1OctetStringParser)this.salt).GetOctetStream();
throw new NullReferenceException();
}
// Token: 0x17001EAE RID: 7854
// (get) Token: 0x0600C5BA RID: 50618 RVA: 0x002D2368 File Offset: 0x002D0568
[Token(Token = "0x17001EAE")]
public BigInteger IterationCount
{
[Token(Token = "0x600C5BA")]
[Address(RVA = "0x283E1D0", Offset = "0x283CFD0", VA = "0x18283E1D0")]
get
{
return this.iterationCount.Value;
}
}
// Token: 0x0600C5BB RID: 50619 RVA: 0x002D2388 File Offset: 0x002D0588
[Token(Token = "0x600C5BB")]
[Address(RVA = "0x2BC39F0", Offset = "0x2BC27F0", VA = "0x182BC39F0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
Asn1OctetString asn1OctetString = this.salt;
if (asn1OctetString != 0)
{
}
array[0] = asn1OctetString;
DerInteger derInteger = this.iterationCount;
if (derInteger != 0)
{
}
array[1] = derInteger;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007D11 RID: 32017
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D11")]
private readonly Asn1OctetString salt;
// Token: 0x04007D12 RID: 32018
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D12")]
private readonly DerInteger iterationCount;
}
}
@@ -0,0 +1,116 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E92 RID: 7826
[Token(Token = "0x2001E92")]
public class PbeS2Parameters : Asn1Encodable
{
// Token: 0x0600C5BC RID: 50620 RVA: 0x002D23D0 File Offset: 0x002D05D0
[Token(Token = "0x600C5BC")]
[Address(RVA = "0x2BC3C90", Offset = "0x2BC2A90", VA = "0x182BC3C90")]
public static PbeS2Parameters GetInstance(object obj)
{
while (obj != 0)
{
if (obj == 0)
{
return new PbeS2Parameters(Asn1Sequence.GetInstance(obj));
}
}
}
// Token: 0x0600C5BD RID: 50621 RVA: 0x002D23F4 File Offset: 0x002D05F4
[Token(Token = "0x600C5BD")]
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
public PbeS2Parameters(KeyDerivationFunc keyDevFunc, EncryptionScheme encScheme)
{
this.func = keyDevFunc;
this.scheme = encScheme;
}
// Token: 0x0600C5BE RID: 50622 RVA: 0x002D2418 File Offset: 0x002D0618
[Token(Token = "0x600C5BE")]
[Address(RVA = "0x2BC3E50", Offset = "0x2BC2C50", VA = "0x182BC3E50")]
[Obsolete]
public PbeS2Parameters(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C5BE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PbeS2Parameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_48:
stloc:ArgumentException(var_9_57, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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.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 1660
*/;
}
// Token: 0x17001EAF RID: 7855
// (get) Token: 0x0600C5BF RID: 50623 RVA: 0x002D2480 File Offset: 0x002D0680
[Token(Token = "0x17001EAF")]
public KeyDerivationFunc KeyDerivationFunc
{
[Token(Token = "0x600C5BF")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.func;
}
}
// Token: 0x17001EB0 RID: 7856
// (get) Token: 0x0600C5C0 RID: 50624 RVA: 0x002D2494 File Offset: 0x002D0694
[Token(Token = "0x17001EB0")]
public EncryptionScheme EncryptionScheme
{
[Token(Token = "0x600C5C0")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.scheme;
}
}
// Token: 0x0600C5C1 RID: 50625 RVA: 0x002D24A8 File Offset: 0x002D06A8
[Token(Token = "0x600C5C1")]
[Address(RVA = "0x2BC3D40", Offset = "0x2BC2B40", VA = "0x182BC3D40", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
KeyDerivationFunc keyDerivationFunc = this.func;
if (keyDerivationFunc != 0)
{
}
array[0] = keyDerivationFunc;
EncryptionScheme encryptionScheme = this.scheme;
if (encryptionScheme != 0)
{
}
array[1] = encryptionScheme;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007D13 RID: 32019
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D13")]
private readonly KeyDerivationFunc func;
// Token: 0x04007D14 RID: 32020
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D14")]
private readonly EncryptionScheme scheme;
}
}
@@ -0,0 +1,278 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E93 RID: 7827
[Token(Token = "0x2001E93")]
public class Pbkdf2Params : Asn1Encodable
{
// Token: 0x0600C5C2 RID: 50626 RVA: 0x002D24F0 File Offset: 0x002D06F0
[Token(Token = "0x600C5C2")]
[Address(RVA = "0x2BC4110", Offset = "0x2BC2F10", VA = "0x182BC4110")]
public static Pbkdf2Params GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C5C2)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pbkdf2Params BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pbkdf2Params::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 1660
*/;
}
// Token: 0x0600C5C3 RID: 50627 RVA: 0x002D2544 File Offset: 0x002D0744
[Token(Token = "0x600C5C3")]
[Address(RVA = "0x2BC4780", Offset = "0x2BC3580", VA = "0x182BC4780")]
public Pbkdf2Params(Asn1Sequence seq)
{
Asn1SequenceParser parser2;
for (;;)
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
if (parser == 0)
{
}
if (parser != 0)
{
this.octStr = parser;
parser2 = seq.Parser;
if (parser2 == 0)
{
}
if (parser2 != 0)
{
break;
}
}
}
this.iterationCount = parser2;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)2L)
{
if (seq.Parser == 0)
{
Asn1SequenceParser parser3 = seq.Parser;
}
Asn1SequenceParser parser4 = seq.Parser;
Asn1SequenceParser parser5 = seq.Parser;
Asn1SequenceParser parser6 = seq.Parser;
if (parser5 != 0)
{
this.keyLength = parser6;
}
if (parser6 != 0)
{
AlgorithmIdentifier algorithmIdentifier;
this.prf = algorithmIdentifier;
}
}
}
// Token: 0x0600C5C4 RID: 50628 RVA: 0x002D25DC File Offset: 0x002D07DC
[Token(Token = "0x600C5C4")]
[Address(RVA = "0x2BC4AB0", Offset = "0x2BC38B0", VA = "0x182BC4AB0")]
public Pbkdf2Params(byte[] salt, int iterationCount)
{
DerOctetString derOctetString = new DerOctetString(salt);
this.octStr = derOctetString;
DerInteger derInteger = new DerInteger(iterationCount);
this.iterationCount = derInteger;
}
// Token: 0x0600C5C5 RID: 50629 RVA: 0x002D260C File Offset: 0x002D080C
[Token(Token = "0x600C5C5")]
[Address(RVA = "0x2BC4A20", Offset = "0x2BC3820", VA = "0x182BC4A20")]
public Pbkdf2Params(byte[] salt, int iterationCount, int keyLength)
{
DerInteger derInteger = new DerInteger(keyLength);
this.keyLength = derInteger;
}
// Token: 0x0600C5C6 RID: 50630 RVA: 0x002D2628 File Offset: 0x002D0828
[Token(Token = "0x600C5C6")]
[Address(RVA = "0x2BC46F0", Offset = "0x2BC34F0", VA = "0x182BC46F0")]
public Pbkdf2Params(byte[] salt, int iterationCount, int keyLength, AlgorithmIdentifier prf)
{
DerInteger derInteger = new DerInteger(keyLength);
this.keyLength = derInteger;
this.prf = 0;
}
// Token: 0x0600C5C7 RID: 50631 RVA: 0x002D264C File Offset: 0x002D084C
[Token(Token = "0x600C5C7")]
[Address(RVA = "0x2BC46C0", Offset = "0x2BC34C0", VA = "0x182BC46C0")]
public Pbkdf2Params(byte[] salt, int iterationCount, AlgorithmIdentifier prf)
{
this.prf = prf;
}
// Token: 0x0600C5C8 RID: 50632 RVA: 0x002D2660 File Offset: 0x002D0860
[Token(Token = "0x600C5C8")]
[Address(RVA = "0x5F5F00", Offset = "0x5F4D00", VA = "0x1805F5F00")]
public byte[] GetSalt()
{
Stream octetStream = ((Asn1OctetStringParser)this.octStr).GetOctetStream();
throw new NullReferenceException();
}
// Token: 0x17001EB1 RID: 7857
// (get) Token: 0x0600C5C9 RID: 50633 RVA: 0x002D2680 File Offset: 0x002D0880
[Token(Token = "0x17001EB1")]
public BigInteger IterationCount
{
[Token(Token = "0x600C5C9")]
[Address(RVA = "0x283E1D0", Offset = "0x283CFD0", VA = "0x18283E1D0")]
get
{
return this.iterationCount.Value;
}
}
// Token: 0x17001EB2 RID: 7858
// (get) Token: 0x0600C5CA RID: 50634 RVA: 0x002D26A0 File Offset: 0x002D08A0
[Token(Token = "0x17001EB2")]
public BigInteger KeyLength
{
[Token(Token = "0x600C5CA")]
[Address(RVA = "0x27214D0", Offset = "0x27202D0", VA = "0x1827214D0")]
get
{
DerInteger derInteger = this.keyLength;
if (derInteger == 0)
{
}
return derInteger.Value;
}
}
// Token: 0x17001EB3 RID: 7859
// (get) Token: 0x0600C5CB RID: 50635 RVA: 0x002D26C0 File Offset: 0x002D08C0
[Token(Token = "0x17001EB3")]
public bool IsDefaultPrf
{
[Token(Token = "0x600C5CB")]
[Address(RVA = "0x2BC4B50", Offset = "0x2BC3950", VA = "0x182BC4B50")]
get
{
AlgorithmIdentifier algorithmIdentifier = this.prf;
if (algorithmIdentifier == 0)
{
return true;
}
Asn1Object asn1Object = algorithmIdentifier.ToAsn1Object();
throw new NullReferenceException();
}
}
// Token: 0x17001EB4 RID: 7860
// (get) Token: 0x0600C5CC RID: 50636 RVA: 0x002D26E8 File Offset: 0x002D08E8
[Token(Token = "0x17001EB4")]
public AlgorithmIdentifier Prf
{
[Token(Token = "0x600C5CC")]
[Address(RVA = "0x2BC4BE0", Offset = "0x2BC39E0", VA = "0x182BC4BE0")]
get
{
AlgorithmIdentifier algorithmIdentifier = this.prf;
if (algorithmIdentifier == 0)
{
}
return algorithmIdentifier;
}
}
// Token: 0x0600C5CD RID: 50637 RVA: 0x002D2704 File Offset: 0x002D0904
[Token(Token = "0x600C5CD")]
[Address(RVA = "0x2BC4310", Offset = "0x2BC3110", VA = "0x182BC4310", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
Asn1OctetString asn1OctetString = this.octStr;
if (asn1OctetString != 0)
{
}
array[0] = asn1OctetString;
DerInteger derInteger = this.iterationCount;
if (derInteger != 0)
{
}
array[1] = derInteger;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.keyLength != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
DerInteger derInteger2 = this.keyLength;
if (derInteger2 != 0)
{
}
array2[0] = derInteger2;
asn1EncodableVector.Add(array2);
}
if (this.prf != 0)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
AlgorithmIdentifier algorithmIdentifier = this.prf;
if (algorithmIdentifier != 0)
{
}
array3[0] = algorithmIdentifier;
asn1EncodableVector.Add(array3);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600C5CE RID: 50638 RVA: 0x002D27B4 File Offset: 0x002D09B4
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600C5CE")]
[Address(RVA = "0x2BC45E0", Offset = "0x2BC33E0", VA = "0x182BC45E0")]
static Pbkdf2Params()
{
DerObjectIdentifier idHmacWithSha = PkcsObjectIdentifiers.IdHmacWithSha1;
DerNull instance = DerNull.Instance;
Pbkdf2Params.algid_hmacWithSHA1 = new AlgorithmIdentifier(idHmacWithSha, instance);
}
// Token: 0x04007D15 RID: 32021
[Token(Token = "0x4007D15")]
private static AlgorithmIdentifier algid_hmacWithSHA1;
// Token: 0x04007D16 RID: 32022
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D16")]
private readonly Asn1OctetString octStr;
// Token: 0x04007D17 RID: 32023
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D17")]
private readonly DerInteger iterationCount;
// Token: 0x04007D18 RID: 32024
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007D18")]
private readonly DerInteger keyLength;
// Token: 0x04007D19 RID: 32025
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007D19")]
private readonly AlgorithmIdentifier prf;
}
}
@@ -0,0 +1,112 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E96 RID: 7830
[Token(Token = "0x2001E96")]
public class Pfx : Asn1Encodable
{
// Token: 0x0600C5D7 RID: 50647 RVA: 0x002D2E60 File Offset: 0x002D1060
[Token(Token = "0x600C5D7")]
[Address(RVA = "0x2BC4E40", Offset = "0x2BC3C40", VA = "0x182BC4E40")]
public Pfx(Asn1Sequence seq)
{
Asn1SequenceParser parser;
BigInteger bigInteger;
do
{
base..ctor();
parser = seq.Parser;
}
while (parser == 0 || parser == 0 || bigInteger.IntValue != 3);
Asn1SequenceParser parser2 = seq.Parser;
ContentInfo contentInfo;
this.contentInfo = contentInfo;
Asn1Encodable asn1Encodable;
if (asn1Encodable == (ulong)3L)
{
Asn1SequenceParser parser3 = seq.Parser;
MacData macData;
this.macData = macData;
}
}
// Token: 0x0600C5D8 RID: 50648 RVA: 0x002D2EBC File Offset: 0x002D10BC
[Token(Token = "0x600C5D8")]
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
public Pfx(ContentInfo contentInfo, MacData macData)
{
this.contentInfo = contentInfo;
this.macData = macData;
}
// Token: 0x17001EB6 RID: 7862
// (get) Token: 0x0600C5D9 RID: 50649 RVA: 0x002D2EE0 File Offset: 0x002D10E0
[Token(Token = "0x17001EB6")]
public ContentInfo AuthSafe
{
[Token(Token = "0x600C5D9")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.contentInfo;
}
}
// Token: 0x17001EB7 RID: 7863
// (get) Token: 0x0600C5DA RID: 50650 RVA: 0x002D2EF4 File Offset: 0x002D10F4
[Token(Token = "0x17001EB7")]
public MacData MacData
{
[Token(Token = "0x600C5DA")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.macData;
}
}
// Token: 0x0600C5DB RID: 50651 RVA: 0x002D2F08 File Offset: 0x002D1108
[Token(Token = "0x600C5DB")]
[Address(RVA = "0x2BC4C50", Offset = "0x2BC3A50", VA = "0x182BC4C50", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
DerInteger derInteger = new DerInteger(3);
if (derInteger != 0)
{
}
array[0] = derInteger;
ContentInfo contentInfo = this.contentInfo;
if (contentInfo != 0)
{
}
array[1] = contentInfo;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.macData != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
MacData macData = this.macData;
if (macData != 0)
{
}
array2[0] = macData;
asn1EncodableVector.Add(array2);
}
BerSequence berSequence = new BerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007DAC RID: 32172
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DAC")]
private ContentInfo contentInfo;
// Token: 0x04007DAD RID: 32173
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DAD")]
private MacData macData;
}
}
@@ -0,0 +1,132 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E94 RID: 7828
[Token(Token = "0x2001E94")]
public class Pkcs12PbeParams : Asn1Encodable
{
// Token: 0x0600C5CF RID: 50639 RVA: 0x002D27DC File Offset: 0x002D09DC
[Token(Token = "0x600C5CF")]
[Address(RVA = "0x2BC53B0", Offset = "0x2BC41B0", VA = "0x182BC53B0")]
public Pkcs12PbeParams(byte[] salt, int iterations)
{
DerOctetString derOctetString = new DerOctetString(salt);
this.iv = derOctetString;
DerInteger derInteger = new DerInteger(iterations);
this.iterations = derInteger;
}
// Token: 0x0600C5D0 RID: 50640 RVA: 0x002D280C File Offset: 0x002D0A0C
[Token(Token = "0x600C5D0")]
[Address(RVA = "0x2BC5450", Offset = "0x2BC4250", VA = "0x182BC5450")]
private Pkcs12PbeParams(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C5D0)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pkcs12PbeParams::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:ArgumentException(var_5_3F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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 1660
*/;
}
// Token: 0x0600C5D1 RID: 50641 RVA: 0x002D285C File Offset: 0x002D0A5C
[Token(Token = "0x600C5D1")]
[Address(RVA = "0x2BC4FF0", Offset = "0x2BC3DF0", VA = "0x182BC4FF0")]
public static Pkcs12PbeParams GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C5D1)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pkcs12PbeParams BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.Pkcs12PbeParams::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_32:
stloc:string(var_8_38, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_9_50, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_8_38)), ldstr:string("obj")))
stloc:ArgumentException(var_10_61, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), 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.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 1660
*/;
}
// Token: 0x17001EB5 RID: 7861
// (get) Token: 0x0600C5D2 RID: 50642 RVA: 0x002D28CC File Offset: 0x002D0ACC
[Token(Token = "0x17001EB5")]
public BigInteger Iterations
{
[Token(Token = "0x600C5D2")]
[Address(RVA = "0x283C9E0", Offset = "0x283B7E0", VA = "0x18283C9E0")]
get
{
return this.iterations.Value;
}
}
// Token: 0x0600C5D3 RID: 50643 RVA: 0x002D28EC File Offset: 0x002D0AEC
[Token(Token = "0x600C5D3")]
[Address(RVA = "0x260E100", Offset = "0x260CF00", VA = "0x18260E100")]
public byte[] GetIV()
{
Stream octetStream = ((Asn1OctetStringParser)this.iv).GetOctetStream();
throw new NullReferenceException();
}
// Token: 0x0600C5D4 RID: 50644 RVA: 0x002D290C File Offset: 0x002D0B0C
[Token(Token = "0x600C5D4")]
[Address(RVA = "0x2BC52A0", Offset = "0x2BC40A0", VA = "0x182BC52A0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
Asn1OctetString asn1OctetString = this.iv;
if (asn1OctetString != 0)
{
}
array[0] = asn1OctetString;
DerInteger derInteger = this.iterations;
if (derInteger != 0)
{
}
array[1] = derInteger;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007D1A RID: 32026
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007D1A")]
private readonly DerInteger iterations;
// Token: 0x04007D1B RID: 32027
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007D1B")]
private readonly Asn1OctetString iv;
}
}
@@ -0,0 +1,708 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E95 RID: 7829
[Token(Token = "0x2001E95")]
public abstract class PkcsObjectIdentifiers
{
// Token: 0x0600C5D5 RID: 50645 RVA: 0x002D2954 File Offset: 0x002D0B54
[Token(Token = "0x600C5D5")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected PkcsObjectIdentifiers()
{
}
// Token: 0x0600C5D6 RID: 50646 RVA: 0x002D2968 File Offset: 0x002D0B68
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600C5D6")]
[Address(RVA = "0x2BC5540", Offset = "0x2BC4340", VA = "0x182BC5540")]
static PkcsObjectIdentifiers()
{
/*
An exception occurred when decompiling this method (0600C5D6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PkcsObjectIdentifiers::.cctor()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.1")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::RsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD4WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SrsaOaepEncryptionSet, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsaesOaep, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdMgf1, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdPSpecified, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512_224WithRSAEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512_256WithRSAEncryption, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs1Oid)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::DhKeyAgreement, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.3.1")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD2AndDesCbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.1")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD2AndRC2Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.4")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD5AndDesCbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.3")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD5AndRC2Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.6")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithSha1AndDesCbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.10")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithSha1AndRC2Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.11")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdPbeS2, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.13")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdPbkdf2, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.5.12")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::DesEde3Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.3.7")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::RC2Cbc, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.3.2")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.2")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD4, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.4")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.5")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha1, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.7")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha224, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.8")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha256, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.9")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha384, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.10")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdHmacWithSha512, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.2.11")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Data, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.1")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SignedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.2")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::EnvelopedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.3")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SignedAndEnvelopedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.4")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::DigestedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.5")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::EncryptedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.7.6")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtEmailAddress, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.1")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtUnstructuredName, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.2")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtContentType, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.3")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtMessageDigest, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.4")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSigningTime, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.5")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtCounterSignature, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.6")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtChallengePassword, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.7")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtUnstructuredAddress, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.8")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtExtendedCertificateAttributes, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.9")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSigningDescription, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.13")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtExtensionRequest, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.14")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSmimeCapabilities, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.15")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdSmime, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtFriendlyName, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.20")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtLocalKeyID, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.21")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::X509CertType, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.22.1")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::X509Certificate, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.22.1")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SdsiCertificate, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.22.2")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::X509Crl, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.23.1")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdSmime)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgEsdh, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgCms3DesWrap, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgCmsRC2Wrap, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgPwriKek, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlgSsdh, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsaKem, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAlg)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PreferSignedData, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSmimeCapabilities)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::CannotDecryptAny, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSmimeCapabilities)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::SmimeCapabilitiesVersions, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtSmimeCapabilities)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAAReceiptRequest, callvirt:int32[exp:DerObjectIdentifier](DerObjectIdentifier::Asn1GetHashCode, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdSmime)))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTAuthData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.2")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTTstInfo, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.4")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTCompressedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.9")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTAuthEnvelopedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.23")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCTTimestampedData, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.1.31")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfOrigin, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.1")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfReceipt, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.2")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfDelivery, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.3")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfSender, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.4")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfApproval, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.5")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdCtiEtsProofOfCreation, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.6.6")))
stsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdAAOid, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.2.840.113549.1.9.16.2")))
}
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 1660
*/;
}
// Token: 0x04007D1C RID: 32028
[Token(Token = "0x4007D1C")]
public const string Pkcs1 = "1.2.840.113549.1.1";
// Token: 0x04007D1D RID: 32029
[Token(Token = "0x4007D1D")]
internal static readonly DerObjectIdentifier Pkcs1Oid;
// Token: 0x04007D1E RID: 32030
[Token(Token = "0x4007D1E")]
public static readonly DerObjectIdentifier RsaEncryption;
// Token: 0x04007D1F RID: 32031
[Token(Token = "0x4007D1F")]
public static readonly DerObjectIdentifier MD2WithRsaEncryption;
// Token: 0x04007D20 RID: 32032
[Token(Token = "0x4007D20")]
public static readonly DerObjectIdentifier MD4WithRsaEncryption;
// Token: 0x04007D21 RID: 32033
[Token(Token = "0x4007D21")]
public static readonly DerObjectIdentifier MD5WithRsaEncryption;
// Token: 0x04007D22 RID: 32034
[Token(Token = "0x4007D22")]
public static readonly DerObjectIdentifier Sha1WithRsaEncryption;
// Token: 0x04007D23 RID: 32035
[Token(Token = "0x4007D23")]
public static readonly DerObjectIdentifier SrsaOaepEncryptionSet;
// Token: 0x04007D24 RID: 32036
[Token(Token = "0x4007D24")]
public static readonly DerObjectIdentifier IdRsaesOaep;
// Token: 0x04007D25 RID: 32037
[Token(Token = "0x4007D25")]
public static readonly DerObjectIdentifier IdMgf1;
// Token: 0x04007D26 RID: 32038
[Token(Token = "0x4007D26")]
public static readonly DerObjectIdentifier IdPSpecified;
// Token: 0x04007D27 RID: 32039
[Token(Token = "0x4007D27")]
public static readonly DerObjectIdentifier IdRsassaPss;
// Token: 0x04007D28 RID: 32040
[Token(Token = "0x4007D28")]
public static readonly DerObjectIdentifier Sha256WithRsaEncryption;
// Token: 0x04007D29 RID: 32041
[Token(Token = "0x4007D29")]
public static readonly DerObjectIdentifier Sha384WithRsaEncryption;
// Token: 0x04007D2A RID: 32042
[Token(Token = "0x4007D2A")]
public static readonly DerObjectIdentifier Sha512WithRsaEncryption;
// Token: 0x04007D2B RID: 32043
[Token(Token = "0x4007D2B")]
public static readonly DerObjectIdentifier Sha224WithRsaEncryption;
// Token: 0x04007D2C RID: 32044
[Token(Token = "0x4007D2C")]
public static readonly DerObjectIdentifier Sha512_224WithRSAEncryption;
// Token: 0x04007D2D RID: 32045
[Token(Token = "0x4007D2D")]
public static readonly DerObjectIdentifier Sha512_256WithRSAEncryption;
// Token: 0x04007D2E RID: 32046
[Token(Token = "0x4007D2E")]
public const string Pkcs3 = "1.2.840.113549.1.3";
// Token: 0x04007D2F RID: 32047
[Token(Token = "0x4007D2F")]
public static readonly DerObjectIdentifier DhKeyAgreement;
// Token: 0x04007D30 RID: 32048
[Token(Token = "0x4007D30")]
public const string Pkcs5 = "1.2.840.113549.1.5";
// Token: 0x04007D31 RID: 32049
[Token(Token = "0x4007D31")]
public static readonly DerObjectIdentifier PbeWithMD2AndDesCbc;
// Token: 0x04007D32 RID: 32050
[Token(Token = "0x4007D32")]
public static readonly DerObjectIdentifier PbeWithMD2AndRC2Cbc;
// Token: 0x04007D33 RID: 32051
[Token(Token = "0x4007D33")]
public static readonly DerObjectIdentifier PbeWithMD5AndDesCbc;
// Token: 0x04007D34 RID: 32052
[Token(Token = "0x4007D34")]
public static readonly DerObjectIdentifier PbeWithMD5AndRC2Cbc;
// Token: 0x04007D35 RID: 32053
[Token(Token = "0x4007D35")]
public static readonly DerObjectIdentifier PbeWithSha1AndDesCbc;
// Token: 0x04007D36 RID: 32054
[Token(Token = "0x4007D36")]
public static readonly DerObjectIdentifier PbeWithSha1AndRC2Cbc;
// Token: 0x04007D37 RID: 32055
[Token(Token = "0x4007D37")]
public static readonly DerObjectIdentifier IdPbeS2;
// Token: 0x04007D38 RID: 32056
[Token(Token = "0x4007D38")]
public static readonly DerObjectIdentifier IdPbkdf2;
// Token: 0x04007D39 RID: 32057
[Token(Token = "0x4007D39")]
public const string EncryptionAlgorithm = "1.2.840.113549.3";
// Token: 0x04007D3A RID: 32058
[Token(Token = "0x4007D3A")]
public static readonly DerObjectIdentifier DesEde3Cbc;
// Token: 0x04007D3B RID: 32059
[Token(Token = "0x4007D3B")]
public static readonly DerObjectIdentifier RC2Cbc;
// Token: 0x04007D3C RID: 32060
[Token(Token = "0x4007D3C")]
public const string DigestAlgorithm = "1.2.840.113549.2";
// Token: 0x04007D3D RID: 32061
[Token(Token = "0x4007D3D")]
public static readonly DerObjectIdentifier MD2;
// Token: 0x04007D3E RID: 32062
[Token(Token = "0x4007D3E")]
public static readonly DerObjectIdentifier MD4;
// Token: 0x04007D3F RID: 32063
[Token(Token = "0x4007D3F")]
public static readonly DerObjectIdentifier MD5;
// Token: 0x04007D40 RID: 32064
[Token(Token = "0x4007D40")]
public static readonly DerObjectIdentifier IdHmacWithSha1;
// Token: 0x04007D41 RID: 32065
[Token(Token = "0x4007D41")]
public static readonly DerObjectIdentifier IdHmacWithSha224;
// Token: 0x04007D42 RID: 32066
[Token(Token = "0x4007D42")]
public static readonly DerObjectIdentifier IdHmacWithSha256;
// Token: 0x04007D43 RID: 32067
[Token(Token = "0x4007D43")]
public static readonly DerObjectIdentifier IdHmacWithSha384;
// Token: 0x04007D44 RID: 32068
[Token(Token = "0x4007D44")]
public static readonly DerObjectIdentifier IdHmacWithSha512;
// Token: 0x04007D45 RID: 32069
[Token(Token = "0x4007D45")]
public const string Pkcs7 = "1.2.840.113549.1.7";
// Token: 0x04007D46 RID: 32070
[Token(Token = "0x4007D46")]
public static readonly DerObjectIdentifier Data;
// Token: 0x04007D47 RID: 32071
[Token(Token = "0x4007D47")]
public static readonly DerObjectIdentifier SignedData;
// Token: 0x04007D48 RID: 32072
[Token(Token = "0x4007D48")]
public static readonly DerObjectIdentifier EnvelopedData;
// Token: 0x04007D49 RID: 32073
[Token(Token = "0x4007D49")]
public static readonly DerObjectIdentifier SignedAndEnvelopedData;
// Token: 0x04007D4A RID: 32074
[Token(Token = "0x4007D4A")]
public static readonly DerObjectIdentifier DigestedData;
// Token: 0x04007D4B RID: 32075
[Token(Token = "0x4007D4B")]
public static readonly DerObjectIdentifier EncryptedData;
// Token: 0x04007D4C RID: 32076
[Token(Token = "0x4007D4C")]
public const string Pkcs9 = "1.2.840.113549.1.9";
// Token: 0x04007D4D RID: 32077
[Token(Token = "0x4007D4D")]
public static readonly DerObjectIdentifier Pkcs9AtEmailAddress;
// Token: 0x04007D4E RID: 32078
[Token(Token = "0x4007D4E")]
public static readonly DerObjectIdentifier Pkcs9AtUnstructuredName;
// Token: 0x04007D4F RID: 32079
[Token(Token = "0x4007D4F")]
public static readonly DerObjectIdentifier Pkcs9AtContentType;
// Token: 0x04007D50 RID: 32080
[Token(Token = "0x4007D50")]
public static readonly DerObjectIdentifier Pkcs9AtMessageDigest;
// Token: 0x04007D51 RID: 32081
[Token(Token = "0x4007D51")]
public static readonly DerObjectIdentifier Pkcs9AtSigningTime;
// Token: 0x04007D52 RID: 32082
[Token(Token = "0x4007D52")]
public static readonly DerObjectIdentifier Pkcs9AtCounterSignature;
// Token: 0x04007D53 RID: 32083
[Token(Token = "0x4007D53")]
public static readonly DerObjectIdentifier Pkcs9AtChallengePassword;
// Token: 0x04007D54 RID: 32084
[Token(Token = "0x4007D54")]
public static readonly DerObjectIdentifier Pkcs9AtUnstructuredAddress;
// Token: 0x04007D55 RID: 32085
[Token(Token = "0x4007D55")]
public static readonly DerObjectIdentifier Pkcs9AtExtendedCertificateAttributes;
// Token: 0x04007D56 RID: 32086
[Token(Token = "0x4007D56")]
public static readonly DerObjectIdentifier Pkcs9AtSigningDescription;
// Token: 0x04007D57 RID: 32087
[Token(Token = "0x4007D57")]
public static readonly DerObjectIdentifier Pkcs9AtExtensionRequest;
// Token: 0x04007D58 RID: 32088
[Token(Token = "0x4007D58")]
public static readonly DerObjectIdentifier Pkcs9AtSmimeCapabilities;
// Token: 0x04007D59 RID: 32089
[Token(Token = "0x4007D59")]
public static readonly DerObjectIdentifier IdSmime;
// Token: 0x04007D5A RID: 32090
[Token(Token = "0x4007D5A")]
public static readonly DerObjectIdentifier Pkcs9AtFriendlyName;
// Token: 0x04007D5B RID: 32091
[Token(Token = "0x4007D5B")]
public static readonly DerObjectIdentifier Pkcs9AtLocalKeyID;
// Token: 0x04007D5C RID: 32092
[Token(Token = "0x4007D5C")]
[Obsolete]
public static readonly DerObjectIdentifier X509CertType;
// Token: 0x04007D5D RID: 32093
[Token(Token = "0x4007D5D")]
public const string CertTypes = "1.2.840.113549.1.9.22";
// Token: 0x04007D5E RID: 32094
[Token(Token = "0x4007D5E")]
public static readonly DerObjectIdentifier X509Certificate;
// Token: 0x04007D5F RID: 32095
[Token(Token = "0x4007D5F")]
public static readonly DerObjectIdentifier SdsiCertificate;
// Token: 0x04007D60 RID: 32096
[Token(Token = "0x4007D60")]
public const string CrlTypes = "1.2.840.113549.1.9.23";
// Token: 0x04007D61 RID: 32097
[Token(Token = "0x4007D61")]
public static readonly DerObjectIdentifier X509Crl;
// Token: 0x04007D62 RID: 32098
[Token(Token = "0x4007D62")]
public static readonly DerObjectIdentifier IdAlg;
// Token: 0x04007D63 RID: 32099
[Token(Token = "0x4007D63")]
public static readonly DerObjectIdentifier IdAlgEsdh;
// Token: 0x04007D64 RID: 32100
[Token(Token = "0x4007D64")]
public static readonly DerObjectIdentifier IdAlgCms3DesWrap;
// Token: 0x04007D65 RID: 32101
[Token(Token = "0x4007D65")]
public static readonly DerObjectIdentifier IdAlgCmsRC2Wrap;
// Token: 0x04007D66 RID: 32102
[Token(Token = "0x4007D66")]
public static readonly DerObjectIdentifier IdAlgPwriKek;
// Token: 0x04007D67 RID: 32103
[Token(Token = "0x4007D67")]
public static readonly DerObjectIdentifier IdAlgSsdh;
// Token: 0x04007D68 RID: 32104
[Token(Token = "0x4007D68")]
public static readonly DerObjectIdentifier IdRsaKem;
// Token: 0x04007D69 RID: 32105
[Token(Token = "0x4007D69")]
public static readonly DerObjectIdentifier PreferSignedData;
// Token: 0x04007D6A RID: 32106
[Token(Token = "0x4007D6A")]
public static readonly DerObjectIdentifier CannotDecryptAny;
// Token: 0x04007D6B RID: 32107
[Token(Token = "0x4007D6B")]
public static readonly DerObjectIdentifier SmimeCapabilitiesVersions;
// Token: 0x04007D6C RID: 32108
[Token(Token = "0x4007D6C")]
public static readonly DerObjectIdentifier IdAAReceiptRequest;
// Token: 0x04007D6D RID: 32109
[Token(Token = "0x4007D6D")]
public const string IdCT = "1.2.840.113549.1.9.16.1";
// Token: 0x04007D6E RID: 32110
[Token(Token = "0x4007D6E")]
public static readonly DerObjectIdentifier IdCTAuthData;
// Token: 0x04007D6F RID: 32111
[Token(Token = "0x4007D6F")]
public static readonly DerObjectIdentifier IdCTTstInfo;
// Token: 0x04007D70 RID: 32112
[Token(Token = "0x4007D70")]
public static readonly DerObjectIdentifier IdCTCompressedData;
// Token: 0x04007D71 RID: 32113
[Token(Token = "0x4007D71")]
public static readonly DerObjectIdentifier IdCTAuthEnvelopedData;
// Token: 0x04007D72 RID: 32114
[Token(Token = "0x4007D72")]
public static readonly DerObjectIdentifier IdCTTimestampedData;
// Token: 0x04007D73 RID: 32115
[Token(Token = "0x4007D73")]
public const string IdCti = "1.2.840.113549.1.9.16.6";
// Token: 0x04007D74 RID: 32116
[Token(Token = "0x4007D74")]
public static readonly DerObjectIdentifier IdCtiEtsProofOfOrigin;
// Token: 0x04007D75 RID: 32117
[Token(Token = "0x4007D75")]
public static readonly DerObjectIdentifier IdCtiEtsProofOfReceipt;
// Token: 0x04007D76 RID: 32118
[Token(Token = "0x4007D76")]
public static readonly DerObjectIdentifier IdCtiEtsProofOfDelivery;
// Token: 0x04007D77 RID: 32119
[Token(Token = "0x4007D77")]
public static readonly DerObjectIdentifier IdCtiEtsProofOfSender;
// Token: 0x04007D78 RID: 32120
[Token(Token = "0x4007D78")]
public static readonly DerObjectIdentifier IdCtiEtsProofOfApproval;
// Token: 0x04007D79 RID: 32121
[Token(Token = "0x4007D79")]
public static readonly DerObjectIdentifier IdCtiEtsProofOfCreation;
// Token: 0x04007D7A RID: 32122
[Token(Token = "0x4007D7A")]
public const string IdAA = "1.2.840.113549.1.9.16.2";
// Token: 0x04007D7B RID: 32123
[Token(Token = "0x4007D7B")]
public static readonly DerObjectIdentifier IdAAOid;
// Token: 0x04007D7C RID: 32124
[Token(Token = "0x4007D7C")]
public static readonly DerObjectIdentifier IdAAContentHint;
// Token: 0x04007D7D RID: 32125
[Token(Token = "0x4007D7D")]
public static readonly DerObjectIdentifier IdAAMsgSigDigest;
// Token: 0x04007D7E RID: 32126
[Token(Token = "0x4007D7E")]
public static readonly DerObjectIdentifier IdAAContentReference;
// Token: 0x04007D7F RID: 32127
[Token(Token = "0x4007D7F")]
public static readonly DerObjectIdentifier IdAAEncrypKeyPref;
// Token: 0x04007D80 RID: 32128
[Token(Token = "0x4007D80")]
public static readonly DerObjectIdentifier IdAASigningCertificate;
// Token: 0x04007D81 RID: 32129
[Token(Token = "0x4007D81")]
public static readonly DerObjectIdentifier IdAASigningCertificateV2;
// Token: 0x04007D82 RID: 32130
[Token(Token = "0x4007D82")]
public static readonly DerObjectIdentifier IdAAContentIdentifier;
// Token: 0x04007D83 RID: 32131
[Token(Token = "0x4007D83")]
public static readonly DerObjectIdentifier IdAASignatureTimeStampToken;
// Token: 0x04007D84 RID: 32132
[Token(Token = "0x4007D84")]
public static readonly DerObjectIdentifier IdAAEtsSigPolicyID;
// Token: 0x04007D85 RID: 32133
[Token(Token = "0x4007D85")]
public static readonly DerObjectIdentifier IdAAEtsCommitmentType;
// Token: 0x04007D86 RID: 32134
[Token(Token = "0x4007D86")]
public static readonly DerObjectIdentifier IdAAEtsSignerLocation;
// Token: 0x04007D87 RID: 32135
[Token(Token = "0x4007D87")]
public static readonly DerObjectIdentifier IdAAEtsSignerAttr;
// Token: 0x04007D88 RID: 32136
[Token(Token = "0x4007D88")]
public static readonly DerObjectIdentifier IdAAEtsOtherSigCert;
// Token: 0x04007D89 RID: 32137
[Token(Token = "0x4007D89")]
public static readonly DerObjectIdentifier IdAAEtsContentTimestamp;
// Token: 0x04007D8A RID: 32138
[Token(Token = "0x4007D8A")]
public static readonly DerObjectIdentifier IdAAEtsCertificateRefs;
// Token: 0x04007D8B RID: 32139
[Token(Token = "0x4007D8B")]
public static readonly DerObjectIdentifier IdAAEtsRevocationRefs;
// Token: 0x04007D8C RID: 32140
[Token(Token = "0x4007D8C")]
public static readonly DerObjectIdentifier IdAAEtsCertValues;
// Token: 0x04007D8D RID: 32141
[Token(Token = "0x4007D8D")]
public static readonly DerObjectIdentifier IdAAEtsRevocationValues;
// Token: 0x04007D8E RID: 32142
[Token(Token = "0x4007D8E")]
public static readonly DerObjectIdentifier IdAAEtsEscTimeStamp;
// Token: 0x04007D8F RID: 32143
[Token(Token = "0x4007D8F")]
public static readonly DerObjectIdentifier IdAAEtsCertCrlTimestamp;
// Token: 0x04007D90 RID: 32144
[Token(Token = "0x4007D90")]
public static readonly DerObjectIdentifier IdAAEtsArchiveTimestamp;
// Token: 0x04007D91 RID: 32145
[Token(Token = "0x4007D91")]
public static readonly DerObjectIdentifier IdAADecryptKeyID;
// Token: 0x04007D92 RID: 32146
[Token(Token = "0x4007D92")]
public static readonly DerObjectIdentifier IdAAImplCryptoAlgs;
// Token: 0x04007D93 RID: 32147
[Token(Token = "0x4007D93")]
public static readonly DerObjectIdentifier IdAAAsymmDecryptKeyID;
// Token: 0x04007D94 RID: 32148
[Token(Token = "0x4007D94")]
public static readonly DerObjectIdentifier IdAAImplCompressAlgs;
// Token: 0x04007D95 RID: 32149
[Token(Token = "0x4007D95")]
public static readonly DerObjectIdentifier IdAACommunityIdentifiers;
// Token: 0x04007D96 RID: 32150
[Token(Token = "0x4007D96")]
[Obsolete]
public static readonly DerObjectIdentifier IdAASigPolicyID;
// Token: 0x04007D97 RID: 32151
[Token(Token = "0x4007D97")]
[Obsolete]
public static readonly DerObjectIdentifier IdAACommitmentType;
// Token: 0x04007D98 RID: 32152
[Token(Token = "0x4007D98")]
[Obsolete]
public static readonly DerObjectIdentifier IdAASignerLocation;
// Token: 0x04007D99 RID: 32153
[Token(Token = "0x4007D99")]
[Obsolete]
public static readonly DerObjectIdentifier IdAAOtherSigCert;
// Token: 0x04007D9A RID: 32154
[Token(Token = "0x4007D9A")]
public const string IdSpq = "1.2.840.113549.1.9.16.5";
// Token: 0x04007D9B RID: 32155
[Token(Token = "0x4007D9B")]
public static readonly DerObjectIdentifier IdSpqEtsUri;
// Token: 0x04007D9C RID: 32156
[Token(Token = "0x4007D9C")]
public static readonly DerObjectIdentifier IdSpqEtsUNotice;
// Token: 0x04007D9D RID: 32157
[Token(Token = "0x4007D9D")]
public const string Pkcs12 = "1.2.840.113549.1.12";
// Token: 0x04007D9E RID: 32158
[Token(Token = "0x4007D9E")]
public const string BagTypes = "1.2.840.113549.1.12.10.1";
// Token: 0x04007D9F RID: 32159
[Token(Token = "0x4007D9F")]
public static readonly DerObjectIdentifier KeyBag;
// Token: 0x04007DA0 RID: 32160
[Token(Token = "0x4007DA0")]
public static readonly DerObjectIdentifier Pkcs8ShroudedKeyBag;
// Token: 0x04007DA1 RID: 32161
[Token(Token = "0x4007DA1")]
public static readonly DerObjectIdentifier CertBag;
// Token: 0x04007DA2 RID: 32162
[Token(Token = "0x4007DA2")]
public static readonly DerObjectIdentifier CrlBag;
// Token: 0x04007DA3 RID: 32163
[Token(Token = "0x4007DA3")]
public static readonly DerObjectIdentifier SecretBag;
// Token: 0x04007DA4 RID: 32164
[Token(Token = "0x4007DA4")]
public static readonly DerObjectIdentifier SafeContentsBag;
// Token: 0x04007DA5 RID: 32165
[Token(Token = "0x4007DA5")]
public const string Pkcs12PbeIds = "1.2.840.113549.1.12.1";
// Token: 0x04007DA6 RID: 32166
[Token(Token = "0x4007DA6")]
public static readonly DerObjectIdentifier PbeWithShaAnd128BitRC4;
// Token: 0x04007DA7 RID: 32167
[Token(Token = "0x4007DA7")]
public static readonly DerObjectIdentifier PbeWithShaAnd40BitRC4;
// Token: 0x04007DA8 RID: 32168
[Token(Token = "0x4007DA8")]
public static readonly DerObjectIdentifier PbeWithShaAnd3KeyTripleDesCbc;
// Token: 0x04007DA9 RID: 32169
[Token(Token = "0x4007DA9")]
public static readonly DerObjectIdentifier PbeWithShaAnd2KeyTripleDesCbc;
// Token: 0x04007DAA RID: 32170
[Token(Token = "0x4007DAA")]
public static readonly DerObjectIdentifier PbeWithShaAnd128BitRC2Cbc;
// Token: 0x04007DAB RID: 32171
[Token(Token = "0x4007DAB")]
public static readonly DerObjectIdentifier PbewithShaAnd40BitRC2Cbc;
}
}
@@ -0,0 +1,294 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E97 RID: 7831
[Token(Token = "0x2001E97")]
public class PrivateKeyInfo : Asn1Encodable
{
// Token: 0x0600C5DC RID: 50652 RVA: 0x002D2F88 File Offset: 0x002D1188
[Token(Token = "0x600C5DC")]
[Address(RVA = "0x2BC7320", Offset = "0x2BC6120", VA = "0x182BC7320")]
public static PrivateKeyInfo 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 PrivateKeyInfo(instance2);
}
// Token: 0x0600C5DD RID: 50653 RVA: 0x002D2FC4 File Offset: 0x002D11C4
[Token(Token = "0x600C5DD")]
[Address(RVA = "0x2BC7220", Offset = "0x2BC6020", VA = "0x182BC7220")]
public static PrivateKeyInfo GetInstance(object obj)
{
while (obj != 0)
{
Asn1Sequence instance;
if (obj == 0)
{
instance = Asn1Sequence.GetInstance(obj);
return new PrivateKeyInfo(instance);
}
if (instance != 0)
{
return;
}
}
}
// Token: 0x0600C5DE RID: 50654 RVA: 0x002D2FF8 File Offset: 0x002D11F8
[Token(Token = "0x600C5DE")]
[Address(RVA = "0x2BC7420", Offset = "0x2BC6220", VA = "0x182BC7420")]
private static int GetVersionValue(DerInteger version)
{
BigInteger value = version.Value;
BigInteger zero = BigInteger.Zero;
int num = value.CompareTo(zero);
BigInteger one = BigInteger.One;
int num2 = value.CompareTo(one);
return value.IntValue;
}
// Token: 0x0600C5DF RID: 50655 RVA: 0x002D3038 File Offset: 0x002D1238
[Token(Token = "0x600C5DF")]
[Address(RVA = "0x2BC7DC0", Offset = "0x2BC6BC0", VA = "0x182BC7DC0")]
public PrivateKeyInfo(AlgorithmIdentifier privateKeyAlgorithm, Asn1Encodable privateKey)
{
DerInteger derInteger = new DerInteger(BigInteger.Zero);
this.version = derInteger;
this.privateKeyAlgorithm = privateKeyAlgorithm;
DerOctetString derOctetString = new DerOctetString(privateKey);
int num = 0;
this.privateKey = derOctetString;
this.attributes = num;
this.publicKey = num;
}
// Token: 0x0600C5E0 RID: 50656 RVA: 0x002D3088 File Offset: 0x002D1288
[Token(Token = "0x600C5E0")]
[Address(RVA = "0x2BC78C0", Offset = "0x2BC66C0", VA = "0x182BC78C0")]
public PrivateKeyInfo(AlgorithmIdentifier privateKeyAlgorithm, Asn1Encodable privateKey, Asn1Set attributes)
{
}
// Token: 0x0600C5E1 RID: 50657 RVA: 0x002D3098 File Offset: 0x002D1298
[Token(Token = "0x600C5E1")]
[Address(RVA = "0x2BC7C60", Offset = "0x2BC6A60", VA = "0x182BC7C60")]
public PrivateKeyInfo(AlgorithmIdentifier privateKeyAlgorithm, Asn1Encodable privateKey, Asn1Set attributes, byte[] publicKey)
{
DerInteger derInteger = new DerInteger(BigInteger.Zero);
this.version = derInteger;
this.privateKeyAlgorithm = privateKeyAlgorithm;
DerOctetString derOctetString = new DerOctetString(privateKey);
this.privateKey = derOctetString;
this.attributes = attributes;
DerBitString derBitString;
this.publicKey = derBitString;
}
// Token: 0x0600C5E2 RID: 50658 RVA: 0x002D30E8 File Offset: 0x002D12E8
[Token(Token = "0x600C5E2")]
[Address(RVA = "0x2BC78E0", Offset = "0x2BC66E0", VA = "0x182BC78E0")]
private PrivateKeyInfo(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C5E2)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PrivateKeyInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_C9:
stloc:ArgumentException(var_15_D8, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown optional field in private key info"), 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 1660
*/;
}
// Token: 0x17001EB8 RID: 7864
// (get) Token: 0x0600C5E3 RID: 50659 RVA: 0x002D31D0 File Offset: 0x002D13D0
[Token(Token = "0x17001EB8")]
public virtual Asn1Set Attributes
{
[Token(Token = "0x600C5E3")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "6")]
get
{
return this.attributes;
}
}
// Token: 0x17001EB9 RID: 7865
// (get) Token: 0x0600C5E4 RID: 50660 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x17001EB9")]
public virtual bool HasPublicKey
{
[Token(Token = "0x600C5E4")]
[Address(RVA = "0xA5F420", Offset = "0xA5E220", VA = "0x180A5F420", Slot = "7")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x17001EBA RID: 7866
// (get) Token: 0x0600C5E5 RID: 50661 RVA: 0x002D31E4 File Offset: 0x002D13E4
[Token(Token = "0x17001EBA")]
public virtual AlgorithmIdentifier PrivateKeyAlgorithm
{
[Token(Token = "0x600C5E5")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "8")]
get
{
return this.privateKeyAlgorithm;
}
}
// Token: 0x0600C5E6 RID: 50662 RVA: 0x002D31F8 File Offset: 0x002D13F8
[Token(Token = "0x600C5E6")]
[Address(RVA = "0x2BC7530", Offset = "0x2BC6330", VA = "0x182BC7530", Slot = "9")]
public virtual Asn1Object ParsePrivateKey()
{
Stream octetStream = this.privateKey.GetOctetStream();
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x0600C5E7 RID: 50663 RVA: 0x002D3218 File Offset: 0x002D1418
[Token(Token = "0x600C5E7")]
[Address(RVA = "0x2BC7570", Offset = "0x2BC6370", VA = "0x182BC7570", Slot = "10")]
public virtual Asn1Object ParsePublicKey()
{
DerBitString derBitString = this.publicKey;
if (derBitString == 0)
{
}
string @string = derBitString.GetString();
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x17001EBB RID: 7867
// (get) Token: 0x0600C5E8 RID: 50664 RVA: 0x002D323C File Offset: 0x002D143C
[Token(Token = "0x17001EBB")]
public virtual DerBitString PublicKeyData
{
[Token(Token = "0x600C5E8")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "11")]
get
{
return this.publicKey;
}
}
// Token: 0x0600C5E9 RID: 50665 RVA: 0x002D3250 File Offset: 0x002D1450
[Token(Token = "0x600C5E9")]
[Address(RVA = "0x2BC75B0", Offset = "0x2BC63B0", VA = "0x182BC75B0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[3];
DerInteger derInteger = this.version;
if (derInteger != 0)
{
}
array[0] = derInteger;
AlgorithmIdentifier algorithmIdentifier = this.privateKeyAlgorithm;
if (algorithmIdentifier != 0)
{
}
array[1] = algorithmIdentifier;
Asn1OctetString asn1OctetString = this.privateKey;
if (asn1OctetString != 0)
{
}
array[2] = asn1OctetString;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.attributes != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Set asn1Set = this.attributes;
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);
}
if (this.publicKey != (ulong)0L)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
DerBitString derBitString = this.publicKey;
int num3;
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, derBitString);
num3 = 0;
if (derTaggedObject2 != 0)
{
}
array3[0] = derTaggedObject2;
asn1EncodableVector.Add(array3);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007DAE RID: 32174
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DAE")]
private readonly DerInteger version;
// Token: 0x04007DAF RID: 32175
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DAF")]
private readonly AlgorithmIdentifier privateKeyAlgorithm;
// Token: 0x04007DB0 RID: 32176
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007DB0")]
private readonly Asn1OctetString privateKey;
// Token: 0x04007DB1 RID: 32177
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007DB1")]
private readonly Asn1Set attributes;
// Token: 0x04007DB2 RID: 32178
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4007DB2")]
private readonly DerBitString publicKey;
}
}
@@ -0,0 +1,163 @@
using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E98 RID: 7832
[Token(Token = "0x2001E98")]
public class RC2CbcParameter : Asn1Encodable
{
// Token: 0x0600C5EA RID: 50666 RVA: 0x002D333C File Offset: 0x002D153C
[Token(Token = "0x600C5EA")]
[Address(RVA = "0x2BC7F40", Offset = "0x2BC6D40", VA = "0x182BC7F40")]
public static RC2CbcParameter GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C5EA)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RC2CbcParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RC2CbcParameter::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:string(var_3_18, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_4_2E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_3_18)), 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 1660
*/;
}
// Token: 0x0600C5EB RID: 50667 RVA: 0x002D3378 File Offset: 0x002D1578
[Token(Token = "0x600C5EB")]
[Address(RVA = "0x2BC84A0", Offset = "0x2BC72A0", VA = "0x182BC84A0")]
public RC2CbcParameter(byte[] iv)
{
DerOctetString derOctetString = new DerOctetString(iv);
this.iv = derOctetString;
}
// Token: 0x0600C5EC RID: 50668 RVA: 0x002D339C File Offset: 0x002D159C
[Token(Token = "0x600C5EC")]
[Address(RVA = "0x2BC8400", Offset = "0x2BC7200", VA = "0x182BC8400")]
public RC2CbcParameter(int parameterVersion, byte[] iv)
{
DerInteger derInteger = new DerInteger(parameterVersion);
this.version = derInteger;
DerOctetString derOctetString = new DerOctetString(iv);
this.iv = derOctetString;
}
// Token: 0x0600C5ED RID: 50669 RVA: 0x002D33CC File Offset: 0x002D15CC
[Token(Token = "0x600C5ED")]
[Address(RVA = "0x2BC8250", Offset = "0x2BC7050", VA = "0x182BC8250")]
private RC2CbcParameter(Asn1Sequence seq)
{
Asn1SequenceParser parser3;
do
{
base..ctor();
Asn1Encodable asn1Encodable;
if (asn1Encodable != (ulong)1L)
{
Asn1SequenceParser parser = seq.Parser;
if (parser == 0)
{
}
if (parser == 0)
{
continue;
}
this.version = parser;
Asn1SequenceParser parser2 = seq.Parser;
if (parser2 == 0)
{
break;
}
if (parser2 == 0)
{
continue;
}
}
parser3 = seq.Parser;
if (parser3 == 0)
{
}
}
while (parser3 == 0);
this.iv = parser3;
}
// Token: 0x17001EBC RID: 7868
// (get) Token: 0x0600C5EE RID: 50670 RVA: 0x002D3434 File Offset: 0x002D1634
[Token(Token = "0x17001EBC")]
public BigInteger RC2ParameterVersion
{
[Token(Token = "0x600C5EE")]
[Address(RVA = "0x2BC8510", Offset = "0x2BC7310", VA = "0x182BC8510")]
get
{
DerInteger derInteger = this.version;
if (derInteger == 0)
{
}
return derInteger.Value;
}
}
// Token: 0x0600C5EF RID: 50671 RVA: 0x002D3454 File Offset: 0x002D1654
[Token(Token = "0x600C5EF")]
[Address(RVA = "0x2BC7EC0", Offset = "0x2BC6CC0", VA = "0x182BC7EC0")]
public byte[] GetIV()
{
Stream octetStream = this.iv.GetOctetStream();
byte[] array;
return array;
}
// Token: 0x0600C5F0 RID: 50672 RVA: 0x002D3474 File Offset: 0x002D1674
[Token(Token = "0x600C5F0")]
[Address(RVA = "0x2BC80B0", Offset = "0x2BC6EB0", VA = "0x182BC80B0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1EncodableVector asn1EncodableVector;
if (this.version != (ulong)0L)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerInteger derInteger = this.version;
if (derInteger != 0)
{
}
array[0] = derInteger;
asn1EncodableVector.Add(array);
}
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1OctetString asn1OctetString = this.iv;
if (asn1OctetString != 0)
{
}
array2[0] = asn1OctetString;
asn1EncodableVector.Add(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007DB3 RID: 32179
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DB3")]
internal DerInteger version;
// Token: 0x04007DB4 RID: 32180
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DB4")]
internal Asn1OctetString iv;
}
}
@@ -0,0 +1,340 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E9A RID: 7834
[Token(Token = "0x2001E9A")]
public class RsaPrivateKeyStructure : Asn1Encodable
{
// Token: 0x0600C5FA RID: 50682 RVA: 0x002D379C File Offset: 0x002D199C
[Token(Token = "0x600C5FA")]
[Address(RVA = "0x2BCAF80", Offset = "0x2BC9D80", VA = "0x182BCAF80")]
public static RsaPrivateKeyStructure GetInstance(Asn1TaggedObject obj, bool isExplicit)
{
Asn1Sequence instance;
Asn1Sequence instance2;
for (;;)
{
instance = Asn1Sequence.GetInstance(obj, isExplicit);
if (instance == 0)
{
return;
}
if (instance == 0)
{
break;
}
if (instance2 != 0)
{
return;
}
}
instance2 = Asn1Sequence.GetInstance(instance);
return new RsaPrivateKeyStructure(instance2);
}
// Token: 0x0600C5FB RID: 50683 RVA: 0x002D37D8 File Offset: 0x002D19D8
[Token(Token = "0x600C5FB")]
[Address(RVA = "0x2BCAE80", Offset = "0x2BC9C80", VA = "0x182BCAE80")]
public static RsaPrivateKeyStructure GetInstance(object obj)
{
while (obj != 0)
{
Asn1Sequence instance;
if (obj == 0)
{
instance = Asn1Sequence.GetInstance(obj);
return new RsaPrivateKeyStructure(instance);
}
if (instance != 0)
{
return;
}
}
}
// Token: 0x0600C5FC RID: 50684 RVA: 0x002D380C File Offset: 0x002D1A0C
[Token(Token = "0x600C5FC")]
[Address(RVA = "0x2BCB4E0", Offset = "0x2BCA2E0", VA = "0x182BCB4E0")]
public RsaPrivateKeyStructure(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient)
{
this.prime1 = 0;
this.prime2 = 0;
this.exponent1 = 0;
this.exponent2 = 0;
this.modulus = modulus;
this.privateExponent = privateExponent;
this.coefficient = 0;
this.publicExponent = publicExponent;
}
// Token: 0x0600C5FD RID: 50685 RVA: 0x002D3858 File Offset: 0x002D1A58
[Token(Token = "0x600C5FD")]
[Address(RVA = "0x2BCB560", Offset = "0x2BCA360", VA = "0x182BCB560")]
[Obsolete]
public RsaPrivateKeyStructure(Asn1Sequence seq)
{
for (;;)
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
BigInteger bigInteger;
if (parser != 0 && parser != 0 && bigInteger.IntValue == 0)
{
Asn1SequenceParser parser2 = seq.Parser;
if (parser2 != 0 && parser2 != 0)
{
BigInteger bigInteger2;
this.modulus = bigInteger2;
Asn1SequenceParser parser3 = seq.Parser;
if (parser3 != 0 && parser3 != 0)
{
BigInteger bigInteger3;
this.publicExponent = bigInteger3;
Asn1SequenceParser parser4 = seq.Parser;
if (parser4 != 0 && parser4 != 0)
{
BigInteger bigInteger4;
this.privateExponent = bigInteger4;
Asn1SequenceParser parser5 = seq.Parser;
if (parser5 != 0 && parser5 != 0)
{
BigInteger bigInteger5;
this.prime1 = bigInteger5;
Asn1SequenceParser parser6 = seq.Parser;
if (parser6 != 0 && parser6 != 0)
{
BigInteger bigInteger6;
this.prime2 = bigInteger6;
Asn1SequenceParser parser7 = seq.Parser;
if (parser7 != 0 && parser7 != 0)
{
BigInteger bigInteger7;
this.exponent1 = bigInteger7;
Asn1SequenceParser parser8 = seq.Parser;
if (parser8 != 0 && parser8 != 0)
{
BigInteger bigInteger8;
this.exponent2 = bigInteger8;
Asn1SequenceParser parser9 = seq.Parser;
if (parser9 != 0 && parser9 != 0)
{
break;
}
}
}
}
}
}
}
}
}
}
BigInteger bigInteger9;
this.coefficient = bigInteger9;
}
// Token: 0x17001EC0 RID: 7872
// (get) Token: 0x0600C5FE RID: 50686 RVA: 0x002D39AC File Offset: 0x002D1BAC
[Token(Token = "0x17001EC0")]
public BigInteger Modulus
{
[Token(Token = "0x600C5FE")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.modulus;
}
}
// Token: 0x17001EC1 RID: 7873
// (get) Token: 0x0600C5FF RID: 50687 RVA: 0x002D39C0 File Offset: 0x002D1BC0
[Token(Token = "0x17001EC1")]
public BigInteger PublicExponent
{
[Token(Token = "0x600C5FF")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.publicExponent;
}
}
// Token: 0x17001EC2 RID: 7874
// (get) Token: 0x0600C600 RID: 50688 RVA: 0x002D39D4 File Offset: 0x002D1BD4
[Token(Token = "0x17001EC2")]
public BigInteger PrivateExponent
{
[Token(Token = "0x600C600")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.privateExponent;
}
}
// Token: 0x17001EC3 RID: 7875
// (get) Token: 0x0600C601 RID: 50689 RVA: 0x002D39E8 File Offset: 0x002D1BE8
[Token(Token = "0x17001EC3")]
public BigInteger Prime1
{
[Token(Token = "0x600C601")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return this.prime1;
}
}
// Token: 0x17001EC4 RID: 7876
// (get) Token: 0x0600C602 RID: 50690 RVA: 0x002D39FC File Offset: 0x002D1BFC
[Token(Token = "0x17001EC4")]
public BigInteger Prime2
{
[Token(Token = "0x600C602")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
get
{
return this.prime2;
}
}
// Token: 0x17001EC5 RID: 7877
// (get) Token: 0x0600C603 RID: 50691 RVA: 0x002D3A10 File Offset: 0x002D1C10
[Token(Token = "0x17001EC5")]
public BigInteger Exponent1
{
[Token(Token = "0x600C603")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
get
{
return this.exponent1;
}
}
// Token: 0x17001EC6 RID: 7878
// (get) Token: 0x0600C604 RID: 50692 RVA: 0x002D3A24 File Offset: 0x002D1C24
[Token(Token = "0x17001EC6")]
public BigInteger Exponent2
{
[Token(Token = "0x600C604")]
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
get
{
return this.exponent2;
}
}
// Token: 0x17001EC7 RID: 7879
// (get) Token: 0x0600C605 RID: 50693 RVA: 0x002D3A38 File Offset: 0x002D1C38
[Token(Token = "0x17001EC7")]
public BigInteger Coefficient
{
[Token(Token = "0x600C605")]
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
get
{
return this.coefficient;
}
}
// Token: 0x0600C606 RID: 50694 RVA: 0x002D3A4C File Offset: 0x002D1C4C
[Token(Token = "0x600C606")]
[Address(RVA = "0x2BCB080", Offset = "0x2BC9E80", VA = "0x182BCB080", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[9];
int num;
DerInteger derInteger = new DerInteger(num);
num = 0;
if (derInteger != 0)
{
}
array[0] = derInteger;
DerInteger derInteger2 = new DerInteger(this.modulus);
if (derInteger2 != 0)
{
}
array[1] = derInteger2;
DerInteger derInteger3 = new DerInteger(this.publicExponent);
if (derInteger3 != 0)
{
}
array[2] = derInteger3;
DerInteger derInteger4 = new DerInteger(this.privateExponent);
if (derInteger4 != 0)
{
}
array[3] = derInteger4;
DerInteger derInteger5 = new DerInteger(this.prime1);
if (derInteger5 != 0)
{
}
array[4] = derInteger5;
DerInteger derInteger6 = new DerInteger(this.prime2);
if (derInteger6 != 0)
{
}
array[5] = derInteger6;
DerInteger derInteger7 = new DerInteger(this.exponent1);
if (derInteger7 != 0)
{
}
array[6] = derInteger7;
DerInteger derInteger8 = new DerInteger(this.exponent2);
if (derInteger8 != 0)
{
}
array[7] = derInteger8;
DerInteger derInteger9 = new DerInteger(this.coefficient);
if (derInteger9 != 0)
{
}
array[8] = derInteger9;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x04007DBB RID: 32187
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DBB")]
private readonly BigInteger modulus;
// Token: 0x04007DBC RID: 32188
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DBC")]
private readonly BigInteger publicExponent;
// Token: 0x04007DBD RID: 32189
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007DBD")]
private readonly BigInteger privateExponent;
// Token: 0x04007DBE RID: 32190
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007DBE")]
private readonly BigInteger prime1;
// Token: 0x04007DBF RID: 32191
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4007DBF")]
private readonly BigInteger prime2;
// Token: 0x04007DC0 RID: 32192
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4007DC0")]
private readonly BigInteger exponent1;
// Token: 0x04007DC1 RID: 32193
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4007DC1")]
private readonly BigInteger exponent2;
// Token: 0x04007DC2 RID: 32194
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4007DC2")]
private readonly BigInteger coefficient;
}
}
@@ -0,0 +1,220 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E99 RID: 7833
[Token(Token = "0x2001E99")]
public class RsaesOaepParameters : Asn1Encodable
{
// Token: 0x0600C5F1 RID: 50673 RVA: 0x002D34E0 File Offset: 0x002D16E0
[Token(Token = "0x600C5F1")]
[Address(RVA = "0x2BCBC80", Offset = "0x2BCAA80", VA = "0x182BCBC80")]
public static RsaesOaepParameters GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C5F1)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsaesOaepParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsaesOaepParameters::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 1660
*/;
}
// Token: 0x0600C5F2 RID: 50674 RVA: 0x002D3530 File Offset: 0x002D1730
[Token(Token = "0x600C5F2")]
[Address(RVA = "0x2BCC5D0", Offset = "0x2BCB3D0", VA = "0x182BCC5D0")]
public RsaesOaepParameters()
{
AlgorithmIdentifier defaultHashAlgorithm = RsaesOaepParameters.DefaultHashAlgorithm;
this.hashAlgorithm = defaultHashAlgorithm;
AlgorithmIdentifier defaultMaskGenFunction = RsaesOaepParameters.DefaultMaskGenFunction;
this.maskGenAlgorithm = defaultMaskGenFunction;
AlgorithmIdentifier defaultPSourceAlgorithm = RsaesOaepParameters.DefaultPSourceAlgorithm;
this.pSourceAlgorithm = defaultPSourceAlgorithm;
}
// Token: 0x0600C5F3 RID: 50675 RVA: 0x002D356C File Offset: 0x002D176C
[Token(Token = "0x600C5F3")]
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
public RsaesOaepParameters(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, AlgorithmIdentifier pSourceAlgorithm)
{
this.hashAlgorithm = hashAlgorithm;
this.maskGenAlgorithm = maskGenAlgorithm;
this.pSourceAlgorithm = pSourceAlgorithm;
}
// Token: 0x0600C5F4 RID: 50676 RVA: 0x002D3594 File Offset: 0x002D1794
[Token(Token = "0x600C5F4")]
[Address(RVA = "0x2BCC3F0", Offset = "0x2BCB1F0", VA = "0x182BCC3F0")]
public RsaesOaepParameters(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C5F4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsaesOaepParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_7E:
stloc:ArgumentException(var_11_88, newobj:ArgumentException(ArgumentException::.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.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.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 1660
*/;
}
// Token: 0x17001EBD RID: 7869
// (get) Token: 0x0600C5F5 RID: 50677 RVA: 0x002D362C File Offset: 0x002D182C
[Token(Token = "0x17001EBD")]
public AlgorithmIdentifier HashAlgorithm
{
[Token(Token = "0x600C5F5")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.hashAlgorithm;
}
}
// Token: 0x17001EBE RID: 7870
// (get) Token: 0x0600C5F6 RID: 50678 RVA: 0x002D3640 File Offset: 0x002D1840
[Token(Token = "0x17001EBE")]
public AlgorithmIdentifier MaskGenAlgorithm
{
[Token(Token = "0x600C5F6")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.maskGenAlgorithm;
}
}
// Token: 0x17001EBF RID: 7871
// (get) Token: 0x0600C5F7 RID: 50679 RVA: 0x002D3654 File Offset: 0x002D1854
[Token(Token = "0x17001EBF")]
public AlgorithmIdentifier PSourceAlgorithm
{
[Token(Token = "0x600C5F7")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.pSourceAlgorithm;
}
}
// Token: 0x0600C5F8 RID: 50680 RVA: 0x002D3668 File Offset: 0x002D1868
[Token(Token = "0x600C5F8")]
[Address(RVA = "0x2BCBE70", Offset = "0x2BCAC70", VA = "0x182BCBE70", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
AlgorithmIdentifier algorithmIdentifier = this.hashAlgorithm;
Asn1Encodable[] array = new Asn1Encodable[1];
AlgorithmIdentifier algorithmIdentifier2 = this.hashAlgorithm;
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, algorithmIdentifier2);
num = 0;
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
Asn1EncodableVector asn1EncodableVector;
asn1EncodableVector.Add(array);
AlgorithmIdentifier algorithmIdentifier3 = this.maskGenAlgorithm;
Asn1Encodable[] array2 = new Asn1Encodable[1];
AlgorithmIdentifier algorithmIdentifier4 = this.maskGenAlgorithm;
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, algorithmIdentifier4);
if (derTaggedObject2 != 0)
{
}
array2[0] = derTaggedObject2;
asn1EncodableVector.Add(array2);
AlgorithmIdentifier algorithmIdentifier5 = this.pSourceAlgorithm;
Asn1Encodable[] array3 = new Asn1Encodable[1];
AlgorithmIdentifier algorithmIdentifier6 = this.pSourceAlgorithm;
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, algorithmIdentifier6);
if (derTaggedObject3 != 0)
{
}
array3[0] = derTaggedObject3;
asn1EncodableVector.Add(array3);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600C5F9 RID: 50681 RVA: 0x002D3738 File Offset: 0x002D1938
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600C5F9")]
[Address(RVA = "0x2BCC230", Offset = "0x2BCB030", VA = "0x182BCC230")]
static RsaesOaepParameters()
{
DerObjectIdentifier idSha = OiwObjectIdentifiers.IdSha1;
DerNull instance = DerNull.Instance;
RsaesOaepParameters.DefaultHashAlgorithm = new AlgorithmIdentifier(idSha, instance);
DerObjectIdentifier idMgf = PkcsObjectIdentifiers.IdMgf1;
AlgorithmIdentifier defaultHashAlgorithm = RsaesOaepParameters.DefaultHashAlgorithm;
RsaesOaepParameters.DefaultMaskGenFunction = new AlgorithmIdentifier(idMgf, defaultHashAlgorithm);
int num = 0;
DerObjectIdentifier idPSpecified = PkcsObjectIdentifiers.IdPSpecified;
DerOctetString derOctetString = new DerOctetString(new byte[num]);
RsaesOaepParameters.DefaultPSourceAlgorithm = new AlgorithmIdentifier(idPSpecified, derOctetString);
}
// Token: 0x04007DB5 RID: 32181
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DB5")]
private AlgorithmIdentifier hashAlgorithm;
// Token: 0x04007DB6 RID: 32182
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DB6")]
private AlgorithmIdentifier maskGenAlgorithm;
// Token: 0x04007DB7 RID: 32183
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007DB7")]
private AlgorithmIdentifier pSourceAlgorithm;
// Token: 0x04007DB8 RID: 32184
[Token(Token = "0x4007DB8")]
public static readonly AlgorithmIdentifier DefaultHashAlgorithm;
// Token: 0x04007DB9 RID: 32185
[Token(Token = "0x4007DB9")]
public static readonly AlgorithmIdentifier DefaultMaskGenFunction;
// Token: 0x04007DBA RID: 32186
[Token(Token = "0x4007DBA")]
public static readonly AlgorithmIdentifier DefaultPSourceAlgorithm;
}
}
@@ -0,0 +1,255 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E9B RID: 7835
[Token(Token = "0x2001E9B")]
public class RsassaPssParameters : Asn1Encodable
{
// Token: 0x0600C607 RID: 50695 RVA: 0x002D3B58 File Offset: 0x002D1D58
[Token(Token = "0x600C607")]
[Address(RVA = "0x2BCC670", Offset = "0x2BCB470", VA = "0x182BCC670")]
public static RsassaPssParameters GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C607)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsassaPssParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsassaPssParameters::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 1660
*/;
}
// Token: 0x0600C608 RID: 50696 RVA: 0x002D3BAC File Offset: 0x002D1DAC
[Token(Token = "0x600C608")]
[Address(RVA = "0x2BCD0F0", Offset = "0x2BCBEF0", VA = "0x182BCD0F0")]
public RsassaPssParameters()
{
AlgorithmIdentifier defaultHashAlgorithm = RsassaPssParameters.DefaultHashAlgorithm;
this.hashAlgorithm = defaultHashAlgorithm;
AlgorithmIdentifier defaultMaskGenFunction = RsassaPssParameters.DefaultMaskGenFunction;
this.maskGenAlgorithm = defaultMaskGenFunction;
DerInteger defaultSaltLength = RsassaPssParameters.DefaultSaltLength;
this.saltLength = defaultSaltLength;
DerInteger defaultTrailerField = RsassaPssParameters.DefaultTrailerField;
this.trailerField = defaultTrailerField;
}
// Token: 0x0600C609 RID: 50697 RVA: 0x002D3BF4 File Offset: 0x002D1DF4
[Token(Token = "0x600C609")]
[Address(RVA = "0x4F37F0", Offset = "0x4F25F0", VA = "0x1804F37F0")]
public RsassaPssParameters(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, DerInteger saltLength, DerInteger trailerField)
{
this.hashAlgorithm = hashAlgorithm;
this.saltLength = saltLength;
this.trailerField = 0;
this.maskGenAlgorithm = maskGenAlgorithm;
}
// Token: 0x0600C60A RID: 50698 RVA: 0x002D3C24 File Offset: 0x002D1E24
[Token(Token = "0x600C60A")]
[Address(RVA = "0x2BCCED0", Offset = "0x2BCBCD0", VA = "0x182BCCED0")]
public RsassaPssParameters(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C60A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.RsassaPssParameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_9E:
stloc:ArgumentException(var_13_A8, newobj:ArgumentException(ArgumentException::.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.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.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 1660
*/;
}
// Token: 0x17001EC8 RID: 7880
// (get) Token: 0x0600C60B RID: 50699 RVA: 0x002D3CDC File Offset: 0x002D1EDC
[Token(Token = "0x17001EC8")]
public AlgorithmIdentifier HashAlgorithm
{
[Token(Token = "0x600C60B")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.hashAlgorithm;
}
}
// Token: 0x17001EC9 RID: 7881
// (get) Token: 0x0600C60C RID: 50700 RVA: 0x002D3CF0 File Offset: 0x002D1EF0
[Token(Token = "0x17001EC9")]
public AlgorithmIdentifier MaskGenAlgorithm
{
[Token(Token = "0x600C60C")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.maskGenAlgorithm;
}
}
// Token: 0x17001ECA RID: 7882
// (get) Token: 0x0600C60D RID: 50701 RVA: 0x002D3D04 File Offset: 0x002D1F04
[Token(Token = "0x17001ECA")]
public DerInteger SaltLength
{
[Token(Token = "0x600C60D")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.saltLength;
}
}
// Token: 0x17001ECB RID: 7883
// (get) Token: 0x0600C60E RID: 50702 RVA: 0x002D3D18 File Offset: 0x002D1F18
[Token(Token = "0x17001ECB")]
public DerInteger TrailerField
{
[Token(Token = "0x600C60E")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return this.trailerField;
}
}
// Token: 0x0600C60F RID: 50703 RVA: 0x002D3D2C File Offset: 0x002D1F2C
[Token(Token = "0x600C60F")]
[Address(RVA = "0x2BCC870", Offset = "0x2BCB670", VA = "0x182BCC870", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
AlgorithmIdentifier algorithmIdentifier = this.hashAlgorithm;
Asn1Encodable[] array = new Asn1Encodable[0];
AlgorithmIdentifier algorithmIdentifier2 = this.hashAlgorithm;
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, algorithmIdentifier2);
num = 0;
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
Asn1EncodableVector asn1EncodableVector;
asn1EncodableVector.Add(array);
AlgorithmIdentifier algorithmIdentifier3 = this.maskGenAlgorithm;
Asn1Encodable[] array2 = new Asn1Encodable[1];
AlgorithmIdentifier algorithmIdentifier4 = this.maskGenAlgorithm;
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, algorithmIdentifier4);
if (derTaggedObject2 != 0)
{
}
array2[0] = derTaggedObject2;
asn1EncodableVector.Add(array2);
DerInteger derInteger = this.saltLength;
Asn1Encodable[] array3 = new Asn1Encodable[1];
DerInteger derInteger2 = this.saltLength;
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, derInteger2);
if (derTaggedObject3 != 0)
{
}
array3[0] = derTaggedObject3;
asn1EncodableVector.Add(array3);
DerInteger derInteger3 = this.trailerField;
Asn1Encodable[] array4 = new Asn1Encodable[1];
DerInteger derInteger4 = this.trailerField;
DerTaggedObject derTaggedObject4 = new DerTaggedObject(true, 3, derInteger4);
if (derTaggedObject4 != 0)
{
}
array4[0] = derTaggedObject4;
asn1EncodableVector.Add(array4);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600C610 RID: 50704 RVA: 0x002D3E38 File Offset: 0x002D2038
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600C610")]
[Address(RVA = "0x2BCCD20", Offset = "0x2BCBB20", VA = "0x182BCCD20")]
static RsassaPssParameters()
{
DerObjectIdentifier idSha = OiwObjectIdentifiers.IdSha1;
DerNull instance = DerNull.Instance;
RsassaPssParameters.DefaultHashAlgorithm = new AlgorithmIdentifier(idSha, instance);
DerObjectIdentifier idMgf = PkcsObjectIdentifiers.IdMgf1;
AlgorithmIdentifier defaultHashAlgorithm = RsassaPssParameters.DefaultHashAlgorithm;
RsassaPssParameters.DefaultMaskGenFunction = new AlgorithmIdentifier(idMgf, defaultHashAlgorithm);
RsassaPssParameters.DefaultSaltLength = new DerInteger(20);
RsassaPssParameters.DefaultTrailerField = new DerInteger(1);
}
// Token: 0x04007DC3 RID: 32195
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DC3")]
private AlgorithmIdentifier hashAlgorithm;
// Token: 0x04007DC4 RID: 32196
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DC4")]
private AlgorithmIdentifier maskGenAlgorithm;
// Token: 0x04007DC5 RID: 32197
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007DC5")]
private DerInteger saltLength;
// Token: 0x04007DC6 RID: 32198
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007DC6")]
private DerInteger trailerField;
// Token: 0x04007DC7 RID: 32199
[Token(Token = "0x4007DC7")]
public static readonly AlgorithmIdentifier DefaultHashAlgorithm;
// Token: 0x04007DC8 RID: 32200
[Token(Token = "0x4007DC8")]
public static readonly AlgorithmIdentifier DefaultMaskGenFunction;
// Token: 0x04007DC9 RID: 32201
[Token(Token = "0x4007DC9")]
public static readonly DerInteger DefaultSaltLength;
// Token: 0x04007DCA RID: 32202
[Token(Token = "0x4007DCA")]
public static readonly DerInteger DefaultTrailerField;
}
}
@@ -0,0 +1,155 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E9C RID: 7836
[Token(Token = "0x2001E9C")]
public class SafeBag : Asn1Encodable
{
// Token: 0x0600C611 RID: 50705 RVA: 0x002D3E8C File Offset: 0x002D208C
[Token(Token = "0x600C611")]
[Address(RVA = "0x2AE0FC0", Offset = "0x2ADFDC0", VA = "0x182AE0FC0")]
public SafeBag(DerObjectIdentifier oid, Asn1Object obj)
{
this.bagID = oid;
this.bagValue = obj;
this.bagAttributes = (ulong)0L;
}
// Token: 0x0600C612 RID: 50706 RVA: 0x002D3EB8 File Offset: 0x002D20B8
[Token(Token = "0x600C612")]
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
public SafeBag(DerObjectIdentifier oid, Asn1Object obj, Asn1Set bagAttributes)
{
this.bagID = oid;
this.bagValue = obj;
this.bagAttributes = bagAttributes;
}
// Token: 0x0600C613 RID: 50707 RVA: 0x002D3EE0 File Offset: 0x002D20E0
[Token(Token = "0x600C613")]
[Address(RVA = "0x2BCD390", Offset = "0x2BCC190", VA = "0x182BCD390")]
public SafeBag(Asn1Sequence seq)
{
Asn1SequenceParser parser3;
for (;;)
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
if (parser == 0)
{
}
if (parser != 0)
{
this.bagID = parser;
Asn1SequenceParser parser2 = seq.Parser;
if (parser2 != 0 && parser2 != 0)
{
Asn1Object asn1Object;
this.bagValue = asn1Object;
Asn1Encodable asn1Encodable;
if (asn1Encodable != (ulong)3L)
{
return;
}
parser3 = seq.Parser;
if (parser3 == 0 || parser3 != 0)
{
break;
}
}
}
}
this.bagAttributes = parser3;
}
// Token: 0x17001ECC RID: 7884
// (get) Token: 0x0600C614 RID: 50708 RVA: 0x002D3F54 File Offset: 0x002D2154
[Token(Token = "0x17001ECC")]
public DerObjectIdentifier BagID
{
[Token(Token = "0x600C614")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.bagID;
}
}
// Token: 0x17001ECD RID: 7885
// (get) Token: 0x0600C615 RID: 50709 RVA: 0x002D3F68 File Offset: 0x002D2168
[Token(Token = "0x17001ECD")]
public Asn1Object BagValue
{
[Token(Token = "0x600C615")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.bagValue;
}
}
// Token: 0x17001ECE RID: 7886
// (get) Token: 0x0600C616 RID: 50710 RVA: 0x002D3F7C File Offset: 0x002D217C
[Token(Token = "0x17001ECE")]
public Asn1Set BagAttributes
{
[Token(Token = "0x600C616")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.bagAttributes;
}
}
// Token: 0x0600C617 RID: 50711 RVA: 0x002D3F90 File Offset: 0x002D2190
[Token(Token = "0x600C617")]
[Address(RVA = "0x2BCD1A0", Offset = "0x2BCBFA0", VA = "0x182BCD1A0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
DerObjectIdentifier derObjectIdentifier = this.bagID;
if (derObjectIdentifier != 0)
{
}
array[0] = derObjectIdentifier;
Asn1Object asn1Object = this.bagValue;
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(num, asn1Object);
num = 0;
if (derTaggedObject != 0)
{
}
array[1] = derTaggedObject;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.bagAttributes != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Set asn1Set = this.bagAttributes;
if (asn1Set != 0)
{
}
array2[0] = asn1Set;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007DCB RID: 32203
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DCB")]
private readonly DerObjectIdentifier bagID;
// Token: 0x04007DCC RID: 32204
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DCC")]
private readonly Asn1Object bagValue;
// Token: 0x04007DCD RID: 32205
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007DCD")]
private readonly Asn1Set bagAttributes;
}
}
@@ -0,0 +1,254 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E9D RID: 7837
[Token(Token = "0x2001E9D")]
public class SignedData : Asn1Encodable
{
// Token: 0x0600C618 RID: 50712 RVA: 0x002D4020 File Offset: 0x002D2220
[Token(Token = "0x600C618")]
[Address(RVA = "0x2BD3B00", Offset = "0x2BD2900", VA = "0x182BD3B00")]
public static SignedData GetInstance(object obj)
{
while (obj != 0)
{
if (obj == 0)
{
return new SignedData(Asn1Sequence.GetInstance(obj));
}
}
}
// Token: 0x0600C619 RID: 50713 RVA: 0x002D4044 File Offset: 0x002D2244
[Token(Token = "0x600C619")]
[Address(RVA = "0x2BD3F40", Offset = "0x2BD2D40", VA = "0x182BD3F40")]
public SignedData(DerInteger _version, Asn1Set _digestAlgorithms, ContentInfo _contentInfo, Asn1Set _certificates, Asn1Set _crls, Asn1Set _signerInfos)
{
this.certificates = 0;
this.crls = 0;
this.version = _version;
this.contentInfo = _contentInfo;
this.signerInfos = 0;
this.digestAlgorithms = _digestAlgorithms;
}
// Token: 0x0600C61A RID: 50714 RVA: 0x002D4084 File Offset: 0x002D2284
[Token(Token = "0x600C61A")]
[Address(RVA = "0x2BD3FB0", Offset = "0x2BD2DB0", VA = "0x182BD3FB0")]
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;
}
}
}
}
}
if (contentInfo.contentType == 0)
{
Asn1Set asn1Set;
this.certificates = asn1Set;
}
Asn1Set asn1Set2;
this.crls = asn1Set2;
}
// Token: 0x17001ECF RID: 7887
// (get) Token: 0x0600C61B RID: 50715 RVA: 0x002D4120 File Offset: 0x002D2320
[Token(Token = "0x17001ECF")]
public DerInteger Version
{
[Token(Token = "0x600C61B")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.version;
}
}
// Token: 0x17001ED0 RID: 7888
// (get) Token: 0x0600C61C RID: 50716 RVA: 0x002D4134 File Offset: 0x002D2334
[Token(Token = "0x17001ED0")]
public Asn1Set DigestAlgorithms
{
[Token(Token = "0x600C61C")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.digestAlgorithms;
}
}
// Token: 0x17001ED1 RID: 7889
// (get) Token: 0x0600C61D RID: 50717 RVA: 0x002D4148 File Offset: 0x002D2348
[Token(Token = "0x17001ED1")]
public ContentInfo ContentInfo
{
[Token(Token = "0x600C61D")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.contentInfo;
}
}
// Token: 0x17001ED2 RID: 7890
// (get) Token: 0x0600C61E RID: 50718 RVA: 0x002D415C File Offset: 0x002D235C
[Token(Token = "0x17001ED2")]
public Asn1Set Certificates
{
[Token(Token = "0x600C61E")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return this.certificates;
}
}
// Token: 0x17001ED3 RID: 7891
// (get) Token: 0x0600C61F RID: 50719 RVA: 0x002D4170 File Offset: 0x002D2370
[Token(Token = "0x17001ED3")]
public Asn1Set Crls
{
[Token(Token = "0x600C61F")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
get
{
return this.crls;
}
}
// Token: 0x17001ED4 RID: 7892
// (get) Token: 0x0600C620 RID: 50720 RVA: 0x002D4184 File Offset: 0x002D2384
[Token(Token = "0x17001ED4")]
public Asn1Set SignerInfos
{
[Token(Token = "0x600C620")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
get
{
return this.signerInfos;
}
}
// Token: 0x0600C621 RID: 50721 RVA: 0x002D4198 File Offset: 0x002D2398
[Token(Token = "0x600C621")]
[Address(RVA = "0x2BD3BB0", Offset = "0x2BD29B0", VA = "0x182BD3BB0", 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);
if (this.certificates != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Set asn1Set2 = this.certificates;
int num;
int num2;
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set2);
num2 = 0;
num = 0;
if (derTaggedObject != 0)
{
}
array2[0] = derTaggedObject;
asn1EncodableVector.Add(array2);
}
if (this.crls != (ulong)0L)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
Asn1Set asn1Set3 = this.crls;
int num3;
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Set3);
num3 = 0;
if (derTaggedObject2 != 0)
{
}
array3[0] = derTaggedObject2;
asn1EncodableVector.Add(array3);
}
Asn1Encodable[] array4 = new Asn1Encodable[1];
Asn1Set asn1Set4 = this.signerInfos;
if (asn1Set4 != 0)
{
}
array4[0] = asn1Set4;
asn1EncodableVector.Add(array4);
BerSequence berSequence = new BerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007DCE RID: 32206
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DCE")]
private readonly DerInteger version;
// Token: 0x04007DCF RID: 32207
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DCF")]
private readonly Asn1Set digestAlgorithms;
// Token: 0x04007DD0 RID: 32208
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007DD0")]
private readonly ContentInfo contentInfo;
// Token: 0x04007DD1 RID: 32209
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007DD1")]
private readonly Asn1Set certificates;
// Token: 0x04007DD2 RID: 32210
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4007DD2")]
private readonly Asn1Set crls;
// Token: 0x04007DD3 RID: 32211
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4007DD3")]
private readonly Asn1Set signerInfos;
}
}
@@ -0,0 +1,297 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x02001E9E RID: 7838
[Token(Token = "0x2001E9E")]
public class SignerInfo : Asn1Encodable
{
// Token: 0x0600C622 RID: 50722 RVA: 0x002D42AC File Offset: 0x002D24AC
[Token(Token = "0x600C622")]
[Address(RVA = "0x2BD4310", Offset = "0x2BD3110", VA = "0x182BD4310")]
public static SignerInfo GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C622)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.SignerInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.SignerInfo::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 1660
*/;
}
// Token: 0x0600C623 RID: 50723 RVA: 0x002D42FC File Offset: 0x002D24FC
[Token(Token = "0x600C623")]
[Address(RVA = "0x2BD4C10", Offset = "0x2BD3A10", VA = "0x182BD4C10")]
public SignerInfo(DerInteger version, IssuerAndSerialNumber issuerAndSerialNumber, AlgorithmIdentifier digAlgorithm, Asn1Set authenticatedAttributes, AlgorithmIdentifier digEncryptionAlgorithm, Asn1OctetString encryptedDigest, Asn1Set unauthenticatedAttributes)
{
this.authenticatedAttributes = 0;
this.digEncryptionAlgorithm = 0;
this.encryptedDigest = 0;
this.version = version;
this.digAlgorithm = digAlgorithm;
this.unauthenticatedAttributes = 0;
this.issuerAndSerialNumber = issuerAndSerialNumber;
}
// Token: 0x0600C624 RID: 50724 RVA: 0x002D4340 File Offset: 0x002D2540
[Token(Token = "0x600C624")]
[Address(RVA = "0x2BD48E0", Offset = "0x2BD36E0", VA = "0x182BD48E0")]
public SignerInfo(Asn1Sequence seq)
{
int num;
for (;;)
{
base..ctor();
IEnumerator enumerator = seq.GetEnumerator();
if (enumerator == 0)
{
}
num = 0;
if (enumerator != 0)
{
this.version = enumerator;
IssuerAndSerialNumber issuerAndSerialNumber;
this.issuerAndSerialNumber = issuerAndSerialNumber;
AlgorithmIdentifier instance = AlgorithmIdentifier.GetInstance(issuerAndSerialNumber);
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: 0x17001ED5 RID: 7893
// (get) Token: 0x0600C625 RID: 50725 RVA: 0x002D43F8 File Offset: 0x002D25F8
[Token(Token = "0x17001ED5")]
public DerInteger Version
{
[Token(Token = "0x600C625")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.version;
}
}
// Token: 0x17001ED6 RID: 7894
// (get) Token: 0x0600C626 RID: 50726 RVA: 0x002D440C File Offset: 0x002D260C
[Token(Token = "0x17001ED6")]
public IssuerAndSerialNumber IssuerAndSerialNumber
{
[Token(Token = "0x600C626")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.issuerAndSerialNumber;
}
}
// Token: 0x17001ED7 RID: 7895
// (get) Token: 0x0600C627 RID: 50727 RVA: 0x002D4420 File Offset: 0x002D2620
[Token(Token = "0x17001ED7")]
public Asn1Set AuthenticatedAttributes
{
[Token(Token = "0x600C627")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return this.authenticatedAttributes;
}
}
// Token: 0x17001ED8 RID: 7896
// (get) Token: 0x0600C628 RID: 50728 RVA: 0x002D4434 File Offset: 0x002D2634
[Token(Token = "0x17001ED8")]
public AlgorithmIdentifier DigestAlgorithm
{
[Token(Token = "0x600C628")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.digAlgorithm;
}
}
// Token: 0x17001ED9 RID: 7897
// (get) Token: 0x0600C629 RID: 50729 RVA: 0x002D4448 File Offset: 0x002D2648
[Token(Token = "0x17001ED9")]
public Asn1OctetString EncryptedDigest
{
[Token(Token = "0x600C629")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
get
{
return this.encryptedDigest;
}
}
// Token: 0x17001EDA RID: 7898
// (get) Token: 0x0600C62A RID: 50730 RVA: 0x002D445C File Offset: 0x002D265C
[Token(Token = "0x17001EDA")]
public AlgorithmIdentifier DigestEncryptionAlgorithm
{
[Token(Token = "0x600C62A")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
get
{
return this.digEncryptionAlgorithm;
}
}
// Token: 0x17001EDB RID: 7899
// (get) Token: 0x0600C62B RID: 50731 RVA: 0x002D4470 File Offset: 0x002D2670
[Token(Token = "0x17001EDB")]
public Asn1Set UnauthenticatedAttributes
{
[Token(Token = "0x600C62B")]
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
get
{
return this.unauthenticatedAttributes;
}
}
// Token: 0x0600C62C RID: 50732 RVA: 0x002D4484 File Offset: 0x002D2684
[Token(Token = "0x600C62C")]
[Address(RVA = "0x2BD4500", Offset = "0x2BD3300", VA = "0x182BD4500", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[3];
DerInteger derInteger = this.version;
if (derInteger != 0)
{
}
array[0] = derInteger;
IssuerAndSerialNumber issuerAndSerialNumber = this.issuerAndSerialNumber;
if (issuerAndSerialNumber != 0)
{
}
array[1] = issuerAndSerialNumber;
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: 0x04007DD4 RID: 32212
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DD4")]
private DerInteger version;
// Token: 0x04007DD5 RID: 32213
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DD5")]
private IssuerAndSerialNumber issuerAndSerialNumber;
// Token: 0x04007DD6 RID: 32214
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007DD6")]
private AlgorithmIdentifier digAlgorithm;
// Token: 0x04007DD7 RID: 32215
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007DD7")]
private Asn1Set authenticatedAttributes;
// Token: 0x04007DD8 RID: 32216
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4007DD8")]
private AlgorithmIdentifier digEncryptionAlgorithm;
// Token: 0x04007DD9 RID: 32217
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4007DD9")]
private Asn1OctetString encryptedDigest;
// Token: 0x04007DDA RID: 32218
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4007DDA")]
private Asn1Set unauthenticatedAttributes;
}
}