m
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001A22 RID: 6690
|
||||
[Token(Token = "0x2001A22")]
|
||||
[Serializable]
|
||||
public class PemGenerationException : Exception
|
||||
{
|
||||
// Token: 0x06009D53 RID: 40275 RVA: 0x002067BC File Offset: 0x002049BC
|
||||
[Token(Token = "0x6009D53")]
|
||||
[Address(RVA = "0x4EECA0", Offset = "0x4EDCA0", VA = "0x1804EECA0")]
|
||||
public PemGenerationException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009D54 RID: 40276 RVA: 0x002067D0 File Offset: 0x002049D0
|
||||
[Token(Token = "0x6009D54")]
|
||||
[Address(RVA = "0x4EEBB0", Offset = "0x4EDBB0", VA = "0x1804EEBB0")]
|
||||
public PemGenerationException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009D55 RID: 40277 RVA: 0x002067E4 File Offset: 0x002049E4
|
||||
[Token(Token = "0x6009D55")]
|
||||
[Address(RVA = "0x4EEC20", Offset = "0x4EDC20", VA = "0x1804EEC20")]
|
||||
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: 0x02001A23 RID: 6691
|
||||
[Token(Token = "0x2001A23")]
|
||||
public class PemHeader
|
||||
{
|
||||
// Token: 0x06009D56 RID: 40278 RVA: 0x002067FC File Offset: 0x002049FC
|
||||
[Token(Token = "0x6009D56")]
|
||||
[Address(RVA = "0x417DD0", Offset = "0x416DD0", VA = "0x180417DD0")]
|
||||
public PemHeader(string name, string val)
|
||||
{
|
||||
this.name = name;
|
||||
this.val = val;
|
||||
}
|
||||
|
||||
// Token: 0x17001910 RID: 6416
|
||||
// (get) Token: 0x06009D57 RID: 40279 RVA: 0x00206820 File Offset: 0x00204A20
|
||||
[Token(Token = "0x17001910")]
|
||||
public virtual string Name
|
||||
{
|
||||
[Token(Token = "0x6009D57")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001911 RID: 6417
|
||||
// (get) Token: 0x06009D58 RID: 40280 RVA: 0x00206834 File Offset: 0x00204A34
|
||||
[Token(Token = "0x17001911")]
|
||||
public virtual string Value
|
||||
{
|
||||
[Token(Token = "0x6009D58")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return this.val;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009D59 RID: 40281 RVA: 0x00206848 File Offset: 0x00204A48
|
||||
[Token(Token = "0x6009D59")]
|
||||
[Address(RVA = "0x4EEE10", Offset = "0x4EDE10", VA = "0x1804EEE10", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009D59)
|
||||
|
||||
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: 0x06009D5A RID: 40282 RVA: 0x0020687C File Offset: 0x00204A7C
|
||||
[Token(Token = "0x6009D5A")]
|
||||
[Address(RVA = "0x4EED00", Offset = "0x4EDD00", VA = "0x1804EED00", 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: 0x06009D5B RID: 40283 RVA: 0x002068B8 File Offset: 0x00204AB8
|
||||
[Token(Token = "0x6009D5B")]
|
||||
[Address(RVA = "0x4EEE80", Offset = "0x4EDE80", VA = "0x1804EEE80")]
|
||||
private int GetHashCode(string s)
|
||||
{
|
||||
if (s != 0)
|
||||
{
|
||||
object obj = ((ICloneable)s).Clone();
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Token: 0x04006A2D RID: 27181
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A2D")]
|
||||
private string name;
|
||||
|
||||
// Token: 0x04006A2E RID: 27182
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006A2E")]
|
||||
private string val;
|
||||
}
|
||||
}
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001A24 RID: 6692
|
||||
[Token(Token = "0x2001A24")]
|
||||
public class PemObject : PemObjectGenerator
|
||||
{
|
||||
// Token: 0x06009D5C RID: 40284 RVA: 0x002068D4 File Offset: 0x00204AD4
|
||||
[Token(Token = "0x6009D5C")]
|
||||
[Address(RVA = "0x4EEF70", Offset = "0x4EDF70", VA = "0x1804EEF70")]
|
||||
public PemObject(string type, byte[] content)
|
||||
{
|
||||
ArrayList arrayList = new ArrayList();
|
||||
}
|
||||
|
||||
// Token: 0x06009D5D RID: 40285 RVA: 0x002068E8 File Offset: 0x00204AE8
|
||||
[Token(Token = "0x6009D5D")]
|
||||
[Address(RVA = "0x4EEEB0", Offset = "0x4EDEB0", VA = "0x1804EEEB0")]
|
||||
public PemObject(string type, IList headers, byte[] content)
|
||||
{
|
||||
this.type = type;
|
||||
ArrayList arrayList = new ArrayList(headers);
|
||||
this.headers = arrayList;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
// Token: 0x17001912 RID: 6418
|
||||
// (get) Token: 0x06009D5E RID: 40286 RVA: 0x00206918 File Offset: 0x00204B18
|
||||
[Token(Token = "0x17001912")]
|
||||
public string Type
|
||||
{
|
||||
[Token(Token = "0x6009D5E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.type;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001913 RID: 6419
|
||||
// (get) Token: 0x06009D5F RID: 40287 RVA: 0x0020692C File Offset: 0x00204B2C
|
||||
[Token(Token = "0x17001913")]
|
||||
public IList Headers
|
||||
{
|
||||
[Token(Token = "0x6009D5F")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.headers;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001914 RID: 6420
|
||||
// (get) Token: 0x06009D60 RID: 40288 RVA: 0x00206940 File Offset: 0x00204B40
|
||||
[Token(Token = "0x17001914")]
|
||||
public byte[] Content
|
||||
{
|
||||
[Token(Token = "0x6009D60")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.content;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009D61 RID: 40289 RVA: 0x00206954 File Offset: 0x00204B54
|
||||
[Token(Token = "0x6009D61")]
|
||||
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0", Slot = "4")]
|
||||
public PemObject Generate()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x04006A2F RID: 27183
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A2F")]
|
||||
private string type;
|
||||
|
||||
// Token: 0x04006A30 RID: 27184
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006A30")]
|
||||
private IList headers;
|
||||
|
||||
// Token: 0x04006A31 RID: 27185
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006A31")]
|
||||
private byte[] content;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001A25 RID: 6693
|
||||
[Token(Token = "0x2001A25")]
|
||||
public interface PemObjectGenerator
|
||||
{
|
||||
// Token: 0x06009D62 RID: 40290
|
||||
[Token(Token = "0x6009D62")]
|
||||
[Address(Slot = "0")]
|
||||
PemObject Generate();
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
||||
{
|
||||
// Token: 0x02001A26 RID: 6694
|
||||
[Token(Token = "0x2001A26")]
|
||||
public interface PemObjectParser
|
||||
{
|
||||
// Token: 0x06009D63 RID: 40291
|
||||
[Token(Token = "0x6009D63")]
|
||||
[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: 0x02001A27 RID: 6695
|
||||
[Token(Token = "0x2001A27")]
|
||||
public class PemReader
|
||||
{
|
||||
// Token: 0x06009D64 RID: 40292 RVA: 0x00206964 File Offset: 0x00204B64
|
||||
[Token(Token = "0x6009D64")]
|
||||
[Address(RVA = "0x4EF550", Offset = "0x4EE550", VA = "0x1804EF550")]
|
||||
public PemReader(TextReader reader)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009D64)
|
||||
|
||||
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: 0x17001915 RID: 6421
|
||||
// (get) Token: 0x06009D65 RID: 40293 RVA: 0x00206990 File Offset: 0x00204B90
|
||||
[Token(Token = "0x17001915")]
|
||||
public TextReader Reader
|
||||
{
|
||||
[Token(Token = "0x6009D65")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.reader;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009D66 RID: 40294 RVA: 0x002069A4 File Offset: 0x00204BA4
|
||||
[Token(Token = "0x6009D66")]
|
||||
[Address(RVA = "0x4EF440", Offset = "0x4EE440", VA = "0x1804EF440")]
|
||||
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: 0x06009D67 RID: 40295 RVA: 0x002069F0 File Offset: 0x00204BF0
|
||||
[Token(Token = "0x6009D67")]
|
||||
[Address(RVA = "0x4EF030", Offset = "0x4EE030", VA = "0x1804EF030")]
|
||||
private PemObject LoadObject(string type)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009D67)
|
||||
|
||||
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: 0x04006A32 RID: 27186
|
||||
[Token(Token = "0x4006A32")]
|
||||
private const string BeginString = "-----BEGIN ";
|
||||
|
||||
// Token: 0x04006A33 RID: 27187
|
||||
[Token(Token = "0x4006A33")]
|
||||
private const string EndString = "-----END ";
|
||||
|
||||
// Token: 0x04006A34 RID: 27188
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A34")]
|
||||
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: 0x02001A28 RID: 6696
|
||||
[Token(Token = "0x2001A28")]
|
||||
public class PemWriter
|
||||
{
|
||||
// Token: 0x06009D68 RID: 40296 RVA: 0x00206AF8 File Offset: 0x00204CF8
|
||||
[Token(Token = "0x6009D68")]
|
||||
[Address(RVA = "0x4F0070", Offset = "0x4EF070", VA = "0x1804F0070")]
|
||||
public PemWriter(TextWriter writer)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009D68)
|
||||
|
||||
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: 0x17001916 RID: 6422
|
||||
// (get) Token: 0x06009D69 RID: 40297 RVA: 0x00206B44 File Offset: 0x00204D44
|
||||
[Token(Token = "0x17001916")]
|
||||
public TextWriter Writer
|
||||
{
|
||||
[Token(Token = "0x6009D69")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.writer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009D6A RID: 40298 RVA: 0x00206B58 File Offset: 0x00204D58
|
||||
[Token(Token = "0x6009D6A")]
|
||||
[Address(RVA = "0x4EF5D0", Offset = "0x4EE5D0", VA = "0x1804EF5D0")]
|
||||
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: 0x06009D6B RID: 40299 RVA: 0x00206BF4 File Offset: 0x00204DF4
|
||||
[Token(Token = "0x6009D6B")]
|
||||
[Address(RVA = "0x4EFA00", Offset = "0x4EEA00", VA = "0x1804EFA00")]
|
||||
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: 0x06009D6C RID: 40300 RVA: 0x00206CC8 File Offset: 0x00204EC8
|
||||
[Token(Token = "0x6009D6C")]
|
||||
[Address(RVA = "0x4EF900", Offset = "0x4EE900", VA = "0x1804EF900")]
|
||||
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: 0x06009D6D RID: 40301 RVA: 0x00206D4C File Offset: 0x00204F4C
|
||||
[Token(Token = "0x6009D6D")]
|
||||
[Address(RVA = "0x4EFFF0", Offset = "0x4EEFF0", VA = "0x1804EFFF0")]
|
||||
private void WritePreEncapsulationBoundary(string type)
|
||||
{
|
||||
TextWriter textWriter = this.writer;
|
||||
string text = "-----BEGIN " + type + "-----";
|
||||
Encoding encoding = textWriter.Encoding;
|
||||
}
|
||||
|
||||
// Token: 0x06009D6E RID: 40302 RVA: 0x00206D80 File Offset: 0x00204F80
|
||||
[Token(Token = "0x6009D6E")]
|
||||
[Address(RVA = "0x4EFF70", Offset = "0x4EEF70", VA = "0x1804EFF70")]
|
||||
private void WritePostEncapsulationBoundary(string type)
|
||||
{
|
||||
TextWriter textWriter = this.writer;
|
||||
string text = "-----END " + type + "-----";
|
||||
Encoding encoding = textWriter.Encoding;
|
||||
}
|
||||
|
||||
// Token: 0x04006A35 RID: 27189
|
||||
[Token(Token = "0x4006A35")]
|
||||
private const int LineLength = 64;
|
||||
|
||||
// Token: 0x04006A36 RID: 27190
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A36")]
|
||||
private readonly TextWriter writer;
|
||||
|
||||
// Token: 0x04006A37 RID: 27191
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006A37")]
|
||||
private readonly int nlLength;
|
||||
|
||||
// Token: 0x04006A38 RID: 27192
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006A38")]
|
||||
private char[] buf;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user