304 lines
23 KiB
C#
304 lines
23 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
|
{
|
|
// Token: 0x020019AF RID: 6575
|
|
[Token(Token = "0x20019AF")]
|
|
public sealed class ParameterUtilities
|
|
{
|
|
// Token: 0x06009CFB RID: 40187 RVA: 0x0020DA48 File Offset: 0x0020BC48
|
|
[Token(Token = "0x6009CFB")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
private ParameterUtilities()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06009CFC RID: 40188 RVA: 0x0020DA5C File Offset: 0x0020BC5C
|
|
[Token(Token = "0x6009CFC")]
|
|
[Address(RVA = "0x1B182B0", Offset = "0x1B170B0", VA = "0x181B182B0")]
|
|
static ParameterUtilities()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009CFC)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Security.ParameterUtilities::.cctor()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_76F:
|
|
stelem:string([mscorlib]System.String, ldloc:string[](var_75_726), ldc.i4:int32(3), ldstr:string("DESEDE3"))
|
|
call:void(ParameterUtilities::AddBasicIVSizeEntries, ldc.i4:int32(8), ldloc:string[](var_75_726))
|
|
}
|
|
|
|
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: 0x06009CFD RID: 40189 RVA: 0x0020E1EC File Offset: 0x0020C3EC
|
|
[Token(Token = "0x6009CFD")]
|
|
[Address(RVA = "0x1B170E0", Offset = "0x1B15EE0", VA = "0x181B170E0")]
|
|
private static void AddAlgorithm(string canonicalName, params object[] aliases)
|
|
{
|
|
IDictionary dictionary = ParameterUtilities.algorithms;
|
|
int num = 0;
|
|
int length = aliases.Length;
|
|
if (num < length)
|
|
{
|
|
object obj = aliases[num];
|
|
IDictionary dictionary2 = ParameterUtilities.algorithms;
|
|
int hashCode = obj.GetHashCode();
|
|
num++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009CFE RID: 40190 RVA: 0x0020E230 File Offset: 0x0020C430
|
|
[Token(Token = "0x6009CFE")]
|
|
[Address(RVA = "0x1B17240", Offset = "0x1B16040", VA = "0x181B17240")]
|
|
private static void AddBasicIVSizeEntries(int size, params string[] algorithms)
|
|
{
|
|
int num = 0;
|
|
int length = algorithms.Length;
|
|
if (num < length)
|
|
{
|
|
IDictionary dictionary = ParameterUtilities.basicIVSizes;
|
|
num++;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009CFF RID: 40191 RVA: 0x0020E25C File Offset: 0x0020C45C
|
|
[Token(Token = "0x6009CFF")]
|
|
[Address(RVA = "0x1B17D80", Offset = "0x1B16B80", VA = "0x181B17D80")]
|
|
public static string GetCanonicalAlgorithmName(string algorithm)
|
|
{
|
|
string text;
|
|
for (;;)
|
|
{
|
|
IDictionary dictionary = ParameterUtilities.algorithms;
|
|
text = Platform.ToUpperInvariant(algorithm);
|
|
if (text == 0)
|
|
{
|
|
break;
|
|
}
|
|
if (text != 0)
|
|
{
|
|
goto Block_1;
|
|
}
|
|
}
|
|
return text;
|
|
Block_1:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009D00 RID: 40192 RVA: 0x0020E288 File Offset: 0x0020C488
|
|
[Token(Token = "0x6009D00")]
|
|
[Address(RVA = "0x1B177D0", Offset = "0x1B165D0", VA = "0x181B177D0")]
|
|
public static KeyParameter CreateKeyParameter(DerObjectIdentifier algOid, byte[] keyBytes)
|
|
{
|
|
string identifier = algOid.identifier;
|
|
int length = keyBytes.Length;
|
|
int num = 0;
|
|
return ParameterUtilities.CreateKeyParameter(identifier, keyBytes, num, length);
|
|
}
|
|
|
|
// Token: 0x06009D01 RID: 40193 RVA: 0x0020E2B4 File Offset: 0x0020C4B4
|
|
[Token(Token = "0x6009D01")]
|
|
[Address(RVA = "0x1B17520", Offset = "0x1B16320", VA = "0x181B17520")]
|
|
public static KeyParameter CreateKeyParameter(string algorithm, byte[] keyBytes)
|
|
{
|
|
int length = keyBytes.Length;
|
|
int num = 0;
|
|
return ParameterUtilities.CreateKeyParameter(algorithm, keyBytes, num, length);
|
|
}
|
|
|
|
// Token: 0x06009D02 RID: 40194 RVA: 0x0020E2DC File Offset: 0x0020C4DC
|
|
[Token(Token = "0x6009D02")]
|
|
[Address(RVA = "0x1B17480", Offset = "0x1B16280", VA = "0x181B17480")]
|
|
public static KeyParameter CreateKeyParameter(DerObjectIdentifier algOid, byte[] keyBytes, int offset, int length)
|
|
{
|
|
return ParameterUtilities.CreateKeyParameter(algOid.identifier, keyBytes, offset, length);
|
|
}
|
|
|
|
// Token: 0x06009D03 RID: 40195 RVA: 0x0020E300 File Offset: 0x0020C500
|
|
[Token(Token = "0x6009D03")]
|
|
[Address(RVA = "0x1B175A0", Offset = "0x1B163A0", VA = "0x181B175A0")]
|
|
public static KeyParameter CreateKeyParameter(string algorithm, byte[] keyBytes, int offset, int length)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009D03)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters.KeyParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Security.ParameterUtilities::CreateKeyParameter(System.String,System.Byte[],System.Int32,System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_51:
|
|
stloc:SecurityUtilityException(var_9_66, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, call:string(string::Concat, ldstr:string("Algorithm "), ldloc:string(algorithm), ldstr:string(" not recognised."))))
|
|
}
|
|
|
|
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: 0x06009D04 RID: 40196 RVA: 0x0020E374 File Offset: 0x0020C574
|
|
[Token(Token = "0x6009D04")]
|
|
[Address(RVA = "0x1B181B0", Offset = "0x1B16FB0", VA = "0x181B181B0")]
|
|
public static ICipherParameters GetCipherParameters(DerObjectIdentifier algOid, ICipherParameters key, Asn1Object asn1Params)
|
|
{
|
|
return ParameterUtilities.GetCipherParameters(algOid.identifier, key, asn1Params);
|
|
}
|
|
|
|
// Token: 0x06009D05 RID: 40197 RVA: 0x0020E394 File Offset: 0x0020C594
|
|
[Token(Token = "0x6009D05")]
|
|
[Address(RVA = "0x1B17E60", Offset = "0x1B16C60", VA = "0x181B17E60")]
|
|
public static ICipherParameters GetCipherParameters(string algorithm, ICipherParameters key, Asn1Object asn1Params)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009D05)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters BestHTTP.SecureProtocol.Org.BouncyCastle.Security.ParameterUtilities::GetCipherParameters(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_A9:
|
|
stloc:SecurityUtilityException(var_12_BE, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, call:string(string::Concat, ldstr:string("Algorithm "), ldloc:string(algorithm), ldstr:string(" not recognised."))))
|
|
}
|
|
|
|
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: 0x06009D06 RID: 40198 RVA: 0x0020E460 File Offset: 0x0020C660
|
|
[Token(Token = "0x6009D06")]
|
|
[Address(RVA = "0x1B17D10", Offset = "0x1B16B10", VA = "0x181B17D10")]
|
|
public static Asn1Encodable GenerateParameters(DerObjectIdentifier algID, SecureRandom random)
|
|
{
|
|
return ParameterUtilities.GenerateParameters(algID.identifier, random);
|
|
}
|
|
|
|
// Token: 0x06009D07 RID: 40199 RVA: 0x0020E480 File Offset: 0x0020C680
|
|
[Token(Token = "0x6009D07")]
|
|
[Address(RVA = "0x1B17970", Offset = "0x1B16770", VA = "0x181B17970")]
|
|
public static Asn1Encodable GenerateParameters(string algorithm, SecureRandom random)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009D07)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Security.ParameterUtilities::GenerateParameters(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SecureRandom)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_99:
|
|
stloc:SecurityUtilityException(var_9_AE, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, call:string(string::Concat, ldstr:string("Algorithm "), ldloc:string(algorithm), ldstr:string(" not recognised."))))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.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: 0x06009D08 RID: 40200 RVA: 0x0020E53C File Offset: 0x0020C73C
|
|
[Token(Token = "0x6009D08")]
|
|
[Address(RVA = "0x1B18230", Offset = "0x1B17030", VA = "0x181B18230")]
|
|
public static ICipherParameters WithRandom(ICipherParameters cp, SecureRandom random)
|
|
{
|
|
if (random != 0)
|
|
{
|
|
ParametersWithRandom parametersWithRandom = new ParametersWithRandom(cp, random);
|
|
}
|
|
return cp;
|
|
}
|
|
|
|
// Token: 0x06009D09 RID: 40201 RVA: 0x0020E558 File Offset: 0x0020C758
|
|
[Token(Token = "0x6009D09")]
|
|
[Address(RVA = "0x1B17340", Offset = "0x1B16140", VA = "0x181B17340")]
|
|
private static Asn1OctetString CreateIVOctetString(SecureRandom random, int ivLength)
|
|
{
|
|
byte[] array = new byte[ivLength];
|
|
double num = random.NextDouble();
|
|
DerOctetString derOctetString = new DerOctetString(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009D0A RID: 40202 RVA: 0x0020E580 File Offset: 0x0020C780
|
|
[Token(Token = "0x6009D0A")]
|
|
[Address(RVA = "0x1B17410", Offset = "0x1B16210", VA = "0x181B17410")]
|
|
private static byte[] CreateIV(SecureRandom random, int ivLength)
|
|
{
|
|
byte[] array = new byte[ivLength];
|
|
double num = random.NextDouble();
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x06009D0B RID: 40203 RVA: 0x0020E5A4 File Offset: 0x0020C7A4
|
|
[Token(Token = "0x6009D0B")]
|
|
[Address(RVA = "0x1B17860", Offset = "0x1B16660", VA = "0x181B17860")]
|
|
private static int FindBasicIVSize(string canonicalName)
|
|
{
|
|
IDictionary dictionary = ParameterUtilities.basicIVSizes;
|
|
IDictionary dictionary2 = ParameterUtilities.basicIVSizes;
|
|
IDictionary dictionary3 = ParameterUtilities.algorithms;
|
|
return -1;
|
|
}
|
|
|
|
// Token: 0x040069E1 RID: 27105
|
|
[Token(Token = "0x40069E1")]
|
|
private static readonly IDictionary algorithms;
|
|
|
|
// Token: 0x040069E2 RID: 27106
|
|
[Token(Token = "0x40069E2")]
|
|
private static readonly IDictionary basicIVSizes;
|
|
}
|
|
}
|