oh dear
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001942 RID: 6466
|
||||
[Token(Token = "0x2001942")]
|
||||
[Serializable]
|
||||
public class PemGenerationException : Exception
|
||||
{
|
||||
// Token: 0x06009985 RID: 39301 RVA: 0x001FD724 File Offset: 0x001FB924
|
||||
[Token(Token = "0x6009985")]
|
||||
[Address(RVA = "0x18E5110", Offset = "0x18E3F10", VA = "0x1818E5110")]
|
||||
public PemGenerationException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009986 RID: 39302 RVA: 0x001FD738 File Offset: 0x001FB938
|
||||
[Token(Token = "0x6009986")]
|
||||
[Address(RVA = "0x18E5020", Offset = "0x18E3E20", VA = "0x1818E5020")]
|
||||
public PemGenerationException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009987 RID: 39303 RVA: 0x001FD74C File Offset: 0x001FB94C
|
||||
[Token(Token = "0x6009987")]
|
||||
[Address(RVA = "0x18E5090", Offset = "0x18E3E90", VA = "0x1818E5090")]
|
||||
public PemGenerationException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001943 RID: 6467
|
||||
[Token(Token = "0x2001943")]
|
||||
public class PemHeader
|
||||
{
|
||||
// Token: 0x06009988 RID: 39304 RVA: 0x001FD764 File Offset: 0x001FB964
|
||||
[Token(Token = "0x6009988")]
|
||||
[Address(RVA = "0x4089A0", Offset = "0x4077A0", VA = "0x1804089A0")]
|
||||
public PemHeader(string name, string val)
|
||||
{
|
||||
this.name = name;
|
||||
this.val = val;
|
||||
}
|
||||
|
||||
// Token: 0x17001873 RID: 6259
|
||||
// (get) Token: 0x06009989 RID: 39305 RVA: 0x001FD788 File Offset: 0x001FB988
|
||||
[Token(Token = "0x17001873")]
|
||||
public virtual string Name
|
||||
{
|
||||
[Token(Token = "0x6009989")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001874 RID: 6260
|
||||
// (get) Token: 0x0600998A RID: 39306 RVA: 0x001FD79C File Offset: 0x001FB99C
|
||||
[Token(Token = "0x17001874")]
|
||||
public virtual string Value
|
||||
{
|
||||
[Token(Token = "0x600998A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.val;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600998B RID: 39307 RVA: 0x001FD7B0 File Offset: 0x001FB9B0
|
||||
[Token(Token = "0x600998B")]
|
||||
[Address(RVA = "0x18E5280", Offset = "0x18E4080", VA = "0x1818E5280", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600998B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemHeader::GetHashCode()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:int64(var_3, add:int64(ldloc:int64(var_3), ldloc:uint32[exp:int64](var_0)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600998C RID: 39308 RVA: 0x001FD7E4 File Offset: 0x001FB9E4
|
||||
[Token(Token = "0x600998C")]
|
||||
[Address(RVA = "0x18E5170", Offset = "0x18E3F70", VA = "0x1818E5170", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
while (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
string text = this.name;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
string text2 = this.val;
|
||||
bool flag2;
|
||||
return flag2;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600998D RID: 39309 RVA: 0x001FD820 File Offset: 0x001FBA20
|
||||
[Token(Token = "0x600998D")]
|
||||
[Address(RVA = "0x18E52F0", Offset = "0x18E40F0", VA = "0x1818E52F0")]
|
||||
private int GetHashCode(string s)
|
||||
{
|
||||
if (s != 0)
|
||||
{
|
||||
object obj = ((ICloneable)s).Clone();
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Token: 0x04006874 RID: 26740
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006874")]
|
||||
private string name;
|
||||
|
||||
// Token: 0x04006875 RID: 26741
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006875")]
|
||||
private string val;
|
||||
}
|
||||
}
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001944 RID: 6468
|
||||
[Token(Token = "0x2001944")]
|
||||
public class PemObject : PemObjectGenerator
|
||||
{
|
||||
// Token: 0x0600998E RID: 39310 RVA: 0x001FD83C File Offset: 0x001FBA3C
|
||||
[Token(Token = "0x600998E")]
|
||||
[Address(RVA = "0x18E53E0", Offset = "0x18E41E0", VA = "0x1818E53E0")]
|
||||
public PemObject(string type, byte[] content)
|
||||
{
|
||||
ArrayList arrayList = new ArrayList();
|
||||
}
|
||||
|
||||
// Token: 0x0600998F RID: 39311 RVA: 0x001FD850 File Offset: 0x001FBA50
|
||||
[Token(Token = "0x600998F")]
|
||||
[Address(RVA = "0x18E5320", Offset = "0x18E4120", VA = "0x1818E5320")]
|
||||
public PemObject(string type, IList headers, byte[] content)
|
||||
{
|
||||
this.type = type;
|
||||
ArrayList arrayList = new ArrayList(headers);
|
||||
this.headers = arrayList;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
// Token: 0x17001875 RID: 6261
|
||||
// (get) Token: 0x06009990 RID: 39312 RVA: 0x001FD880 File Offset: 0x001FBA80
|
||||
[Token(Token = "0x17001875")]
|
||||
public string Type
|
||||
{
|
||||
[Token(Token = "0x6009990")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.type;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001876 RID: 6262
|
||||
// (get) Token: 0x06009991 RID: 39313 RVA: 0x001FD894 File Offset: 0x001FBA94
|
||||
[Token(Token = "0x17001876")]
|
||||
public IList Headers
|
||||
{
|
||||
[Token(Token = "0x6009991")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.headers;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001877 RID: 6263
|
||||
// (get) Token: 0x06009992 RID: 39314 RVA: 0x001FD8A8 File Offset: 0x001FBAA8
|
||||
[Token(Token = "0x17001877")]
|
||||
public byte[] Content
|
||||
{
|
||||
[Token(Token = "0x6009992")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009993 RID: 39315 RVA: 0x001FD8BC File Offset: 0x001FBABC
|
||||
[Token(Token = "0x6009993")]
|
||||
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0", Slot = "4")]
|
||||
public PemObject Generate()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x04006876 RID: 26742
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006876")]
|
||||
private string type;
|
||||
|
||||
// Token: 0x04006877 RID: 26743
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006877")]
|
||||
private IList headers;
|
||||
|
||||
// Token: 0x04006878 RID: 26744
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006878")]
|
||||
private byte[] content;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001945 RID: 6469
|
||||
[Token(Token = "0x2001945")]
|
||||
public interface PemObjectGenerator
|
||||
{
|
||||
// Token: 0x06009994 RID: 39316
|
||||
[Token(Token = "0x6009994")]
|
||||
[Address(Slot = "0")]
|
||||
PemObject Generate();
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001946 RID: 6470
|
||||
[Token(Token = "0x2001946")]
|
||||
public interface PemObjectParser
|
||||
{
|
||||
// Token: 0x06009995 RID: 39317
|
||||
[Token(Token = "0x6009995")]
|
||||
[Address(Slot = "0")]
|
||||
object ParseObject(PemObject obj);
|
||||
}
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001947 RID: 6471
|
||||
[Token(Token = "0x2001947")]
|
||||
public class PemReader
|
||||
{
|
||||
// Token: 0x06009996 RID: 39318 RVA: 0x001FD8CC File Offset: 0x001FBACC
|
||||
[Token(Token = "0x6009996")]
|
||||
[Address(RVA = "0x18E59C0", Offset = "0x18E47C0", VA = "0x1818E59C0")]
|
||||
public PemReader(TextReader reader)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009996)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemReader::.ctor(System.IO.TextReader)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("reader")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001878 RID: 6264
|
||||
// (get) Token: 0x06009997 RID: 39319 RVA: 0x001FD8F8 File Offset: 0x001FBAF8
|
||||
[Token(Token = "0x17001878")]
|
||||
public TextReader Reader
|
||||
{
|
||||
[Token(Token = "0x6009997")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.reader;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009998 RID: 39320 RVA: 0x001FD90C File Offset: 0x001FBB0C
|
||||
[Token(Token = "0x6009998")]
|
||||
[Address(RVA = "0x18E58B0", Offset = "0x18E46B0", VA = "0x1818E58B0")]
|
||||
public PemObject ReadPemObject()
|
||||
{
|
||||
string text = this.reader.ReadToEnd();
|
||||
if (text != 0 && Platform.StartsWith(text, "-----BEGIN "))
|
||||
{
|
||||
int num = 0;
|
||||
string text3;
|
||||
int num2;
|
||||
string text2 = text3.Substring(num, num2);
|
||||
if (num2 > 0)
|
||||
{
|
||||
return this.LoadObject(text2);
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009999 RID: 39321 RVA: 0x001FD958 File Offset: 0x001FBB58
|
||||
[Token(Token = "0x6009999")]
|
||||
[Address(RVA = "0x18E54A0", Offset = "0x18E42A0", VA = "0x1818E54A0")]
|
||||
private PemObject LoadObject(string type)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009999)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemObject BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemReader::LoadObject(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_EE:
|
||||
stloc:IOException(var_19_F8, newobj:IOException(IOException::.ctor, ldstr:string("base64 data appears to be truncated")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x04006879 RID: 26745
|
||||
[Token(Token = "0x4006879")]
|
||||
private const string BeginString = "-----BEGIN ";
|
||||
|
||||
// Token: 0x0400687A RID: 26746
|
||||
[Token(Token = "0x400687A")]
|
||||
private const string EndString = "-----END ";
|
||||
|
||||
// Token: 0x0400687B RID: 26747
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400687B")]
|
||||
private readonly TextReader reader;
|
||||
}
|
||||
}
|
||||
+226
@@ -0,0 +1,226 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001948 RID: 6472
|
||||
[Token(Token = "0x2001948")]
|
||||
public class PemWriter
|
||||
{
|
||||
// Token: 0x0600999A RID: 39322 RVA: 0x001FDA60 File Offset: 0x001FBC60
|
||||
[Token(Token = "0x600999A")]
|
||||
[Address(RVA = "0x18E64E0", Offset = "0x18E52E0", VA = "0x1818E64E0")]
|
||||
public PemWriter(TextWriter writer)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600999A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemWriter::.ctor(System.IO.TextWriter)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:ArgumentNullException(var_2_3D, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("writer")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001879 RID: 6265
|
||||
// (get) Token: 0x0600999B RID: 39323 RVA: 0x001FDAAC File Offset: 0x001FBCAC
|
||||
[Token(Token = "0x17001879")]
|
||||
public TextWriter Writer
|
||||
{
|
||||
[Token(Token = "0x600999B")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.writer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600999C RID: 39324 RVA: 0x001FDAC0 File Offset: 0x001FBCC0
|
||||
[Token(Token = "0x600999C")]
|
||||
[Address(RVA = "0x18E5A40", Offset = "0x18E4840", VA = "0x1818E5A40")]
|
||||
public int GetOutputSize(PemObject obj)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
string type = obj.type;
|
||||
IList headers = obj.headers;
|
||||
if (type <= 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IList headers2 = obj.headers;
|
||||
int num3;
|
||||
if (type != 0)
|
||||
{
|
||||
if (num < type)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
ulong num2;
|
||||
num2 += (ulong)1L;
|
||||
if (type == 0)
|
||||
{
|
||||
goto IL_82;
|
||||
}
|
||||
int stringLength = type.ToString().m_stringLength;
|
||||
num3 += stringLength;
|
||||
}
|
||||
if (num3 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
int num4 = obj.content.Length;
|
||||
num4 += 2;
|
||||
throw new NullReferenceException();
|
||||
IL_82:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600999D RID: 39325 RVA: 0x001FDB5C File Offset: 0x001FBD5C
|
||||
[Token(Token = "0x600999D")]
|
||||
[Address(RVA = "0x18E5E70", Offset = "0x18E4C70", VA = "0x1818E5E70")]
|
||||
public void WriteObject(PemObjectGenerator objGen)
|
||||
{
|
||||
int num;
|
||||
int num2;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
string text;
|
||||
if (text <= 0)
|
||||
{
|
||||
goto IL_46;
|
||||
}
|
||||
if (text != 0)
|
||||
{
|
||||
if (num < text)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (text == 0)
|
||||
{
|
||||
}
|
||||
if (text == 0)
|
||||
{
|
||||
goto IL_BF;
|
||||
}
|
||||
string text2 = text.ToString();
|
||||
}
|
||||
num2 = 0;
|
||||
int num3;
|
||||
if (num3 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
TextWriter textWriter = this.writer;
|
||||
IL_46:
|
||||
byte[] array;
|
||||
if (num2 < array.Length)
|
||||
{
|
||||
char[] array2 = this.buf;
|
||||
int length = array2.Length;
|
||||
if (num2 != length && 0 < array.Length)
|
||||
{
|
||||
byte b;
|
||||
array2[0] = (char)b;
|
||||
num2++;
|
||||
}
|
||||
char[] array3 = this.buf;
|
||||
}
|
||||
string text3 = "-----END " + num2 + "-----";
|
||||
return;
|
||||
IL_BF:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600999E RID: 39326 RVA: 0x001FDC30 File Offset: 0x001FBE30
|
||||
[Token(Token = "0x600999E")]
|
||||
[Address(RVA = "0x18E5D70", Offset = "0x18E4B70", VA = "0x1818E5D70")]
|
||||
private void WriteEncoded(byte[] bytes)
|
||||
{
|
||||
int length = bytes.Length;
|
||||
int num = 0;
|
||||
byte[] array = Base64.Encode(bytes, num, length);
|
||||
int num2 = 0;
|
||||
if (num2 < array.Length)
|
||||
{
|
||||
int num3 = 0;
|
||||
char[] array2 = this.buf;
|
||||
int length2 = array2.Length;
|
||||
if (num3 != length2 && 0 < array.Length)
|
||||
{
|
||||
num3++;
|
||||
byte b;
|
||||
array2[0] = (char)b;
|
||||
}
|
||||
this.writer.WriteLine(array2);
|
||||
char[] array3 = this.buf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600999F RID: 39327 RVA: 0x001FDCB4 File Offset: 0x001FBEB4
|
||||
[Token(Token = "0x600999F")]
|
||||
[Address(RVA = "0x18E6460", Offset = "0x18E5260", VA = "0x1818E6460")]
|
||||
private void WritePreEncapsulationBoundary(string type)
|
||||
{
|
||||
TextWriter textWriter = this.writer;
|
||||
string text = "-----BEGIN " + type + "-----";
|
||||
Encoding encoding = textWriter.Encoding;
|
||||
}
|
||||
|
||||
// Token: 0x060099A0 RID: 39328 RVA: 0x001FDCE8 File Offset: 0x001FBEE8
|
||||
[Token(Token = "0x60099A0")]
|
||||
[Address(RVA = "0x18E63E0", Offset = "0x18E51E0", VA = "0x1818E63E0")]
|
||||
private void WritePostEncapsulationBoundary(string type)
|
||||
{
|
||||
TextWriter textWriter = this.writer;
|
||||
string text = "-----END " + type + "-----";
|
||||
Encoding encoding = textWriter.Encoding;
|
||||
}
|
||||
|
||||
// Token: 0x0400687C RID: 26748
|
||||
[Token(Token = "0x400687C")]
|
||||
private const int LineLength = 64;
|
||||
|
||||
// Token: 0x0400687D RID: 26749
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400687D")]
|
||||
private readonly TextWriter writer;
|
||||
|
||||
// Token: 0x0400687E RID: 26750
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400687E")]
|
||||
private readonly int nlLength;
|
||||
|
||||
// Token: 0x0400687F RID: 26751
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400687F")]
|
||||
private char[] buf;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user