Files
Apr2020-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Crypto/Tls/TlsUtilities.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

2080 lines
120 KiB
C#

using System;
using System.Collections;
using System.IO;
using System.Runtime.CompilerServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Macs;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO;
using Cpp2IlInjected;
using Hjg.Pngcs;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
{
// Token: 0x02001B9D RID: 7069
[Token(Token = "0x2001B9D")]
public abstract class TlsUtilities
{
// Token: 0x0600B02E RID: 45102 RVA: 0x00264A5C File Offset: 0x00262C5C
[Token(Token = "0x600B02E")]
[Address(RVA = "0x182E210", Offset = "0x182D010", VA = "0x18182E210")]
public static void CheckUint8(int i)
{
while (i != 0)
{
}
}
// Token: 0x0600B02F RID: 45103 RVA: 0x00264A6C File Offset: 0x00262C6C
[Token(Token = "0x600B02F")]
[Address(RVA = "0x182E290", Offset = "0x182D090", VA = "0x18182E290")]
public static void CheckUint8(long i)
{
while (i != 0L)
{
}
}
// Token: 0x0600B030 RID: 45104 RVA: 0x00264A7C File Offset: 0x00262C7C
[Token(Token = "0x600B030")]
[Address(RVA = "0x182DF20", Offset = "0x182CD20", VA = "0x18182DF20")]
public static void CheckUint16(int i)
{
while (i != 0)
{
}
}
// Token: 0x0600B031 RID: 45105 RVA: 0x00264A8C File Offset: 0x00262C8C
[Token(Token = "0x600B031")]
[Address(RVA = "0x182DEA0", Offset = "0x182CCA0", VA = "0x18182DEA0")]
public static void CheckUint16(long i)
{
while (i != 0L)
{
}
}
// Token: 0x0600B032 RID: 45106 RVA: 0x00264A9C File Offset: 0x00262C9C
[Token(Token = "0x600B032")]
[Address(RVA = "0x182E030", Offset = "0x182CE30", VA = "0x18182E030")]
public static void CheckUint24(int i)
{
while (i != 0)
{
}
}
// Token: 0x0600B033 RID: 45107 RVA: 0x00264AAC File Offset: 0x00262CAC
[Token(Token = "0x600B033")]
[Address(RVA = "0x182DFA0", Offset = "0x182CDA0", VA = "0x18182DFA0")]
public static void CheckUint24(long i)
{
while (i != 0L)
{
}
}
// Token: 0x0600B034 RID: 45108 RVA: 0x00264ABC File Offset: 0x00262CBC
[Token(Token = "0x600B034")]
[Address(RVA = "0x182E0B0", Offset = "0x182CEB0", VA = "0x18182E0B0")]
public static void CheckUint32(long i)
{
while (i != 0L)
{
}
}
// Token: 0x0600B035 RID: 45109 RVA: 0x00264ACC File Offset: 0x00262CCC
[Token(Token = "0x600B035")]
[Address(RVA = "0x182E130", Offset = "0x182CF30", VA = "0x18182E130")]
public static void CheckUint48(long i)
{
while (i != 0L)
{
}
}
// Token: 0x0600B036 RID: 45110 RVA: 0x00264ADC File Offset: 0x00262CDC
[Token(Token = "0x600B036")]
[Address(RVA = "0x182E1C0", Offset = "0x182CFC0", VA = "0x18182E1C0")]
public static void CheckUint64(long i)
{
}
// Token: 0x0600B037 RID: 45111 RVA: 0x00264AEC File Offset: 0x00262CEC
[Token(Token = "0x600B037")]
[Address(RVA = "0x1832170", Offset = "0x1830F70", VA = "0x181832170")]
public static bool IsValidUint8(int i)
{
return i == i;
}
// Token: 0x0600B038 RID: 45112 RVA: 0x00264B00 File Offset: 0x00262D00
[Token(Token = "0x600B038")]
[Address(RVA = "0x1832180", Offset = "0x1830F80", VA = "0x181832180")]
public static bool IsValidUint8(long i)
{
return i == i;
}
// Token: 0x0600B039 RID: 45113 RVA: 0x00264B14 File Offset: 0x00262D14
[Token(Token = "0x600B039")]
[Address(RVA = "0x1832110", Offset = "0x1830F10", VA = "0x181832110")]
public static bool IsValidUint16(int i)
{
return i == i;
}
// Token: 0x0600B03A RID: 45114 RVA: 0x00264B28 File Offset: 0x00262D28
[Token(Token = "0x600B03A")]
[Address(RVA = "0x1832100", Offset = "0x1830F00", VA = "0x181832100")]
public static bool IsValidUint16(long i)
{
return i == i;
}
// Token: 0x0600B03B RID: 45115 RVA: 0x00264B3C File Offset: 0x00262D3C
[Token(Token = "0x600B03B")]
[Address(RVA = "0x1832130", Offset = "0x1830F30", VA = "0x181832130")]
public static bool IsValidUint24(int i)
{
return i == i;
}
// Token: 0x0600B03C RID: 45116 RVA: 0x00264B50 File Offset: 0x00262D50
[Token(Token = "0x600B03C")]
[Address(RVA = "0x1832120", Offset = "0x1830F20", VA = "0x181832120")]
public static bool IsValidUint24(long i)
{
return i == i;
}
// Token: 0x0600B03D RID: 45117 RVA: 0x00264B64 File Offset: 0x00262D64
[Token(Token = "0x600B03D")]
[Address(RVA = "0x1832140", Offset = "0x1830F40", VA = "0x181832140")]
public static bool IsValidUint32(long i)
{
return i == i;
}
// Token: 0x0600B03E RID: 45118 RVA: 0x00264B78 File Offset: 0x00262D78
[Token(Token = "0x600B03E")]
[Address(RVA = "0x1832150", Offset = "0x1830F50", VA = "0x181832150")]
public static bool IsValidUint48(long i)
{
return i == i;
}
// Token: 0x0600B03F RID: 45119 RVA: 0x00264B8C File Offset: 0x00262D8C
[Token(Token = "0x600B03F")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40")]
public static bool IsValidUint64(long i)
{
return true;
}
// Token: 0x0600B040 RID: 45120 RVA: 0x00264B9C File Offset: 0x00262D9C
[Token(Token = "0x600B040")]
[Address(RVA = "0x1831A20", Offset = "0x1830820", VA = "0x181831A20")]
public static bool IsSsl(TlsContext context)
{
bool flag;
return flag;
}
// Token: 0x0600B041 RID: 45121 RVA: 0x00264BB0 File Offset: 0x00262DB0
[Token(Token = "0x600B041")]
[Address(RVA = "0x1831BD0", Offset = "0x18309D0", VA = "0x181831BD0")]
public static bool IsTlsV11(ProtocolVersion version)
{
ProtocolVersion tlsv = ProtocolVersion.TLSv11;
ProtocolVersion equivalentTLSVersion = version.GetEquivalentTLSVersion();
return tlsv.IsEqualOrEarlierVersionOf(equivalentTLSVersion);
}
// Token: 0x0600B042 RID: 45122 RVA: 0x00264BD8 File Offset: 0x00262DD8
[Token(Token = "0x600B042")]
[Address(RVA = "0x1831AE0", Offset = "0x18308E0", VA = "0x181831AE0")]
public static bool IsTlsV11(TlsContext context)
{
ProtocolVersion protocolVersion;
return ProtocolVersion.TLSv11.IsEqualOrEarlierVersionOf(protocolVersion);
}
// Token: 0x0600B043 RID: 45123 RVA: 0x00264BF8 File Offset: 0x00262DF8
[Token(Token = "0x600B043")]
[Address(RVA = "0x1831D50", Offset = "0x1830B50", VA = "0x181831D50")]
public static bool IsTlsV12(ProtocolVersion version)
{
ProtocolVersion tlsv = ProtocolVersion.TLSv12;
ProtocolVersion equivalentTLSVersion = version.GetEquivalentTLSVersion();
return tlsv.IsEqualOrEarlierVersionOf(equivalentTLSVersion);
}
// Token: 0x0600B044 RID: 45124 RVA: 0x00264C20 File Offset: 0x00262E20
[Token(Token = "0x600B044")]
[Address(RVA = "0x1831C60", Offset = "0x1830A60", VA = "0x181831C60")]
public static bool IsTlsV12(TlsContext context)
{
ProtocolVersion protocolVersion;
return ProtocolVersion.TLSv12.IsEqualOrEarlierVersionOf(protocolVersion);
}
// Token: 0x0600B045 RID: 45125 RVA: 0x00264C40 File Offset: 0x00262E40
[Token(Token = "0x600B045")]
[Address(RVA = "0x18352D0", Offset = "0x18340D0", VA = "0x1818352D0")]
public static void WriteUint8(byte i, Stream output)
{
bool canRead = output.CanRead;
}
// Token: 0x0600B046 RID: 45126 RVA: 0x00264C5C File Offset: 0x00262E5C
[Token(Token = "0x600B046")]
[Address(RVA = "0x1835290", Offset = "0x1834090", VA = "0x181835290")]
public static void WriteUint8(byte i, byte[] buf, int offset)
{
}
// Token: 0x0600B047 RID: 45127 RVA: 0x00264C70 File Offset: 0x00262E70
[Token(Token = "0x600B047")]
[Address(RVA = "0x18348B0", Offset = "0x18336B0", VA = "0x1818348B0")]
public static void WriteUint16(int i, Stream output)
{
bool canRead = output.CanRead;
}
// Token: 0x0600B048 RID: 45128 RVA: 0x00264C8C File Offset: 0x00262E8C
[Token(Token = "0x600B048")]
[Address(RVA = "0x6DED90", Offset = "0x6DDB90", VA = "0x1806DED90")]
public static void WriteUint16(int i, byte[] buf, int offset)
{
}
// Token: 0x0600B049 RID: 45129 RVA: 0x00264CA0 File Offset: 0x00262EA0
[Token(Token = "0x600B049")]
[Address(RVA = "0x1834990", Offset = "0x1833790", VA = "0x181834990")]
public static void WriteUint24(int i, Stream output)
{
bool canRead = output.CanRead;
}
// Token: 0x0600B04A RID: 45130 RVA: 0x00264CBC File Offset: 0x00262EBC
[Token(Token = "0x600B04A")]
[Address(RVA = "0x1834910", Offset = "0x1833710", VA = "0x181834910")]
public static void WriteUint24(int i, byte[] buf, int offset)
{
int num = offset + 1;
}
// Token: 0x0600B04B RID: 45131 RVA: 0x00264CD4 File Offset: 0x00262ED4
[Token(Token = "0x600B04B")]
[Address(RVA = "0x1834AB0", Offset = "0x18338B0", VA = "0x181834AB0")]
public static void WriteUint32(long i, Stream output)
{
bool canRead = output.CanRead;
}
// Token: 0x0600B04C RID: 45132 RVA: 0x00264CF0 File Offset: 0x00262EF0
[Token(Token = "0x600B04C")]
[Address(RVA = "0x1834A00", Offset = "0x1833800", VA = "0x181834A00")]
public static void WriteUint32(long i, byte[] buf, int offset)
{
int num = offset + 1;
}
// Token: 0x0600B04D RID: 45133 RVA: 0x00264D08 File Offset: 0x00262F08
[Token(Token = "0x600B04D")]
[Address(RVA = "0x1834C40", Offset = "0x1833A40", VA = "0x181834C40")]
public static void WriteUint48(long i, Stream output)
{
bool canRead = output.CanRead;
}
// Token: 0x0600B04E RID: 45134 RVA: 0x00264D24 File Offset: 0x00262F24
[Token(Token = "0x600B04E")]
[Address(RVA = "0x1834B40", Offset = "0x1833940", VA = "0x181834B40")]
public static void WriteUint48(long i, byte[] buf, int offset)
{
int num = offset + 1;
}
// Token: 0x0600B04F RID: 45135 RVA: 0x00264D3C File Offset: 0x00262F3C
[Token(Token = "0x600B04F")]
[Address(RVA = "0x1834D10", Offset = "0x1833B10", VA = "0x181834D10")]
public static void WriteUint64(long i, Stream output)
{
bool canRead = output.CanRead;
}
// Token: 0x0600B050 RID: 45136 RVA: 0x00264D58 File Offset: 0x00262F58
[Token(Token = "0x600B050")]
[Address(RVA = "0x1834E10", Offset = "0x1833C10", VA = "0x181834E10")]
public static void WriteUint64(long i, byte[] buf, int offset)
{
int num = offset + 1;
}
// Token: 0x0600B051 RID: 45137 RVA: 0x00264D70 File Offset: 0x00262F70
[Token(Token = "0x600B051")]
[Address(RVA = "0x1834400", Offset = "0x1833200", VA = "0x181834400")]
public static void WriteOpaque8(byte[] buf, Stream output)
{
int num = output.ReadByte();
}
// Token: 0x0600B052 RID: 45138 RVA: 0x00264D8C File Offset: 0x00262F8C
[Token(Token = "0x600B052")]
[Address(RVA = "0x1834240", Offset = "0x1833040", VA = "0x181834240")]
public static void WriteOpaque16(byte[] buf, Stream output)
{
int num = output.ReadByte();
}
// Token: 0x0600B053 RID: 45139 RVA: 0x00264DA8 File Offset: 0x00262FA8
[Token(Token = "0x600B053")]
[Address(RVA = "0x1834310", Offset = "0x1833110", VA = "0x181834310")]
public static void WriteOpaque24(byte[] buf, Stream output)
{
int num = output.ReadByte();
}
// Token: 0x0600B054 RID: 45140 RVA: 0x00264DC4 File Offset: 0x00262FC4
[Token(Token = "0x600B054")]
[Address(RVA = "0x1835170", Offset = "0x1833F70", VA = "0x181835170")]
public static void WriteUint8Array(byte[] uints, Stream output)
{
int num = output.ReadByte();
}
// Token: 0x0600B055 RID: 45141 RVA: 0x00264DE0 File Offset: 0x00262FE0
[Token(Token = "0x600B055")]
[Address(RVA = "0x18351B0", Offset = "0x1833FB0", VA = "0x1818351B0")]
public static void WriteUint8Array(byte[] uints, byte[] buf, int offset)
{
int num = 0;
int length = uints.Length;
if (num < length)
{
num++;
}
}
// Token: 0x0600B056 RID: 45142 RVA: 0x00264E04 File Offset: 0x00263004
[Token(Token = "0x600B056")]
[Address(RVA = "0x18350C0", Offset = "0x1833EC0", VA = "0x1818350C0")]
public static void WriteUint8ArrayWithUint8Length(byte[] uints, Stream output)
{
TlsUtilities.CheckUint8(uints.Length);
int num = output.ReadByte();
}
// Token: 0x0600B057 RID: 45143 RVA: 0x00264E2C File Offset: 0x0026302C
[Token(Token = "0x600B057")]
[Address(RVA = "0x1834F70", Offset = "0x1833D70", VA = "0x181834F70")]
public static void WriteUint8ArrayWithUint8Length(byte[] uints, byte[] buf, int offset)
{
TlsUtilities.CheckUint8(uints.Length);
int length = uints.Length;
int num = 0;
int length2 = uints.Length;
if (num < length2)
{
num++;
}
}
// Token: 0x0600B058 RID: 45144 RVA: 0x00264E64 File Offset: 0x00263064
[Token(Token = "0x600B058")]
[Address(RVA = "0x1834730", Offset = "0x1833530", VA = "0x181834730")]
public static void WriteUint16Array(int[] uints, Stream output)
{
int num = 0;
int length = uints.Length;
if (num < length)
{
TlsUtilities.WriteUint16(uints[num], output);
num++;
}
}
// Token: 0x0600B059 RID: 45145 RVA: 0x00264E98 File Offset: 0x00263098
[Token(Token = "0x600B059")]
[Address(RVA = "0x18347E0", Offset = "0x18335E0", VA = "0x1818347E0")]
public static void WriteUint16Array(int[] uints, byte[] buf, int offset)
{
int num = 0;
int length = uints.Length;
if (num < length)
{
PngHelperInternal.WriteInt2tobytes(uints[num], buf, offset);
num++;
}
}
// Token: 0x0600B05A RID: 45146 RVA: 0x00264ECC File Offset: 0x002630CC
[Token(Token = "0x600B05A")]
[Address(RVA = "0x1834600", Offset = "0x1833400", VA = "0x181834600")]
public static void WriteUint16ArrayWithUint16Length(int[] uints, Stream output)
{
int num = uints.Length;
num += num;
TlsUtilities.CheckUint16(num);
int num2 = 0;
int length = uints.Length;
if (num2 < length)
{
TlsUtilities.WriteUint16(uints[num2], output);
num2++;
}
}
// Token: 0x0600B05B RID: 45147 RVA: 0x00264F10 File Offset: 0x00263110
[Token(Token = "0x600B05B")]
[Address(RVA = "0x18344A0", Offset = "0x18332A0", VA = "0x1818344A0")]
public static void WriteUint16ArrayWithUint16Length(int[] uints, byte[] buf, int offset)
{
int num = uints.Length;
num += num;
TlsUtilities.CheckUint16(num);
int num2 = offset + 1;
int num3 = 0;
int length = uints.Length;
if (num3 < length)
{
PngHelperInternal.WriteInt2tobytes(uints[num3], buf, offset);
num3++;
}
}
// Token: 0x0600B05C RID: 45148 RVA: 0x00264F58 File Offset: 0x00263158
[Token(Token = "0x600B05C")]
[Address(RVA = "0x182EE30", Offset = "0x182DC30", VA = "0x18182EE30")]
public static byte DecodeUint8(byte[] buf)
{
/*
An exception occurred when decompiling this method (0600B05C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::DecodeUint8(System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1C:
stloc:ArgumentNullException(var_1_26, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("buf")))
}
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: 0x0600B05D RID: 45149 RVA: 0x00264F8C File Offset: 0x0026318C
[Token(Token = "0x600B05D")]
[Address(RVA = "0x182ECA0", Offset = "0x182DAA0", VA = "0x18182ECA0")]
public static byte[] DecodeUint8ArrayWithUint8Length(byte[] buf)
{
/*
An exception occurred when decompiling this method (0600B05D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::DecodeUint8ArrayWithUint8Length(System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2D:
stloc:ArgumentNullException(var_6_37, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("buf")))
}
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: 0x0600B05E RID: 45150 RVA: 0x00264FD4 File Offset: 0x002631D4
[Token(Token = "0x600B05E")]
[Address(RVA = "0x182EF00", Offset = "0x182DD00", VA = "0x18182EF00")]
public static byte[] EncodeOpaque8(byte[] buf)
{
TlsUtilities.CheckUint8(buf.Length);
int length = buf.Length;
return Arrays.Prepend(buf, (byte)length);
}
// Token: 0x0600B05F RID: 45151 RVA: 0x00265000 File Offset: 0x00263200
[Token(Token = "0x600B05F")]
[Address(RVA = "0x182F570", Offset = "0x182E370", VA = "0x18182F570")]
public static byte[] EncodeUint8(byte val)
{
TlsUtilities.CheckUint8((int)val);
return new byte[] { val };
}
// Token: 0x0600B060 RID: 45152 RVA: 0x0026502C File Offset: 0x0026322C
[Token(Token = "0x600B060")]
[Address(RVA = "0x182F3E0", Offset = "0x182E1E0", VA = "0x18182F3E0")]
public static byte[] EncodeUint8ArrayWithUint8Length(byte[] uints)
{
int num = uints.Length;
num++;
byte[] array = new byte[num];
TlsUtilities.CheckUint8(uints.Length);
int length = uints.Length;
array[0] = (byte)length;
int num2 = 0;
int length2 = uints.Length;
if (num2 < length2)
{
num2++;
}
return array;
}
// Token: 0x0600B061 RID: 45153 RVA: 0x00265080 File Offset: 0x00263280
[Token(Token = "0x600B061")]
[Address(RVA = "0x182F230", Offset = "0x182E030", VA = "0x18182F230")]
public static byte[] EncodeUint16ArrayWithUint16Length(int[] uints)
{
int num = uints.Length;
num += num;
num += 2;
byte[] array = new byte[num];
int num2 = uints.Length;
num2 += num2;
TlsUtilities.CheckUint16(num2);
array[0] = (byte)num2;
array[0] = (byte)num2;
int num3 = 0;
int length = uints.Length;
if (num3 < length)
{
uint num4;
PngHelperInternal.WriteInt2tobytes(uints[num3], array, (int)num4);
num4 += (uint)2;
num3++;
}
return array;
}
// Token: 0x0600B062 RID: 45154 RVA: 0x002650F8 File Offset: 0x002632F8
[Token(Token = "0x600B062")]
[Address(RVA = "0x18337A0", Offset = "0x18325A0", VA = "0x1818337A0")]
public static byte ReadUint8(Stream input)
{
/*
An exception occurred when decompiling this method (0600B062)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::ReadUint8(System.IO.Stream)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:EndOfStreamException(var_1_05, newobj:EndOfStreamException(EndOfStreamException::.ctor))
}
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: 0x0600B063 RID: 45155 RVA: 0x0026510C File Offset: 0x0026330C
[Token(Token = "0x600B063")]
[Address(RVA = "0x12949B0", Offset = "0x12937B0", VA = "0x1812949B0")]
public static byte ReadUint8(byte[] buf, int offset)
{
byte b;
return b;
}
// Token: 0x0600B064 RID: 45156 RVA: 0x00265120 File Offset: 0x00263320
[Token(Token = "0x600B064")]
[Address(RVA = "0x1833170", Offset = "0x1831F70", VA = "0x181833170")]
public static int ReadUint16(Stream input)
{
int num;
return num;
}
// Token: 0x0600B065 RID: 45157 RVA: 0x00265134 File Offset: 0x00263334
[Token(Token = "0x600B065")]
[Address(RVA = "0x1833210", Offset = "0x1832010", VA = "0x181833210")]
public static int ReadUint16(byte[] buf, int offset)
{
int length = buf.Length;
throw new NullReferenceException();
}
// Token: 0x0600B066 RID: 45158 RVA: 0x00265150 File Offset: 0x00263350
[Token(Token = "0x600B066")]
[Address(RVA = "0x1833270", Offset = "0x1832070", VA = "0x181833270")]
public static int ReadUint24(Stream input)
{
int num;
return num;
}
// Token: 0x0600B067 RID: 45159 RVA: 0x00265164 File Offset: 0x00263364
[Token(Token = "0x600B067")]
[Address(RVA = "0x1833330", Offset = "0x1832130", VA = "0x181833330")]
public static int ReadUint24(byte[] buf, int offset)
{
int length = buf.Length;
int num = offset + 1;
throw new NullReferenceException();
}
// Token: 0x0600B068 RID: 45160 RVA: 0x00265184 File Offset: 0x00263384
[Token(Token = "0x600B068")]
[Address(RVA = "0x18333C0", Offset = "0x18321C0", VA = "0x1818333C0")]
public static long ReadUint32(Stream input)
{
throw new NullReferenceException();
}
// Token: 0x0600B069 RID: 45161 RVA: 0x00265198 File Offset: 0x00263398
[Token(Token = "0x600B069")]
[Address(RVA = "0x18334B0", Offset = "0x18322B0", VA = "0x1818334B0")]
public static long ReadUint32(byte[] buf, int offset)
{
int length = buf.Length;
int num = offset + 1;
throw new NullReferenceException();
}
// Token: 0x0600B06A RID: 45162 RVA: 0x002651B8 File Offset: 0x002633B8
[Token(Token = "0x600B06A")]
[Address(RVA = "0x1833660", Offset = "0x1832460", VA = "0x181833660")]
public static long ReadUint48(Stream input)
{
/*
An exception occurred when decompiling this method (0600B06A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::ReadUint48(System.IO.Stream)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:int32(var_0_06, call:int32(TlsUtilities::ReadUint24, ldloc:Stream(input)))
stloc:int32(var_1_0D, call:int32(TlsUtilities::ReadUint24, ldloc:Stream(input)))
}
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: 0x0600B06B RID: 45163 RVA: 0x002651D4 File Offset: 0x002633D4
[Token(Token = "0x600B06B")]
[Address(RVA = "0x1833570", Offset = "0x1832370", VA = "0x181833570")]
public static long ReadUint48(byte[] buf, int offset)
{
int num = TlsUtilities.ReadUint24(buf, offset);
int length = buf.Length;
throw new NullReferenceException();
}
// Token: 0x0600B06C RID: 45164 RVA: 0x002651F8 File Offset: 0x002633F8
[Token(Token = "0x600B06C")]
[Address(RVA = "0x1832790", Offset = "0x1831590", VA = "0x181832790")]
public static byte[] ReadAllOrNothing(int length, Stream input)
{
/*
An exception occurred when decompiling this method (0600B06C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::ReadAllOrNothing(System.Int32,System.IO.Stream)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_21:
stloc:EndOfStreamException(var_3_26, newobj:EndOfStreamException(EndOfStreamException::.ctor))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1660
*/;
}
// Token: 0x0600B06D RID: 45165 RVA: 0x0026522C File Offset: 0x0026342C
[Token(Token = "0x600B06D")]
[Address(RVA = "0x1832BC0", Offset = "0x18319C0", VA = "0x181832BC0")]
public static byte[] ReadFully(int length, Stream input)
{
/*
An exception occurred when decompiling this method (0600B06D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::ReadFully(System.Int32,System.IO.Stream)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1B:
stloc:EndOfStreamException(var_2_20, newobj:EndOfStreamException(EndOfStreamException::.ctor))
}
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: 0x0600B06E RID: 45166 RVA: 0x0026525C File Offset: 0x0026345C
[Token(Token = "0x600B06E")]
[Address(RVA = "0x1832C90", Offset = "0x1831A90", VA = "0x181832C90")]
public static void ReadFully(byte[] buf, Stream input)
{
int length = buf.Length;
int num = 0;
int num2 = Streams.ReadFully(input, buf, num, length);
}
// Token: 0x0600B06F RID: 45167 RVA: 0x00265284 File Offset: 0x00263484
[Token(Token = "0x600B06F")]
[Address(RVA = "0x1832E00", Offset = "0x1831C00", VA = "0x181832E00")]
public static byte[] ReadOpaque8(Stream input)
{
byte[] array = new byte[(int)TlsUtilities.ReadUint8(input)];
TlsUtilities.ReadFully(array, input);
return array;
}
// Token: 0x0600B070 RID: 45168 RVA: 0x002652A8 File Offset: 0x002634A8
[Token(Token = "0x600B070")]
[Address(RVA = "0x1832D20", Offset = "0x1831B20", VA = "0x181832D20")]
public static byte[] ReadOpaque16(Stream input)
{
byte[] array = new byte[TlsUtilities.ReadUint16(input)];
TlsUtilities.ReadFully(array, input);
return array;
}
// Token: 0x0600B071 RID: 45169 RVA: 0x002652CC File Offset: 0x002634CC
[Token(Token = "0x600B071")]
[Address(RVA = "0x1832DA0", Offset = "0x1831BA0", VA = "0x181832DA0")]
public static byte[] ReadOpaque24(Stream input)
{
return TlsUtilities.ReadFully(TlsUtilities.ReadUint24(input), input);
}
// Token: 0x0600B072 RID: 45170 RVA: 0x002652E8 File Offset: 0x002634E8
[Token(Token = "0x600B072")]
[Address(RVA = "0x18336E0", Offset = "0x18324E0", VA = "0x1818336E0")]
public static byte[] ReadUint8Array(int count, Stream input)
{
byte[] array = new byte[count];
int num = 0;
if (count > 0)
{
byte b = TlsUtilities.ReadUint8(input);
num++;
}
return array;
}
// Token: 0x0600B073 RID: 45171 RVA: 0x00265314 File Offset: 0x00263514
[Token(Token = "0x600B073")]
[Address(RVA = "0x18330B0", Offset = "0x1831EB0", VA = "0x1818330B0")]
public static int[] ReadUint16Array(int count, Stream input)
{
int[] array = new int[count];
int num = 0;
if (count > 0)
{
int num2 = TlsUtilities.ReadUint16(input);
num++;
array[0] = num2;
}
return array;
}
// Token: 0x0600B074 RID: 45172 RVA: 0x00265348 File Offset: 0x00263548
[Token(Token = "0x600B074")]
[Address(RVA = "0x18338C0", Offset = "0x18326C0", VA = "0x1818338C0")]
public static ProtocolVersion ReadVersion(byte[] buf, int offset)
{
int length = buf.Length;
int num = offset + 1;
byte b;
byte b2;
return ProtocolVersion.Get((int)b, (int)b2);
}
// Token: 0x0600B075 RID: 45173 RVA: 0x00265370 File Offset: 0x00263570
[Token(Token = "0x600B075")]
[Address(RVA = "0x1833970", Offset = "0x1832770", VA = "0x181833970")]
public static ProtocolVersion ReadVersion(Stream input)
{
int num;
int num2;
return ProtocolVersion.Get(num, num2);
}
// Token: 0x0600B076 RID: 45174 RVA: 0x0026538C File Offset: 0x0026358C
[Token(Token = "0x600B076")]
[Address(RVA = "0x1833210", Offset = "0x1832010", VA = "0x181833210")]
public static int ReadVersionRaw(byte[] buf, int offset)
{
int length = buf.Length;
throw new NullReferenceException();
}
// Token: 0x0600B077 RID: 45175 RVA: 0x002653A8 File Offset: 0x002635A8
[Token(Token = "0x600B077")]
[Address(RVA = "0x1833820", Offset = "0x1832620", VA = "0x181833820")]
public static int ReadVersionRaw(Stream input)
{
int num;
return num;
}
// Token: 0x0600B078 RID: 45176 RVA: 0x002653BC File Offset: 0x002635BC
[Token(Token = "0x600B078")]
[Address(RVA = "0x1832880", Offset = "0x1831680", VA = "0x181832880")]
public static Asn1Object ReadAsn1Object(byte[] encoding)
{
Asn1Object asn1Object;
for (;;)
{
int num;
MemoryStream memoryStream = new MemoryStream(encoding, num != 0);
num = 0;
int length;
Asn1InputStream asn1InputStream = new Asn1InputStream(memoryStream, length);
length = encoding.Length;
asn1Object = asn1InputStream.ReadObject();
if (asn1Object != 0)
{
long length2 = memoryStream.Length;
bool canWrite = memoryStream.CanWrite;
if (length2 == (canWrite ? 1L : 0L))
{
break;
}
}
}
return asn1Object;
}
// Token: 0x0600B079 RID: 45177 RVA: 0x00265410 File Offset: 0x00263610
[Token(Token = "0x600B079")]
[Address(RVA = "0x18329C0", Offset = "0x18317C0", VA = "0x1818329C0")]
public static Asn1Object ReadDerObject(byte[] encoding)
{
Asn1Object asn1Object;
for (;;)
{
int num;
MemoryStream memoryStream = new MemoryStream(encoding, num != 0);
num = 0;
int length;
Asn1InputStream asn1InputStream = new Asn1InputStream(memoryStream, length);
length = encoding.Length;
asn1Object = asn1InputStream.ReadObject();
if (asn1Object != 0)
{
long length2 = memoryStream.Length;
bool canWrite = memoryStream.CanWrite;
if (length2 == (canWrite ? 1L : 0L) && Arrays.AreEqual(asn1Object.GetEncoded("DER"), encoding))
{
break;
}
}
}
return asn1Object;
}
// Token: 0x0600B07A RID: 45178 RVA: 0x00265478 File Offset: 0x00263678
[Token(Token = "0x600B07A")]
[Address(RVA = "0x1834130", Offset = "0x1832F30", VA = "0x181834130")]
public static void WriteGmtUnixTime(byte[] buf, int offset)
{
long num = DateTimeUtilities.CurrentUnixMs();
ulong num2;
num2 += num2;
int num3 = offset + 1;
}
// Token: 0x0600B07B RID: 45179 RVA: 0x0026549C File Offset: 0x0026369C
[Token(Token = "0x600B07B")]
[Address(RVA = "0x1835380", Offset = "0x1834180", VA = "0x181835380")]
public static void WriteVersion(ProtocolVersion version, Stream output)
{
int majorVersion = version.MajorVersion;
int minorVersion = version.MinorVersion;
bool canRead = output.CanRead;
}
// Token: 0x0600B07C RID: 45180 RVA: 0x002654C4 File Offset: 0x002636C4
[Token(Token = "0x600B07C")]
[Address(RVA = "0x1835300", Offset = "0x1834100", VA = "0x181835300")]
public static void WriteVersion(ProtocolVersion version, byte[] buf, int offset)
{
int majorVersion = version.MajorVersion;
int minorVersion = version.MinorVersion;
}
// Token: 0x0600B07D RID: 45181 RVA: 0x002654E8 File Offset: 0x002636E8
[Token(Token = "0x600B07D")]
[Address(RVA = "0x182F6F0", Offset = "0x182E4F0", VA = "0x18182F6F0")]
public static IList GetAllSignatureAlgorithms()
{
return Platform.CreateArrayList(4);
}
// Token: 0x0600B07E RID: 45182 RVA: 0x00265504 File Offset: 0x00263704
[Token(Token = "0x600B07E")]
[Address(RVA = "0x182FBC0", Offset = "0x182E9C0", VA = "0x18182FBC0")]
public static IList GetDefaultDssSignatureAlgorithms()
{
SignatureAndHashAlgorithm signatureAndHashAlgorithm;
return TlsUtilities.VectorOfOne(signatureAndHashAlgorithm);
}
// Token: 0x0600B07F RID: 45183 RVA: 0x00265518 File Offset: 0x00263718
[Token(Token = "0x600B07F")]
[Address(RVA = "0x182FC30", Offset = "0x182EA30", VA = "0x18182FC30")]
public static IList GetDefaultECDsaSignatureAlgorithms()
{
SignatureAndHashAlgorithm signatureAndHashAlgorithm;
return TlsUtilities.VectorOfOne(signatureAndHashAlgorithm);
}
// Token: 0x0600B080 RID: 45184 RVA: 0x0026552C File Offset: 0x0026372C
[Token(Token = "0x600B080")]
[Address(RVA = "0x182FCA0", Offset = "0x182EAA0", VA = "0x18182FCA0")]
public static IList GetDefaultRsaSignatureAlgorithms()
{
SignatureAndHashAlgorithm signatureAndHashAlgorithm;
return TlsUtilities.VectorOfOne(signatureAndHashAlgorithm);
}
// Token: 0x0600B081 RID: 45185 RVA: 0x00265540 File Offset: 0x00263740
[Token(Token = "0x600B081")]
[Address(RVA = "0x1830260", Offset = "0x182F060", VA = "0x181830260")]
public static byte[] GetExtensionData(IDictionary extensions, int extensionType)
{
/*
An exception occurred when decompiling this method (0600B081)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::GetExtensionData(System.Collections.IDictionary,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_18:
stloc:int32(var_1_1C, add:int32(ldloc:int32(var_1_0F), ldc.i4:int32(19)))
}
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: 0x0600B082 RID: 45186 RVA: 0x0026556C File Offset: 0x0026376C
[Token(Token = "0x600B082")]
[Address(RVA = "0x182FD10", Offset = "0x182EB10", VA = "0x18182FD10")]
public static IList GetDefaultSupportedSignatureAlgorithms()
{
byte[] array = new byte[5];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.79D1A3D3B708EBFF6FA27AAF280AC9B637B4FF31).FieldHandle);
byte[] array2 = new byte[3];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.7037807198C22A7D2B0807371D763779A84FDFCF).FieldHandle);
IList list = Platform.CreateArrayList();
int num = 0;
int num2 = 0;
if (num2 < array2.Length)
{
int num3 = 0;
if (num3 < array.Length)
{
byte b;
byte b2;
SignatureAndHashAlgorithm signatureAndHashAlgorithm = new SignatureAndHashAlgorithm(b, b2);
num3++;
}
num++;
}
return list;
}
// Token: 0x0600B083 RID: 45187 RVA: 0x002655E4 File Offset: 0x002637E4
[Token(Token = "0x600B083")]
[Address(RVA = "0x1830E80", Offset = "0x182FC80", VA = "0x181830E80")]
public static SignatureAndHashAlgorithm GetSignatureAndHashAlgorithm(TlsContext context, TlsSignerCredentials signerCredentials)
{
/*
An exception occurred when decompiling this method (0600B083)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::GetSignatureAndHashAlgorithm(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsContext,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsSignerCredentials)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1F:
stloc:TlsFatalAlert(var_3_26, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint64[exp:uint8](var_4)))
}
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: 0x0600B084 RID: 45188 RVA: 0x00265618 File Offset: 0x00263818
[Token(Token = "0x600B084")]
[Address(RVA = "0x18316B0", Offset = "0x18304B0", VA = "0x1818316B0")]
public static bool HasExpectedEmptyExtensionData(IDictionary extensions, int extensionType, byte alertDescription)
{
/*
An exception occurred when decompiling this method (0600B084)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::HasExpectedEmptyExtensionData(System.Collections.IDictionary,System.Int32,System.Byte)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_17:
stloc:TlsFatalAlert(var_1_1D, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint8(alertDescription)))
}
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: 0x0600B085 RID: 45189 RVA: 0x00265644 File Offset: 0x00263844
[Token(Token = "0x600B085")]
[Address(RVA = "0x1831790", Offset = "0x1830590", VA = "0x181831790")]
public static TlsSession ImportSession(byte[] sessionID, SessionParameters sessionParameters)
{
/*
An exception occurred when decompiling this method (0600B085)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsSession BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::ImportSession(System.Byte[],BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.SessionParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_35:
stloc:ArgumentNullException(var_3_3F, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("sessionID")))
}
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: 0x0600B086 RID: 45190 RVA: 0x00265690 File Offset: 0x00263890
[Token(Token = "0x600B086")]
[Address(RVA = "0x1831990", Offset = "0x1830790", VA = "0x181831990")]
public static bool IsSignatureAlgorithmsExtensionAllowed(ProtocolVersion clientVersion)
{
ProtocolVersion tlsv = ProtocolVersion.TLSv12;
ProtocolVersion equivalentTLSVersion = clientVersion.GetEquivalentTLSVersion();
return tlsv.IsEqualOrEarlierVersionOf(equivalentTLSVersion);
}
// Token: 0x0600B087 RID: 45191 RVA: 0x002656B8 File Offset: 0x002638B8
[Token(Token = "0x600B087")]
[Address(RVA = "0x182D2D0", Offset = "0x182C0D0", VA = "0x18182D2D0")]
public static void AddSignatureAlgorithmsExtension(IDictionary extensions, IList supportedSignatureAlgorithms)
{
MemoryStream memoryStream = new MemoryStream();
int num = 0;
TlsUtilities.EncodeSupportedSignatureAlgorithms(supportedSignatureAlgorithms, num != 0, memoryStream);
}
// Token: 0x0600B088 RID: 45192 RVA: 0x002656DC File Offset: 0x002638DC
[Token(Token = "0x600B088")]
[Address(RVA = "0x1830DF0", Offset = "0x182FBF0", VA = "0x181830DF0")]
public static IList GetSignatureAlgorithmsExtension(IDictionary extensions)
{
byte[] extensionData = TlsUtilities.GetExtensionData(extensions, 13);
if (extensionData == 0)
{
}
return TlsUtilities.ReadSignatureAlgorithmsExtension(extensionData);
}
// Token: 0x0600B089 RID: 45193 RVA: 0x002656FC File Offset: 0x002638FC
[Token(Token = "0x600B089")]
[Address(RVA = "0x182EB20", Offset = "0x182D920", VA = "0x18182EB20")]
public static byte[] CreateSignatureAlgorithmsExtension(IList supportedSignatureAlgorithms)
{
MemoryStream memoryStream = new MemoryStream();
int num = 0;
TlsUtilities.EncodeSupportedSignatureAlgorithms(supportedSignatureAlgorithms, num != 0, memoryStream);
((IDisposable)memoryStream).Dispose();
throw new NullReferenceException();
}
// Token: 0x0600B08A RID: 45194 RVA: 0x00265724 File Offset: 0x00263924
[Token(Token = "0x600B08A")]
[Address(RVA = "0x1832E80", Offset = "0x1831C80", VA = "0x181832E80")]
public static IList ReadSignatureAlgorithmsExtension(byte[] extensionData)
{
/*
An exception occurred when decompiling this method (0600B08A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IList BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::ReadSignatureAlgorithmsExtension(System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_4A:
stloc:ArgumentNullException(var_7_54, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("extensionData")))
stloc:TlsFatalAlert(var_8_5D, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint64[exp:uint8](var_9)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1660
*/;
}
// Token: 0x0600B08B RID: 45195 RVA: 0x00265790 File Offset: 0x00263990
[Token(Token = "0x600B08B")]
[Address(RVA = "0x182EF90", Offset = "0x182DD90", VA = "0x18182EF90")]
public static void EncodeSupportedSignatureAlgorithms(IList supportedSignatureAlgorithms, bool allowAnonymous, Stream output)
{
/*
An exception occurred when decompiling this method (0600B08B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::EncodeSupportedSignatureAlgorithms(System.Collections.IList,System.Boolean,System.IO.Stream)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2C:
stloc:ArgumentException(var_2_3B, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("must have length from 1 to (2^15 - 1)"), ldstr:string("supportedSignatureAlgorithms")))
}
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: 0x0600B08C RID: 45196 RVA: 0x002657D8 File Offset: 0x002639D8
[Token(Token = "0x600B08C")]
[Address(RVA = "0x1832600", Offset = "0x1831400", VA = "0x181832600")]
public static IList ParseSupportedSignatureAlgorithms(bool allowAnonymous, Stream input)
{
/*
An exception occurred when decompiling this method (0600B08C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IList BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::ParseSupportedSignatureAlgorithms(System.Boolean,System.IO.Stream)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_39:
stloc:TlsFatalAlert(var_6_40, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint64[exp:uint8](var_7)))
stloc:TlsFatalAlert(var_8_49, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint64[exp:uint8](var_9)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.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: 0x0600B08D RID: 45197 RVA: 0x00265830 File Offset: 0x00263A30
[Token(Token = "0x600B08D")]
[Address(RVA = "0x1833E30", Offset = "0x1832C30", VA = "0x181833E30")]
public static void VerifySupportedSignatureAlgorithm(IList supportedSignatureAlgorithms, SignatureAndHashAlgorithm signatureAlgorithm)
{
/*
An exception occurred when decompiling this method (0600B08D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::VerifySupportedSignatureAlgorithm(System.Collections.IList,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_43:
stloc:ArgumentNullException(var_5_4D, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("signatureAlgorithm")))
}
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: 0x0600B08E RID: 45198 RVA: 0x0026588C File Offset: 0x00263A8C
[Token(Token = "0x600B08E")]
[Address(RVA = "0x18323F0", Offset = "0x18311F0", VA = "0x1818323F0")]
public static byte[] PRF(TlsContext context, byte[] secret, string asciiLabel, byte[] seed, int size)
{
/*
An exception occurred when decompiling this method (0600B08E)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::PRF(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsContext,System.Byte[],System.String,System.Byte[],System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3C:
stloc:InvalidOperationException(var_8_46, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("No PRF available for SSLv3 session")))
}
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: 0x0600B08F RID: 45199 RVA: 0x002658E0 File Offset: 0x00263AE0
[Token(Token = "0x600B08F")]
[Address(RVA = "0x1832190", Offset = "0x1830F90", VA = "0x181832190")]
public static byte[] PRF_legacy(byte[] secret, string asciiLabel, byte[] seed, int size)
{
byte[] array = Strings.ToByteArray(asciiLabel);
byte[] array2 = TlsUtilities.Concat(array, seed);
return TlsUtilities.PRF_legacy(secret, array, array2, size);
}
// Token: 0x0600B090 RID: 45200 RVA: 0x00265908 File Offset: 0x00263B08
[Token(Token = "0x600B090")]
[Address(RVA = "0x1832240", Offset = "0x1831040", VA = "0x181832240")]
internal static byte[] PRF_legacy(byte[] secret, byte[] label, byte[] labelSeed, int size)
{
int num = secret.Length;
num++;
num -= label;
byte[] array = new byte[num];
byte[] array2 = new byte[num];
int num2 = 0;
int num3 = 0;
int num4 = 0;
Array.Copy(secret, num4, array, num3, num);
int num5 = secret.Length;
int num6 = 0;
num5 -= num;
Array.Copy(secret, num5, array2, num6, num);
byte[] array3 = new byte[size];
byte[] array4 = new byte[size];
ulong num7;
TlsUtilities.HMacHash(TlsUtilities.CreateHash((byte)num7), array, labelSeed, array3);
ulong num8;
TlsUtilities.HMacHash(TlsUtilities.CreateHash((byte)num8), array2, labelSeed, array4);
if (size > 0)
{
num2++;
}
return array3;
}
// Token: 0x0600B091 RID: 45201 RVA: 0x002659AC File Offset: 0x00263BAC
[Token(Token = "0x600B091")]
[Address(RVA = "0x182E7F0", Offset = "0x182D5F0", VA = "0x18182E7F0")]
internal static byte[] Concat(byte[] a, byte[] b)
{
byte[] array = new byte[a.Length];
int length = a.Length;
int num = 0;
int num2 = 0;
Array.Copy(a, num2, array, num, length);
int length2 = b.Length;
int length3 = a.Length;
int num3 = 0;
Array.Copy(b, num3, array, length3, length2);
return array;
}
// Token: 0x0600B092 RID: 45202 RVA: 0x00265A04 File Offset: 0x00263C04
[Token(Token = "0x600B092")]
[Address(RVA = "0x1831440", Offset = "0x1830240", VA = "0x181831440")]
internal static void HMacHash(IDigest digest, byte[] secret, byte[] seed, byte[] output)
{
HMac hmac = new HMac(digest);
KeyParameter keyParameter = new KeyParameter(secret);
IDigest underlyingDigest = hmac.GetUnderlyingDigest();
int num = output.Length;
num += underlyingDigest;
byte[] array = new byte[num];
byte[] array2 = new byte[array];
int num2 = 0;
if (num > 0)
{
int num3 = 0;
hmac.Update(seed);
hmac.Update(array);
hmac.Update(seed);
int num4 = output.Length;
num4 -= num3;
int num5 = 0;
int num6;
Array.Copy(array2, num5, output, num3, num6);
num2++;
num3 += underlyingDigest;
}
}
// Token: 0x0600B093 RID: 45203 RVA: 0x00265A94 File Offset: 0x00263C94
[Token(Token = "0x600B093")]
[Address(RVA = "0x1833C80", Offset = "0x1832A80", VA = "0x181833C80")]
internal static void ValidateKeyUsage(X509CertificateStructure c, int keyUsageBits)
{
X509Extension extension;
do
{
X509Extensions extensions = c.tbsCert.extensions;
if (extensions == 0)
{
break;
}
DerObjectIdentifier keyUsage = X509Extensions.KeyUsage;
extension = extensions.GetExtension(keyUsage);
}
while (extension != 0 && (int)KeyUsage.GetInstance(extension).GetOctets()[0] != keyUsageBits);
}
// Token: 0x0600B094 RID: 45204 RVA: 0x00265AE0 File Offset: 0x00263CE0
[Token(Token = "0x600B094")]
[Address(RVA = "0x182D6D0", Offset = "0x182C4D0", VA = "0x18182D6D0")]
internal static byte[] CalculateKeyBlock(TlsContext context, int size)
{
bool flag;
if (!flag)
{
byte[] array;
return array;
}
throw new NullReferenceException();
}
// Token: 0x0600B095 RID: 45205 RVA: 0x00265AF8 File Offset: 0x00263CF8
[Token(Token = "0x600B095")]
[Address(RVA = "0x182D400", Offset = "0x182C200", VA = "0x18182D400")]
internal static byte[] CalculateKeyBlock_Ssl(byte[] master_secret, byte[] random, int size)
{
ulong num;
IDigest digest = TlsUtilities.CreateHash((byte)num);
ulong num2;
IDigest digest2 = TlsUtilities.CreateHash((byte)num2);
byte[] array = new byte[digest2];
byte[] array2 = new byte[digest2];
int num3 = 0;
if (size > 0)
{
int length = TlsUtilities.SSL3_CONST[num3].Length;
int length2 = master_secret.Length;
int length3 = random.Length;
int length4 = master_secret.Length;
int length5 = array.Length;
num3++;
}
int num4 = 0;
return Arrays.CopyOfRange(array2, num4, size);
}
// Token: 0x0600B096 RID: 45206 RVA: 0x00265B7C File Offset: 0x00263D7C
[Token(Token = "0x600B096")]
[Address(RVA = "0x182DB10", Offset = "0x182C910", VA = "0x18182DB10")]
internal static byte[] CalculateMasterSecret(TlsContext context, byte[] pre_master_secret)
{
bool flag;
if (!flag)
{
if (flag)
{
}
byte[] array;
ulong num;
return TlsUtilities.PRF(context, pre_master_secret, "master secret", array, (int)num);
}
throw new NullReferenceException();
}
// Token: 0x0600B097 RID: 45207 RVA: 0x00265BA8 File Offset: 0x00263DA8
[Token(Token = "0x600B097")]
[Address(RVA = "0x182D880", Offset = "0x182C680", VA = "0x18182D880")]
internal static byte[] CalculateMasterSecret_Ssl(byte[] pre_master_secret, byte[] random)
{
ulong num;
IDigest digest = TlsUtilities.CreateHash((byte)num);
ulong num2;
IDigest digest2 = TlsUtilities.CreateHash((byte)num2);
byte[] array = new byte[digest2];
byte[] array2 = new byte[digest2];
int num3 = 0;
int length = TlsUtilities.SSL3_CONST[num3].Length;
int length2 = pre_master_secret.Length;
int length3 = random.Length;
int length4 = pre_master_secret.Length;
int length5 = array.Length;
num3++;
return array2;
}
// Token: 0x0600B098 RID: 45208 RVA: 0x00265C1C File Offset: 0x00263E1C
[Token(Token = "0x600B098")]
[Address(RVA = "0x182DD40", Offset = "0x182CB40", VA = "0x18182DD40")]
internal static byte[] CalculateVerifyData(TlsContext context, string asciiLabel, byte[] handshakeHash)
{
bool flag;
if (!flag)
{
byte[] array;
return array;
}
throw new NullReferenceException();
}
// Token: 0x0600B099 RID: 45209 RVA: 0x00265C38 File Offset: 0x00263E38
[Token(Token = "0x600B099")]
[Address(RVA = "0x182E8A0", Offset = "0x182D6A0", VA = "0x18182E8A0")]
public static IDigest CreateHash(byte hashAlgorithm)
{
/*
An exception occurred when decompiling this method (0600B099)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::CreateHash(System.Byte)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:MD5Digest(var_0_05, newobj:MD5Digest(MD5Digest::.ctor))
stloc:Sha1Digest(var_1_0B, newobj:Sha1Digest(Sha1Digest::.ctor))
stloc:Sha224Digest(var_2_11, newobj:Sha224Digest(Sha224Digest::.ctor))
stloc:Sha256Digest(var_3_17, newobj:Sha256Digest(Sha256Digest::.ctor))
stloc:Sha384Digest(var_4_1D, newobj:Sha384Digest(Sha384Digest::.ctor))
stloc:Sha512Digest(var_5_24, newobj:Sha512Digest(Sha512Digest::.ctor))
stloc:ArgumentException(var_6_35, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown HashAlgorithm"), ldstr:string("hashAlgorithm")))
}
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: 0x0600B09A RID: 45210 RVA: 0x00265C7C File Offset: 0x00263E7C
[Token(Token = "0x600B09A")]
[Address(RVA = "0x182EA10", Offset = "0x182D810", VA = "0x18182EA10")]
public static IDigest CreateHash(SignatureAndHashAlgorithm signatureAndHashAlgorithm)
{
if (signatureAndHashAlgorithm == 0)
{
CombinedHash combinedHash = new CombinedHash();
}
string text = signatureAndHashAlgorithm.ToString();
IDigest digest;
return digest;
}
// Token: 0x0600B09B RID: 45211 RVA: 0x00265C9C File Offset: 0x00263E9C
[Token(Token = "0x600B09B")]
[Address(RVA = "0x182E310", Offset = "0x182D110", VA = "0x18182E310")]
public static IDigest CloneHash(byte hashAlgorithm, IDigest hash)
{
/*
An exception occurred when decompiling this method (0600B09B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::CloneHash(System.Byte,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:MD5Digest(var_0, newobj:MD5Digest(MD5Digest::.ctor, ldloc:MD5Digest(var_0)))
stloc:Sha1Digest(var_1, newobj:Sha1Digest(Sha1Digest::.ctor, ldloc:Sha1Digest(var_1)))
stloc:Sha224Digest(var_2, newobj:Sha224Digest(Sha224Digest::.ctor, ldloc:Sha224Digest(var_2)))
stloc:Sha256Digest(var_3, newobj:Sha256Digest(Sha256Digest::.ctor, ldloc:Sha256Digest(var_3)))
stloc:Sha384Digest(var_4, newobj:Sha384Digest(Sha384Digest::.ctor, ldloc:Sha384Digest(var_4)))
stloc:Sha512Digest(var_5, newobj:Sha512Digest(Sha512Digest::.ctor, ldloc:Sha512Digest(var_5)))
stloc:ArgumentException(var_6_3D, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown HashAlgorithm"), ldstr:string("hashAlgorithm")))
}
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: 0x0600B09C RID: 45212 RVA: 0x00265CE8 File Offset: 0x00263EE8
[Token(Token = "0x600B09C")]
[Address(RVA = "0x182EAA0", Offset = "0x182D8A0", VA = "0x18182EAA0")]
public static IDigest CreatePrfHash(int prfAlgorithm)
{
/*
An exception occurred when decompiling this method (0600B09C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::CreatePrfHash(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_10:
stloc:CombinedHash(var_0_15, newobj:CombinedHash(CombinedHash::.ctor))
}
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: 0x0600B09D RID: 45213 RVA: 0x00265D0C File Offset: 0x00263F0C
[Token(Token = "0x600B09D")]
[Address(RVA = "0x182E510", Offset = "0x182D310", VA = "0x18182E510")]
public static IDigest ClonePrfHash(int prfAlgorithm, IDigest hash)
{
/*
An exception occurred when decompiling this method (0600B09D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::ClonePrfHash(System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_4E:
stloc:ArgumentException(var_11_60, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown HashAlgorithm"), ldstr:string("hashAlgorithm")))
}
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: 0x0600B09E RID: 45214 RVA: 0x00265D7C File Offset: 0x00263F7C
[Token(Token = "0x600B09E")]
[Address(RVA = "0x1830370", Offset = "0x182F170", VA = "0x181830370")]
public static byte GetHashAlgorithmForPrfAlgorithm(int prfAlgorithm)
{
/*
An exception occurred when decompiling this method (0600B09E)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::GetHashAlgorithmForPrfAlgorithm(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1C:
stloc:ArgumentException(var_3_2B, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown PrfAlgorithm"), ldstr:string("prfAlgorithm")))
}
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: 0x0600B09F RID: 45215 RVA: 0x00265DB4 File Offset: 0x00263FB4
[Token(Token = "0x600B09F")]
[Address(RVA = "0x1830C00", Offset = "0x182FA00", VA = "0x181830C00")]
public static DerObjectIdentifier GetOidForHashAlgorithm(byte hashAlgorithm)
{
return PkcsObjectIdentifiers.MD5;
}
// Token: 0x0600B0A0 RID: 45216 RVA: 0x00265DF4 File Offset: 0x00263FF4
[Token(Token = "0x600B0A0")]
[Address(RVA = "0x182F900", Offset = "0x182E700", VA = "0x18182F900")]
internal static short GetClientCertificateType(Certificate clientCertificate, Certificate serverCertificate)
{
if (clientCertificate.Length == 0)
{
X509CertificateStructure[] certificateList = clientCertificate.GetCertificateList();
AsymmetricKeyParameter asymmetricKeyParameter = PublicKeyFactory.CreateKey(certificateList.SubjectPublicKeyInfo);
if (!asymmetricKeyParameter.privateKey)
{
if (asymmetricKeyParameter == 0)
{
if (asymmetricKeyParameter == 0)
{
if (asymmetricKeyParameter == 0)
{
goto IL_65;
}
TlsUtilities.ValidateKeyUsage(certificateList, 128);
}
TlsUtilities.ValidateKeyUsage(certificateList, 128);
}
TlsUtilities.ValidateKeyUsage(certificateList, 128);
goto IL_5F;
}
IL_65:
throw new NullReferenceException();
}
IL_5F:
throw new NullReferenceException();
}
// Token: 0x0600B0A1 RID: 45217 RVA: 0x00265E70 File Offset: 0x00264070
[Token(Token = "0x600B0A1")]
[Address(RVA = "0x1833A30", Offset = "0x1832830", VA = "0x181833A30")]
internal static void TrackHashAlgorithms(TlsHandshakeHash handshakeHash, IList supportedSignatureAlgorithms)
{
int num;
do
{
num = 0;
if (supportedSignatureAlgorithms == 0)
{
break;
}
num += num;
num++;
num++;
num += 19;
ulong num2;
num = (int)((ulong)num + num2);
if (num == 0 || num == 0)
{
goto IL_44;
}
string text = num.ToString();
bool flag;
while (!flag)
{
}
if (flag)
{
}
}
while (num != 0);
return;
IL_44:
throw new NullReferenceException();
}
// Token: 0x0600B0A2 RID: 45218 RVA: 0x00265ECC File Offset: 0x002640CC
[Token(Token = "0x600B0A2")]
[Address(RVA = "0x1831770", Offset = "0x1830570", VA = "0x181831770")]
public static bool HasSigningCapability(byte clientCertificateType)
{
return true;
}
// Token: 0x0600B0A3 RID: 45219 RVA: 0x00265EDC File Offset: 0x002640DC
[Token(Token = "0x600B0A3")]
[Address(RVA = "0x182EBC0", Offset = "0x182D9C0", VA = "0x18182EBC0")]
public static TlsSigner CreateTlsSigner(byte clientCertificateType)
{
/*
An exception occurred when decompiling this method (0600B0A3)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsSigner BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::CreateTlsSigner(System.Byte)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_17:
stloc:ArgumentException(var_2_26, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("not a type with signing capability"), ldstr:string("clientCertificateType")))
}
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: 0x0600B0A4 RID: 45220 RVA: 0x00265F10 File Offset: 0x00264110
[Token(Token = "0x600B0A4")]
[Address(RVA = "0x182F600", Offset = "0x182E400", VA = "0x18182F600")]
private static byte[][] GenSsl3Const()
{
byte[][] array = new byte[10][];
byte[] array2 = new byte[0];
throw new ArrayTypeMismatchException();
}
// Token: 0x0600B0A5 RID: 45221 RVA: 0x00265F44 File Offset: 0x00264144
[Token(Token = "0x600B0A5")]
[Address(RVA = "0x1833DA0", Offset = "0x1832BA0", VA = "0x181833DA0")]
private static IList VectorOfOne(object obj)
{
return Platform.CreateArrayList(1);
}
// Token: 0x0600B0A6 RID: 45222 RVA: 0x00265F60 File Offset: 0x00264160
[Token(Token = "0x600B0A6")]
[Address(RVA = "0x182F810", Offset = "0x182E610", VA = "0x18182F810")]
public static int GetCipherType(int ciphersuite)
{
/*
An exception occurred when decompiling this method (0600B0A6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::GetCipherType(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_19:
stloc:TlsFatalAlert(var_4_20, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint64[exp:uint8](var_5)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.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: 0x0600B0A7 RID: 45223 RVA: 0x00265F90 File Offset: 0x00264190
[Token(Token = "0x600B0A7")]
[Address(RVA = "0x182FEA0", Offset = "0x182ECA0", VA = "0x18182FEA0")]
public static int GetEncryptionAlgorithm(int ciphersuite)
{
/*
An exception occurred when decompiling this method (0600B0A7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::GetEncryptionAlgorithm(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_21:
stloc:TlsFatalAlert(var_18_28, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint64[exp:uint8](var_19)))
}
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: 0x0600B0A8 RID: 45224 RVA: 0x00265FC8 File Offset: 0x002641C8
[Token(Token = "0x600B0A8")]
[Address(RVA = "0x1830430", Offset = "0x182F230", VA = "0x181830430")]
public static int GetKeyExchangeAlgorithm(int ciphersuite)
{
/*
An exception occurred when decompiling this method (0600B0A8)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::GetKeyExchangeAlgorithm(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_23:
stloc:TlsFatalAlert(var_19_2A, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint64[exp:uint8](var_20)))
}
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: 0x0600B0A9 RID: 45225 RVA: 0x00266000 File Offset: 0x00264200
[Token(Token = "0x600B0A9")]
[Address(RVA = "0x1830840", Offset = "0x182F640", VA = "0x181830840")]
public static int GetMacAlgorithm(int ciphersuite)
{
/*
An exception occurred when decompiling this method (0600B0A9)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsUtilities::GetMacAlgorithm(System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1C:
stloc:TlsFatalAlert(var_4_23, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint64[exp:uint8](var_5)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.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: 0x0600B0AA RID: 45226 RVA: 0x00266034 File Offset: 0x00264234
[Token(Token = "0x600B0AA")]
[Address(RVA = "0x1830AE0", Offset = "0x182F8E0", VA = "0x181830AE0")]
public static ProtocolVersion GetMinimumVersion(int ciphersuite)
{
if (ciphersuite > 49202 && ciphersuite > 49327)
{
return ProtocolVersion.TLSv12;
}
if (ciphersuite > 109)
{
}
return ProtocolVersion.SSLv3;
}
// Token: 0x0600B0AB RID: 45227 RVA: 0x00266064 File Offset: 0x00264264
[Token(Token = "0x600B0AB")]
[Address(RVA = "0x18318D0", Offset = "0x18306D0", VA = "0x1818318D0")]
public static bool IsAeadCipherSuite(int ciphersuite)
{
return TlsUtilities.GetCipherType(ciphersuite) == 2;
}
// Token: 0x0600B0AC RID: 45228 RVA: 0x0026607C File Offset: 0x0026427C
[Token(Token = "0x600B0AC")]
[Address(RVA = "0x1831930", Offset = "0x1830730", VA = "0x181831930")]
public static bool IsBlockCipherSuite(int ciphersuite)
{
return TlsUtilities.GetCipherType(ciphersuite) == 1;
}
// Token: 0x0600B0AD RID: 45229 RVA: 0x00266094 File Offset: 0x00264294
[Token(Token = "0x600B0AD")]
[Address(RVA = "0x1831A80", Offset = "0x1830880", VA = "0x181831A80")]
public static bool IsStreamCipherSuite(int ciphersuite)
{
return TlsUtilities.GetCipherType(ciphersuite) == 0;
}
// Token: 0x0600B0AE RID: 45230 RVA: 0x002660AC File Offset: 0x002642AC
[Token(Token = "0x600B0AE")]
[Address(RVA = "0x1831DE0", Offset = "0x1830BE0", VA = "0x181831DE0")]
public static bool IsValidCipherSuiteForSignatureAlgorithms(int cipherSuite, IList sigAlgs)
{
int num = TlsUtilities.GetKeyExchangeAlgorithm(cipherSuite);
num += -3;
if (num <= 20)
{
}
throw new NullReferenceException();
}
// Token: 0x0600B0AF RID: 45231 RVA: 0x002660D0 File Offset: 0x002642D0
[Token(Token = "0x600B0AF")]
[Address(RVA = "0x1831F60", Offset = "0x1830D60", VA = "0x181831F60")]
public static bool IsValidCipherSuiteForVersion(int cipherSuite, ProtocolVersion serverVersion)
{
if (cipherSuite > 49202 && cipherSuite > 49327)
{
ProtocolVersion sslv = ProtocolVersion.SSLv3;
ProtocolVersion equivalentTLSVersion = serverVersion.GetEquivalentTLSVersion();
return sslv.IsEqualOrEarlierVersionOf(equivalentTLSVersion);
}
if (cipherSuite > 109)
{
}
throw new NullReferenceException();
}
// Token: 0x0600B0B0 RID: 45232 RVA: 0x0026610C File Offset: 0x0026430C
[Token(Token = "0x600B0B0")]
[Address(RVA = "0x1830FB0", Offset = "0x182FDB0", VA = "0x181830FB0")]
public static IList GetUsableSignatureAlgorithms(IList sigHashAlgs)
{
int num;
IList list;
do
{
num = 0;
if (sigHashAlgs == 0)
{
goto IL_57;
}
list = Platform.CreateArrayList(4);
byte b;
if (num < (int)b)
{
num += num;
num++;
}
num++;
num += 19;
ulong num2;
num = (int)((ulong)num + num2);
if (num == 0 || num == 0)
{
goto IL_64;
}
if (num < num)
{
num += num;
num++;
}
while (num != 0)
{
}
num += 3;
num += 19;
if (num != 0)
{
}
}
while (num != 0);
return list;
IL_57:
return Platform.CreateArrayList(4);
IL_64:
throw new NullReferenceException();
}
// Token: 0x0600B0B1 RID: 45233 RVA: 0x00266188 File Offset: 0x00264388
[Token(Token = "0x600B0B1")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected TlsUtilities()
{
}
// Token: 0x0600B0B2 RID: 45234 RVA: 0x0026619C File Offset: 0x0026439C
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x600B0B2")]
[Address(RVA = "0x18353F0", Offset = "0x18341F0", VA = "0x1818353F0")]
static TlsUtilities()
{
byte[] array = new byte[4];
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.31D8729F7377B44017C0A2395A582C9CA4163277).FieldHandle);
TlsUtilities.SSL_CLIENT = array;
byte[] array2 = new byte[4];
RuntimeHelpers.InitializeArray(array2, fieldof(<PrivateImplementationDetails>.1397D288BDA63B8D4B5F30CFFB9FF5A965AA7A1C).FieldHandle);
TlsUtilities.SSL_SERVER = array2;
byte[][] array3 = new byte[10][];
byte[] array4 = new byte[0];
throw new ArrayTypeMismatchException();
}
// Token: 0x0400708C RID: 28812
[Token(Token = "0x400708C")]
public static readonly byte[] EmptyBytes = new byte[0];
// Token: 0x0400708D RID: 28813
[Token(Token = "0x400708D")]
public static readonly short[] EmptyShorts = new short[0];
// Token: 0x0400708E RID: 28814
[Token(Token = "0x400708E")]
public static readonly int[] EmptyInts = new int[0];
// Token: 0x0400708F RID: 28815
[Token(Token = "0x400708F")]
public static readonly long[] EmptyLongs = new long[0];
// Token: 0x04007090 RID: 28816
[Token(Token = "0x4007090")]
internal static readonly byte[] SSL_CLIENT;
// Token: 0x04007091 RID: 28817
[Token(Token = "0x4007091")]
internal static readonly byte[] SSL_SERVER;
// Token: 0x04007092 RID: 28818
[Token(Token = "0x4007092")]
internal static readonly byte[][] SSL3_CONST;
}
}