121 lines
4.8 KiB
C#
121 lines
4.8 KiB
C#
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;
|
|
}
|
|
}
|