scripts
This commit is contained in:
+244
@@ -0,0 +1,244 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.EdEC;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013C3 RID: 5059
|
||||
[Token(Token = "0x20013C3")]
|
||||
[StructLayout(3)]
|
||||
public sealed class AgreementUtilities
|
||||
{
|
||||
// Token: 0x060080C5 RID: 32965 RVA: 0x001B37D4 File Offset: 0x001B19D4
|
||||
[Token(Token = "0x60080C5")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private AgreementUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060080C6 RID: 32966 RVA: 0x001B37E8 File Offset: 0x001B19E8
|
||||
[Token(Token = "0x60080C6")]
|
||||
[Address(RVA = "0xCE3D80", Offset = "0xCE2780", VA = "0x180CE3D80")]
|
||||
static AgreementUtilities()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
DerObjectIdentifier dhsinglePassCofactorDHSha1KdfScheme = X9ObjectIdentifiers.DHSinglePassCofactorDHSha1KdfScheme;
|
||||
DerObjectIdentifier dhsinglePassStdDHSha1KdfScheme = X9ObjectIdentifiers.DHSinglePassStdDHSha1KdfScheme;
|
||||
DerObjectIdentifier mqvSinglePassSha1KdfScheme = X9ObjectIdentifiers.MqvSinglePassSha1KdfScheme;
|
||||
DerObjectIdentifier id_X = EdECObjectIdentifiers.id_X25519;
|
||||
DerObjectIdentifier id_X2 = EdECObjectIdentifiers.id_X448;
|
||||
}
|
||||
|
||||
// Token: 0x060080C7 RID: 32967 RVA: 0x001B3828 File Offset: 0x001B1A28
|
||||
[Token(Token = "0x60080C7")]
|
||||
[Address(RVA = "0xCE3630", Offset = "0xCE2030", VA = "0x180CE3630")]
|
||||
public static IBasicAgreement GetBasicAgreement(DerObjectIdentifier oid)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080C7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBasicAgreement BestHTTP.SecureProtocol.Org.BouncyCastle.Security.AgreementUtilities::GetBasicAgreement(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_7F:
|
||||
stloc:SecurityUtilityException(var_6_86, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, ldloc:string(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.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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080C8 RID: 32968 RVA: 0x001B38BC File Offset: 0x001B1ABC
|
||||
[Token(Token = "0x60080C8")]
|
||||
[Address(RVA = "0xCE3850", Offset = "0xCE2250", VA = "0x180CE3850")]
|
||||
public static IBasicAgreement GetBasicAgreement(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080C8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBasicAgreement BestHTTP.SecureProtocol.Org.BouncyCastle.Security.AgreementUtilities::GetBasicAgreement(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_74:
|
||||
stloc:SecurityUtilityException(var_5_89, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, call:string(string::Concat, ldstr:string("Basic Agreement "), 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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080C9 RID: 32969 RVA: 0x001B3954 File Offset: 0x001B1B54
|
||||
[Token(Token = "0x60080C9")]
|
||||
[Address(RVA = "0xCE3240", Offset = "0xCE1C40", VA = "0x180CE3240")]
|
||||
public static IBasicAgreement GetBasicAgreementWithKdf(DerObjectIdentifier oid, string wrapAlgorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080C9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBasicAgreement BestHTTP.SecureProtocol.Org.BouncyCastle.Security.AgreementUtilities::GetBasicAgreementWithKdf(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier,System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_63:
|
||||
stloc:SecurityUtilityException(var_6_6A, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, ldloc:string(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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080CA RID: 32970 RVA: 0x001B39CC File Offset: 0x001B1BCC
|
||||
[Token(Token = "0x60080CA")]
|
||||
[Address(RVA = "0xCE3460", Offset = "0xCE1E60", VA = "0x180CE3460")]
|
||||
public static IBasicAgreement GetBasicAgreementWithKdf(string agreeAlgorithm, string wrapAlgorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080CA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBasicAgreement BestHTTP.SecureProtocol.Org.BouncyCastle.Security.AgreementUtilities::GetBasicAgreementWithKdf(System.String,System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_58:
|
||||
stloc:SecurityUtilityException(var_6_5F, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, ldloc:string(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.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080CB RID: 32971 RVA: 0x001B3A3C File Offset: 0x001B1C3C
|
||||
[Token(Token = "0x60080CB")]
|
||||
[Address(RVA = "0xCE3AF0", Offset = "0xCE24F0", VA = "0x180CE3AF0")]
|
||||
public static IRawAgreement GetRawAgreement(DerObjectIdentifier oid)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080CB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IRawAgreement BestHTTP.SecureProtocol.Org.BouncyCastle.Security.AgreementUtilities::GetRawAgreement(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:SecurityUtilityException(var_4_40, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, ldloc:string(var_3)))
|
||||
}
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080CC RID: 32972 RVA: 0x001B3A8C File Offset: 0x001B1C8C
|
||||
[Token(Token = "0x60080CC")]
|
||||
[Address(RVA = "0xCE3C60", Offset = "0xCE2660", VA = "0x180CE3C60")]
|
||||
public static IRawAgreement GetRawAgreement(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080CC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IRawAgreement BestHTTP.SecureProtocol.Org.BouncyCastle.Security.AgreementUtilities::GetRawAgreement(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2F:
|
||||
stloc:SecurityUtilityException(var_3_44, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, call:string(string::Concat, ldstr:string("Raw Agreement "), 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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080CD RID: 32973 RVA: 0x001B3AE0 File Offset: 0x001B1CE0
|
||||
[Token(Token = "0x60080CD")]
|
||||
[Address(RVA = "0xCE3190", Offset = "0xCE1B90", VA = "0x180CE3190")]
|
||||
public static string GetAlgorithmName(DerObjectIdentifier oid)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080CE RID: 32974 RVA: 0x001B3AF4 File Offset: 0x001B1CF4
|
||||
[Token(Token = "0x60080CE")]
|
||||
[Address(RVA = "0xCE3A20", Offset = "0xCE2420", VA = "0x180CE3A20")]
|
||||
private static string GetMechanism(string algorithm)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
}
|
||||
while (text != 0 && text == 0);
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x04005B14 RID: 23316
|
||||
[Token(Token = "0x4005B14")]
|
||||
private static readonly IDictionary algorithms;
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security.Certificates
|
||||
{
|
||||
// Token: 0x020013DD RID: 5085
|
||||
[Token(Token = "0x20013DD")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class CertificateEncodingException : CertificateException
|
||||
{
|
||||
// Token: 0x0600818D RID: 33165 RVA: 0x001B8DA4 File Offset: 0x001B6FA4
|
||||
[Token(Token = "0x600818D")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public CertificateEncodingException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600818E RID: 33166 RVA: 0x001B8DB8 File Offset: 0x001B6FB8
|
||||
[Token(Token = "0x600818E")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public CertificateEncodingException(string msg)
|
||||
: base(msg)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600818F RID: 33167 RVA: 0x001B8DCC File Offset: 0x001B6FCC
|
||||
[Token(Token = "0x600818F")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public CertificateEncodingException(string msg, Exception e)
|
||||
: base(msg, e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security.Certificates
|
||||
{
|
||||
// Token: 0x020013DE RID: 5086
|
||||
[Token(Token = "0x20013DE")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class CertificateException : GeneralSecurityException
|
||||
{
|
||||
// Token: 0x06008190 RID: 33168 RVA: 0x001B8DE4 File Offset: 0x001B6FE4
|
||||
[Token(Token = "0x6008190")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public CertificateException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008191 RID: 33169 RVA: 0x001B8DF8 File Offset: 0x001B6FF8
|
||||
[Token(Token = "0x6008191")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public CertificateException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008192 RID: 33170 RVA: 0x001B8E0C File Offset: 0x001B700C
|
||||
[Token(Token = "0x6008192")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public CertificateException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security.Certificates
|
||||
{
|
||||
// Token: 0x020013DF RID: 5087
|
||||
[Token(Token = "0x20013DF")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class CertificateExpiredException : CertificateException
|
||||
{
|
||||
// Token: 0x06008193 RID: 33171 RVA: 0x001B8E24 File Offset: 0x001B7024
|
||||
[Token(Token = "0x6008193")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public CertificateExpiredException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008194 RID: 33172 RVA: 0x001B8E38 File Offset: 0x001B7038
|
||||
[Token(Token = "0x6008194")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public CertificateExpiredException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008195 RID: 33173 RVA: 0x001B8E4C File Offset: 0x001B704C
|
||||
[Token(Token = "0x6008195")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public CertificateExpiredException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security.Certificates
|
||||
{
|
||||
// Token: 0x020013E0 RID: 5088
|
||||
[Token(Token = "0x20013E0")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class CertificateNotYetValidException : CertificateException
|
||||
{
|
||||
// Token: 0x06008196 RID: 33174 RVA: 0x001B8E64 File Offset: 0x001B7064
|
||||
[Token(Token = "0x6008196")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public CertificateNotYetValidException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008197 RID: 33175 RVA: 0x001B8E78 File Offset: 0x001B7078
|
||||
[Token(Token = "0x6008197")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public CertificateNotYetValidException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008198 RID: 33176 RVA: 0x001B8E8C File Offset: 0x001B708C
|
||||
[Token(Token = "0x6008198")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public CertificateNotYetValidException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security.Certificates
|
||||
{
|
||||
// Token: 0x020013E1 RID: 5089
|
||||
[Token(Token = "0x20013E1")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class CertificateParsingException : CertificateException
|
||||
{
|
||||
// Token: 0x06008199 RID: 33177 RVA: 0x001B8EA4 File Offset: 0x001B70A4
|
||||
[Token(Token = "0x6008199")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public CertificateParsingException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600819A RID: 33178 RVA: 0x001B8EB8 File Offset: 0x001B70B8
|
||||
[Token(Token = "0x600819A")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public CertificateParsingException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600819B RID: 33179 RVA: 0x001B8ECC File Offset: 0x001B70CC
|
||||
[Token(Token = "0x600819B")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public CertificateParsingException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security.Certificates
|
||||
{
|
||||
// Token: 0x020013E2 RID: 5090
|
||||
[Token(Token = "0x20013E2")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class CrlException : GeneralSecurityException
|
||||
{
|
||||
// Token: 0x0600819C RID: 33180 RVA: 0x001B8EE4 File Offset: 0x001B70E4
|
||||
[Token(Token = "0x600819C")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public CrlException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600819D RID: 33181 RVA: 0x001B8EF8 File Offset: 0x001B70F8
|
||||
[Token(Token = "0x600819D")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public CrlException(string msg)
|
||||
: base(msg)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600819E RID: 33182 RVA: 0x001B8F0C File Offset: 0x001B710C
|
||||
[Token(Token = "0x600819E")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public CrlException(string msg, Exception e)
|
||||
: base(msg, e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,561 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Engines;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013C4 RID: 5060
|
||||
[Token(Token = "0x20013C4")]
|
||||
[StructLayout(3)]
|
||||
public sealed class CipherUtilities
|
||||
{
|
||||
// Token: 0x060080CF RID: 32975 RVA: 0x001B3B18 File Offset: 0x001B1D18
|
||||
[Token(Token = "0x60080CF")]
|
||||
[Address(RVA = "0x474A60", Offset = "0x473460", VA = "0x180474A60")]
|
||||
static CipherUtilities()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080CF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Security.CipherUtilities::.cctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IDictionary(var_2_09, call:IDictionary(Platform::CreateHashtable))
|
||||
stsfld:IDictionary(CipherUtilities::algorithms, ldloc:IDictionary(var_2_09))
|
||||
stsfld:IDictionary(CipherUtilities::oids, call:IDictionary(Platform::CreateHashtable))
|
||||
stloc:Enum(var_4_2B, call:Enum(Enums::GetArbitraryValue, call:Type(Type::GetTypeFromHandle, ldtoken:RuntimeTypeHandle(BestHTTP.SecureProtocol.Org.BouncyCastle.Security.CipherUtilities/CipherAlgorithm))))
|
||||
stloc:Enum(var_8_48, call:Enum(Enums::GetArbitraryValue, call:Type(Type::GetTypeFromHandle, ldtoken:RuntimeTypeHandle(BestHTTP.SecureProtocol.Org.BouncyCastle.Security.CipherUtilities/CipherMode))))
|
||||
stloc:Enum(var_12_65, call:Enum(Enums::GetArbitraryValue, call:Type(Type::GetTypeFromHandle, ldtoken:RuntimeTypeHandle(BestHTTP.SecureProtocol.Org.BouncyCastle.Security.CipherUtilities/CipherPadding))))
|
||||
stloc:IDictionary(var_16_78, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_17_7F, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes128Ecb))
|
||||
stloc:IDictionary(var_19_86, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_20_8D, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes192Ecb))
|
||||
stloc:IDictionary(var_22_94, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_23_9B, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes256Ecb))
|
||||
stloc:IDictionary(var_25_A2, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_27_A9, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_29_B0, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_31_B7, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_33_BE, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_34_C5, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes128Cbc))
|
||||
stloc:IDictionary(var_36_CC, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_37_D3, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes192Cbc))
|
||||
stloc:IDictionary(var_39_DA, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_40_E1, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes256Cbc))
|
||||
stloc:IDictionary(var_42_E8, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_43_EF, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes128Ofb))
|
||||
stloc:IDictionary(var_45_F6, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_46_FD, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes192Ofb))
|
||||
stloc:IDictionary(var_48_104, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_49_10B, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes256Ofb))
|
||||
stloc:IDictionary(var_51_112, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_52_119, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes128Cfb))
|
||||
stloc:IDictionary(var_54_120, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_55_127, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes192Cfb))
|
||||
stloc:IDictionary(var_57_12E, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_58_135, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdAes256Cfb))
|
||||
stloc:IDictionary(var_60_13C, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_62_143, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_64_14A, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_65_151, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::RsaEncryption))
|
||||
stloc:IDictionary(var_67_158, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_68_15F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsaesOaep))
|
||||
stloc:IDictionary(var_70_166, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_71_16D, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::DesCbc))
|
||||
stloc:IDictionary(var_73_174, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_74_17B, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::DesCfb))
|
||||
stloc:IDictionary(var_76_182, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_77_189, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::DesEcb))
|
||||
stloc:IDictionary(var_79_190, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_80_197, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::DesOfb))
|
||||
stloc:IDictionary(var_82_19E, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_83_1A5, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::DesEde))
|
||||
stloc:IDictionary(var_85_1AC, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_87_1B3, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_88_1BA, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::DesEde3Cbc))
|
||||
stloc:IDictionary(var_90_1C1, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_91_1C8, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::RC2Cbc))
|
||||
stloc:IDictionary(var_93_1CF, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_95_1D6, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_97_1DD, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_99_1E4, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_101_1EB, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_103_1F2, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_105_1F9, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_106_200, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd128BitRC4))
|
||||
stloc:IDictionary(var_108_207, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_110_20E, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_111_215, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd40BitRC4))
|
||||
stloc:IDictionary(var_113_21C, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_115_223, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_116_22A, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithSha1AndDesCbc))
|
||||
stloc:IDictionary(var_118_231, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_120_238, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_121_23F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithSha1AndRC2Cbc))
|
||||
stloc:IDictionary(var_123_246, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_125_24D, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_127_254, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_128_25B, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd3KeyTripleDesCbc))
|
||||
stloc:IDictionary(var_130_262, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_132_269, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_134_270, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_135_277, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd2KeyTripleDesCbc))
|
||||
stloc:IDictionary(var_137_27E, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_139_285, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_140_28C, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd128BitRC2Cbc))
|
||||
stloc:IDictionary(var_142_293, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_144_29A, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_145_2A1, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbewithShaAnd40BitRC2Cbc))
|
||||
stloc:IDictionary(var_147_2A8, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_149_2AF, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_151_2B6, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_153_2BD, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_155_2C4, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_157_2CB, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
stloc:IDictionary(var_159_2D2, ldsfld:IDictionary(CipherUtilities::algorithms))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080D0 RID: 32976 RVA: 0x001B3DF8 File Offset: 0x001B1FF8
|
||||
[Token(Token = "0x60080D0")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private CipherUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060080D1 RID: 32977 RVA: 0x001B3E0C File Offset: 0x001B200C
|
||||
[Token(Token = "0x60080D1")]
|
||||
[Address(RVA = "0x4748B0", Offset = "0x4732B0", VA = "0x1804748B0")]
|
||||
public static DerObjectIdentifier GetObjectIdentifier(string mechanism)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080D1)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Security.CipherUtilities::GetObjectIdentifier(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2E:
|
||||
stloc:ArgumentNullException(var_7_38, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("mechanism")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001503 RID: 5379
|
||||
// (get) Token: 0x060080D2 RID: 32978 RVA: 0x001B3E54 File Offset: 0x001B2054
|
||||
[Token(Token = "0x17001503")]
|
||||
public static ICollection Algorithms
|
||||
{
|
||||
[Token(Token = "0x60080D2")]
|
||||
[Address(RVA = "0x4761B0", Offset = "0x474BB0", VA = "0x1804761B0")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = CipherUtilities.oids;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060080D3 RID: 32979 RVA: 0x001B3E6C File Offset: 0x001B206C
|
||||
[Token(Token = "0x60080D3")]
|
||||
[Address(RVA = "0x472D40", Offset = "0x471740", VA = "0x180472D40")]
|
||||
public static IBufferedCipher GetCipher(DerObjectIdentifier oid)
|
||||
{
|
||||
return CipherUtilities.GetCipher(oid.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x060080D4 RID: 32980 RVA: 0x001B3E8C File Offset: 0x001B208C
|
||||
[Token(Token = "0x60080D4")]
|
||||
[Address(RVA = "0x472DA0", Offset = "0x4717A0", VA = "0x180472DA0")]
|
||||
public static IBufferedCipher GetCipher(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080D4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IBufferedCipher BestHTTP.SecureProtocol.Org.BouncyCastle.Security.CipherUtilities::GetCipher(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_559:
|
||||
stloc:ArgumentNullException(var_107_563, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("algorithm")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080D5 RID: 32981 RVA: 0x001B4400 File Offset: 0x001B2600
|
||||
[Token(Token = "0x60080D5")]
|
||||
[Address(RVA = "0x472C90", Offset = "0x471690", VA = "0x180472C90")]
|
||||
public static string GetAlgorithmName(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = CipherUtilities.algorithms;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080D6 RID: 32982 RVA: 0x001B4418 File Offset: 0x001B2618
|
||||
[Token(Token = "0x60080D6")]
|
||||
[Address(RVA = "0x474800", Offset = "0x473200", VA = "0x180474800")]
|
||||
private static int GetDigitIndex(string s)
|
||||
{
|
||||
int num = 0;
|
||||
if (num < s.m_stringLength)
|
||||
{
|
||||
if (!char.IsDigit(s[num]))
|
||||
{
|
||||
num++;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Token: 0x060080D7 RID: 32983 RVA: 0x001B444C File Offset: 0x001B264C
|
||||
[Token(Token = "0x60080D7")]
|
||||
[Address(RVA = "0x4727D0", Offset = "0x4711D0", VA = "0x1804727D0")]
|
||||
private static IBlockCipher CreateBlockCipher(CipherUtilities.CipherAlgorithm cipherAlgorithm)
|
||||
{
|
||||
if (cipherAlgorithm <= CipherUtilities.CipherAlgorithm.XTEA)
|
||||
{
|
||||
AesEngine aesEngine = new AesEngine();
|
||||
BlowfishEngine blowfishEngine = new BlowfishEngine();
|
||||
CamelliaEngine camelliaEngine = new CamelliaEngine();
|
||||
Cast5Engine cast5Engine = new Cast5Engine();
|
||||
Cast6Engine cast6Engine = new Cast6Engine();
|
||||
DesEngine desEngine = new DesEngine();
|
||||
DesEdeEngine desEdeEngine = new DesEdeEngine();
|
||||
Gost28147Engine gost28147Engine = new Gost28147Engine();
|
||||
IdeaEngine ideaEngine = new IdeaEngine();
|
||||
NoekeonEngine noekeonEngine = new NoekeonEngine();
|
||||
RC2Engine rc2Engine = new RC2Engine();
|
||||
RC532Engine rc532Engine = new RC532Engine();
|
||||
RC564Engine rc564Engine = new RC564Engine();
|
||||
RC6Engine rc6Engine = new RC6Engine();
|
||||
RijndaelEngine rijndaelEngine = new RijndaelEngine();
|
||||
SeedEngine seedEngine = new SeedEngine();
|
||||
SerpentEngine serpentEngine = new SerpentEngine();
|
||||
SkipjackEngine skipjackEngine = new SkipjackEngine();
|
||||
SM4Engine sm4Engine = new SM4Engine();
|
||||
TeaEngine teaEngine = new TeaEngine();
|
||||
uint num;
|
||||
ThreefishEngine threefishEngine = new ThreefishEngine((int)num);
|
||||
uint num2;
|
||||
ThreefishEngine threefishEngine2 = new ThreefishEngine((int)num2);
|
||||
uint num3;
|
||||
ThreefishEngine threefishEngine3 = new ThreefishEngine((int)num3);
|
||||
TnepresEngine tnepresEngine = new TnepresEngine();
|
||||
TwofishEngine twofishEngine = new TwofishEngine();
|
||||
XteaEngine xteaEngine = new XteaEngine();
|
||||
}
|
||||
SecurityUtilityException ex = new SecurityUtilityException("Cipher " + cipherAlgorithm + " not recognised or not a block cipher");
|
||||
if (cipherAlgorithm > CipherUtilities.CipherAlgorithm.XTEA)
|
||||
{
|
||||
}
|
||||
if ((cipherAlgorithm != CipherUtilities.CipherAlgorithm.XTEA && cipherAlgorithm == CipherUtilities.CipherAlgorithm.XTEA) || cipherAlgorithm == CipherUtilities.CipherAlgorithm.XTEA)
|
||||
{
|
||||
}
|
||||
IDictionary dictionary = CipherUtilities.algorithms;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005B15 RID: 23317
|
||||
[Token(Token = "0x4005B15")]
|
||||
private static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x04005B16 RID: 23318
|
||||
[Token(Token = "0x4005B16")]
|
||||
private static readonly IDictionary oids;
|
||||
|
||||
// Token: 0x020013C5 RID: 5061
|
||||
[Token(Token = "0x20013C5")]
|
||||
private enum CipherAlgorithm
|
||||
{
|
||||
// Token: 0x04005B18 RID: 23320
|
||||
[Token(Token = "0x4005B18")]
|
||||
AES,
|
||||
// Token: 0x04005B19 RID: 23321
|
||||
[Token(Token = "0x4005B19")]
|
||||
ARC4,
|
||||
// Token: 0x04005B1A RID: 23322
|
||||
[Token(Token = "0x4005B1A")]
|
||||
BLOWFISH,
|
||||
// Token: 0x04005B1B RID: 23323
|
||||
[Token(Token = "0x4005B1B")]
|
||||
CAMELLIA,
|
||||
// Token: 0x04005B1C RID: 23324
|
||||
[Token(Token = "0x4005B1C")]
|
||||
CAST5,
|
||||
// Token: 0x04005B1D RID: 23325
|
||||
[Token(Token = "0x4005B1D")]
|
||||
CAST6,
|
||||
// Token: 0x04005B1E RID: 23326
|
||||
[Token(Token = "0x4005B1E")]
|
||||
DES,
|
||||
// Token: 0x04005B1F RID: 23327
|
||||
[Token(Token = "0x4005B1F")]
|
||||
DESEDE,
|
||||
// Token: 0x04005B20 RID: 23328
|
||||
[Token(Token = "0x4005B20")]
|
||||
ELGAMAL,
|
||||
// Token: 0x04005B21 RID: 23329
|
||||
[Token(Token = "0x4005B21")]
|
||||
GOST28147,
|
||||
// Token: 0x04005B22 RID: 23330
|
||||
[Token(Token = "0x4005B22")]
|
||||
HC128,
|
||||
// Token: 0x04005B23 RID: 23331
|
||||
[Token(Token = "0x4005B23")]
|
||||
HC256,
|
||||
// Token: 0x04005B24 RID: 23332
|
||||
[Token(Token = "0x4005B24")]
|
||||
IDEA,
|
||||
// Token: 0x04005B25 RID: 23333
|
||||
[Token(Token = "0x4005B25")]
|
||||
NOEKEON,
|
||||
// Token: 0x04005B26 RID: 23334
|
||||
[Token(Token = "0x4005B26")]
|
||||
PBEWITHSHAAND128BITRC4,
|
||||
// Token: 0x04005B27 RID: 23335
|
||||
[Token(Token = "0x4005B27")]
|
||||
PBEWITHSHAAND40BITRC4,
|
||||
// Token: 0x04005B28 RID: 23336
|
||||
[Token(Token = "0x4005B28")]
|
||||
RC2,
|
||||
// Token: 0x04005B29 RID: 23337
|
||||
[Token(Token = "0x4005B29")]
|
||||
RC5,
|
||||
// Token: 0x04005B2A RID: 23338
|
||||
[Token(Token = "0x4005B2A")]
|
||||
RC5_64,
|
||||
// Token: 0x04005B2B RID: 23339
|
||||
[Token(Token = "0x4005B2B")]
|
||||
RC6,
|
||||
// Token: 0x04005B2C RID: 23340
|
||||
[Token(Token = "0x4005B2C")]
|
||||
RIJNDAEL,
|
||||
// Token: 0x04005B2D RID: 23341
|
||||
[Token(Token = "0x4005B2D")]
|
||||
RSA,
|
||||
// Token: 0x04005B2E RID: 23342
|
||||
[Token(Token = "0x4005B2E")]
|
||||
SALSA20,
|
||||
// Token: 0x04005B2F RID: 23343
|
||||
[Token(Token = "0x4005B2F")]
|
||||
SEED,
|
||||
// Token: 0x04005B30 RID: 23344
|
||||
[Token(Token = "0x4005B30")]
|
||||
SERPENT,
|
||||
// Token: 0x04005B31 RID: 23345
|
||||
[Token(Token = "0x4005B31")]
|
||||
SKIPJACK,
|
||||
// Token: 0x04005B32 RID: 23346
|
||||
[Token(Token = "0x4005B32")]
|
||||
SM4,
|
||||
// Token: 0x04005B33 RID: 23347
|
||||
[Token(Token = "0x4005B33")]
|
||||
TEA,
|
||||
// Token: 0x04005B34 RID: 23348
|
||||
[Token(Token = "0x4005B34")]
|
||||
THREEFISH_256,
|
||||
// Token: 0x04005B35 RID: 23349
|
||||
[Token(Token = "0x4005B35")]
|
||||
THREEFISH_512,
|
||||
// Token: 0x04005B36 RID: 23350
|
||||
[Token(Token = "0x4005B36")]
|
||||
THREEFISH_1024,
|
||||
// Token: 0x04005B37 RID: 23351
|
||||
[Token(Token = "0x4005B37")]
|
||||
TNEPRES,
|
||||
// Token: 0x04005B38 RID: 23352
|
||||
[Token(Token = "0x4005B38")]
|
||||
TWOFISH,
|
||||
// Token: 0x04005B39 RID: 23353
|
||||
[Token(Token = "0x4005B39")]
|
||||
VMPC,
|
||||
// Token: 0x04005B3A RID: 23354
|
||||
[Token(Token = "0x4005B3A")]
|
||||
VMPC_KSA3,
|
||||
// Token: 0x04005B3B RID: 23355
|
||||
[Token(Token = "0x4005B3B")]
|
||||
XTEA
|
||||
}
|
||||
|
||||
// Token: 0x020013C6 RID: 5062
|
||||
[Token(Token = "0x20013C6")]
|
||||
private enum CipherMode
|
||||
{
|
||||
// Token: 0x04005B3D RID: 23357
|
||||
[Token(Token = "0x4005B3D")]
|
||||
ECB,
|
||||
// Token: 0x04005B3E RID: 23358
|
||||
[Token(Token = "0x4005B3E")]
|
||||
NONE,
|
||||
// Token: 0x04005B3F RID: 23359
|
||||
[Token(Token = "0x4005B3F")]
|
||||
CBC,
|
||||
// Token: 0x04005B40 RID: 23360
|
||||
[Token(Token = "0x4005B40")]
|
||||
CCM,
|
||||
// Token: 0x04005B41 RID: 23361
|
||||
[Token(Token = "0x4005B41")]
|
||||
CFB,
|
||||
// Token: 0x04005B42 RID: 23362
|
||||
[Token(Token = "0x4005B42")]
|
||||
CTR,
|
||||
// Token: 0x04005B43 RID: 23363
|
||||
[Token(Token = "0x4005B43")]
|
||||
CTS,
|
||||
// Token: 0x04005B44 RID: 23364
|
||||
[Token(Token = "0x4005B44")]
|
||||
EAX,
|
||||
// Token: 0x04005B45 RID: 23365
|
||||
[Token(Token = "0x4005B45")]
|
||||
GCM,
|
||||
// Token: 0x04005B46 RID: 23366
|
||||
[Token(Token = "0x4005B46")]
|
||||
GOFB,
|
||||
// Token: 0x04005B47 RID: 23367
|
||||
[Token(Token = "0x4005B47")]
|
||||
OCB,
|
||||
// Token: 0x04005B48 RID: 23368
|
||||
[Token(Token = "0x4005B48")]
|
||||
OFB,
|
||||
// Token: 0x04005B49 RID: 23369
|
||||
[Token(Token = "0x4005B49")]
|
||||
OPENPGPCFB,
|
||||
// Token: 0x04005B4A RID: 23370
|
||||
[Token(Token = "0x4005B4A")]
|
||||
SIC
|
||||
}
|
||||
|
||||
// Token: 0x020013C7 RID: 5063
|
||||
[Token(Token = "0x20013C7")]
|
||||
private enum CipherPadding
|
||||
{
|
||||
// Token: 0x04005B4C RID: 23372
|
||||
[Token(Token = "0x4005B4C")]
|
||||
NOPADDING,
|
||||
// Token: 0x04005B4D RID: 23373
|
||||
[Token(Token = "0x4005B4D")]
|
||||
RAW,
|
||||
// Token: 0x04005B4E RID: 23374
|
||||
[Token(Token = "0x4005B4E")]
|
||||
ISO10126PADDING,
|
||||
// Token: 0x04005B4F RID: 23375
|
||||
[Token(Token = "0x4005B4F")]
|
||||
ISO10126D2PADDING,
|
||||
// Token: 0x04005B50 RID: 23376
|
||||
[Token(Token = "0x4005B50")]
|
||||
ISO10126_2PADDING,
|
||||
// Token: 0x04005B51 RID: 23377
|
||||
[Token(Token = "0x4005B51")]
|
||||
ISO7816_4PADDING,
|
||||
// Token: 0x04005B52 RID: 23378
|
||||
[Token(Token = "0x4005B52")]
|
||||
ISO9797_1PADDING,
|
||||
// Token: 0x04005B53 RID: 23379
|
||||
[Token(Token = "0x4005B53")]
|
||||
ISO9796_1,
|
||||
// Token: 0x04005B54 RID: 23380
|
||||
[Token(Token = "0x4005B54")]
|
||||
ISO9796_1PADDING,
|
||||
// Token: 0x04005B55 RID: 23381
|
||||
[Token(Token = "0x4005B55")]
|
||||
OAEP,
|
||||
// Token: 0x04005B56 RID: 23382
|
||||
[Token(Token = "0x4005B56")]
|
||||
OAEPPADDING,
|
||||
// Token: 0x04005B57 RID: 23383
|
||||
[Token(Token = "0x4005B57")]
|
||||
OAEPWITHMD5ANDMGF1PADDING,
|
||||
// Token: 0x04005B58 RID: 23384
|
||||
[Token(Token = "0x4005B58")]
|
||||
OAEPWITHSHA1ANDMGF1PADDING,
|
||||
// Token: 0x04005B59 RID: 23385
|
||||
[Token(Token = "0x4005B59")]
|
||||
OAEPWITHSHA_1ANDMGF1PADDING,
|
||||
// Token: 0x04005B5A RID: 23386
|
||||
[Token(Token = "0x4005B5A")]
|
||||
OAEPWITHSHA224ANDMGF1PADDING,
|
||||
// Token: 0x04005B5B RID: 23387
|
||||
[Token(Token = "0x4005B5B")]
|
||||
OAEPWITHSHA_224ANDMGF1PADDING,
|
||||
// Token: 0x04005B5C RID: 23388
|
||||
[Token(Token = "0x4005B5C")]
|
||||
OAEPWITHSHA256ANDMGF1PADDING,
|
||||
// Token: 0x04005B5D RID: 23389
|
||||
[Token(Token = "0x4005B5D")]
|
||||
OAEPWITHSHA_256ANDMGF1PADDING,
|
||||
// Token: 0x04005B5E RID: 23390
|
||||
[Token(Token = "0x4005B5E")]
|
||||
OAEPWITHSHA384ANDMGF1PADDING,
|
||||
// Token: 0x04005B5F RID: 23391
|
||||
[Token(Token = "0x4005B5F")]
|
||||
OAEPWITHSHA_384ANDMGF1PADDING,
|
||||
// Token: 0x04005B60 RID: 23392
|
||||
[Token(Token = "0x4005B60")]
|
||||
OAEPWITHSHA512ANDMGF1PADDING,
|
||||
// Token: 0x04005B61 RID: 23393
|
||||
[Token(Token = "0x4005B61")]
|
||||
OAEPWITHSHA_512ANDMGF1PADDING,
|
||||
// Token: 0x04005B62 RID: 23394
|
||||
[Token(Token = "0x4005B62")]
|
||||
PKCS1,
|
||||
// Token: 0x04005B63 RID: 23395
|
||||
[Token(Token = "0x4005B63")]
|
||||
PKCS1PADDING,
|
||||
// Token: 0x04005B64 RID: 23396
|
||||
[Token(Token = "0x4005B64")]
|
||||
PKCS5,
|
||||
// Token: 0x04005B65 RID: 23397
|
||||
[Token(Token = "0x4005B65")]
|
||||
PKCS5PADDING,
|
||||
// Token: 0x04005B66 RID: 23398
|
||||
[Token(Token = "0x4005B66")]
|
||||
PKCS7,
|
||||
// Token: 0x04005B67 RID: 23399
|
||||
[Token(Token = "0x4005B67")]
|
||||
PKCS7PADDING,
|
||||
// Token: 0x04005B68 RID: 23400
|
||||
[Token(Token = "0x4005B68")]
|
||||
TBCPADDING,
|
||||
// Token: 0x04005B69 RID: 23401
|
||||
[Token(Token = "0x4005B69")]
|
||||
WITHCTS,
|
||||
// Token: 0x04005B6A RID: 23402
|
||||
[Token(Token = "0x4005B6A")]
|
||||
X923PADDING,
|
||||
// Token: 0x04005B6B RID: 23403
|
||||
[Token(Token = "0x4005B6B")]
|
||||
ZEROBYTEPADDING
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,402 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013C8 RID: 5064
|
||||
[Token(Token = "0x20013C8")]
|
||||
[StructLayout(3)]
|
||||
public sealed class DigestUtilities
|
||||
{
|
||||
// Token: 0x060080D8 RID: 32984 RVA: 0x001B4554 File Offset: 0x001B2754
|
||||
[Token(Token = "0x60080D8")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private DigestUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060080D9 RID: 32985 RVA: 0x001B4568 File Offset: 0x001B2768
|
||||
[Token(Token = "0x60080D9")]
|
||||
[Address(RVA = "0x476F10", Offset = "0x475910", VA = "0x180476F10")]
|
||||
static DigestUtilities()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080D9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Security.DigestUtilities::.cctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IDictionary(var_2_07, call:IDictionary(Platform::CreateHashtable))
|
||||
stsfld:IDictionary(DigestUtilities::algorithms, ldloc:IDictionary(var_2_07))
|
||||
stsfld:IDictionary(DigestUtilities::oids, call:IDictionary(Platform::CreateHashtable))
|
||||
stloc:Enum(var_4_29, call:Enum(Enums::GetArbitraryValue, call:Type(Type::GetTypeFromHandle, ldtoken:RuntimeTypeHandle(BestHTTP.SecureProtocol.Org.BouncyCastle.Security.DigestUtilities/DigestAlgorithm))))
|
||||
stloc:IDictionary(var_8_3C, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_9_43, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2))
|
||||
stloc:IDictionary(var_11_4A, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_12_51, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD4))
|
||||
stloc:IDictionary(var_14_58, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_15_5F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5))
|
||||
stloc:IDictionary(var_17_66, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_19_6D, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_20_74, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::IdSha1))
|
||||
stloc:IDictionary(var_22_7B, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_24_82, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_25_89, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha224))
|
||||
stloc:IDictionary(var_27_90, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_29_97, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_30_9E, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha256))
|
||||
stloc:IDictionary(var_32_A5, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_34_AC, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_35_B3, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha384))
|
||||
stloc:IDictionary(var_37_BA, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_39_C1, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_40_C8, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha512))
|
||||
stloc:IDictionary(var_42_CF, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_44_D6, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_45_DD, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha512_224))
|
||||
stloc:IDictionary(var_47_E4, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_49_EB, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_50_F2, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha512_256))
|
||||
stloc:IDictionary(var_52_F9, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_54_100, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_55_107, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RipeMD128))
|
||||
stloc:IDictionary(var_57_10E, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_59_115, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_60_11C, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RipeMD160))
|
||||
stloc:IDictionary(var_62_123, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_64_12A, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_65_131, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RipeMD256))
|
||||
stloc:IDictionary(var_67_138, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_69_13F, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_70_146, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411))
|
||||
stloc:IDictionary(var_72_14D, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_74_154, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_76_15B, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_78_162, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_80_169, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:IDictionary(var_82_170, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_83_177, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha3_224))
|
||||
stloc:IDictionary(var_85_17E, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_86_185, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha3_256))
|
||||
stloc:IDictionary(var_88_18C, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_89_193, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha3_384))
|
||||
stloc:IDictionary(var_91_19A, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_92_1A1, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha3_512))
|
||||
stloc:IDictionary(var_94_1A8, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_95_1AF, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdShake128))
|
||||
stloc:IDictionary(var_97_1B6, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_98_1BD, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdShake256))
|
||||
stloc:IDictionary(var_100_1C4, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_101_1CB, ldsfld:DerObjectIdentifier(GMObjectIdentifiers::sm3))
|
||||
stloc:IDictionary(var_103_1D2, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_104_1D9, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2b160))
|
||||
stloc:IDictionary(var_106_1E0, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_107_1E7, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2b256))
|
||||
stloc:IDictionary(var_109_1EE, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_110_1F5, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2b384))
|
||||
stloc:IDictionary(var_112_1FC, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_113_203, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2b512))
|
||||
stloc:IDictionary(var_115_20A, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_116_211, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2s128))
|
||||
stloc:IDictionary(var_118_218, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_119_21F, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2s160))
|
||||
stloc:IDictionary(var_121_226, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_122_22D, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2s224))
|
||||
stloc:IDictionary(var_124_234, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_125_23B, ldsfld:DerObjectIdentifier(MiscObjectIdentifiers::id_blake2s256))
|
||||
stloc:IDictionary(var_127_242, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_128_249, ldsfld:DerObjectIdentifier(RosstandartObjectIdentifiers::id_tc26_gost_3411_12_256))
|
||||
stloc:IDictionary(var_130_250, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_131_257, ldsfld:DerObjectIdentifier(RosstandartObjectIdentifiers::id_tc26_gost_3411_12_512))
|
||||
stloc:IDictionary(var_133_25E, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_134_265, ldsfld:DerObjectIdentifier(UAObjectIdentifiers::dstu7564digest_256))
|
||||
stloc:IDictionary(var_136_26C, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_137_273, ldsfld:DerObjectIdentifier(UAObjectIdentifiers::dstu7564digest_384))
|
||||
stloc:IDictionary(var_139_27A, ldsfld:IDictionary(DigestUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_140_281, ldsfld:DerObjectIdentifier(UAObjectIdentifiers::dstu7564digest_512))
|
||||
stloc:IDictionary(var_142_288, ldsfld:IDictionary(DigestUtilities::oids))
|
||||
stloc:DerObjectIdentifier(var_143_28F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2))
|
||||
stloc:IDictionary(var_144_296, ldsfld:IDictionary(DigestUtilities::oids))
|
||||
stloc:DerObjectIdentifier(var_145_29D, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD4))
|
||||
stloc:IDictionary(var_146_2A4, ldsfld:IDictionary(DigestUtilities::oids))
|
||||
stloc:DerObjectIdentifier(var_147_2AB, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5))
|
||||
stloc:IDictionary(var_148_2B2, ldsfld:IDictionary(DigestUtilities::oids))
|
||||
stloc:DerObjectIdentifier(var_149_2B9, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::IdSha1))
|
||||
stloc:IDictionary(var_150_2C0, ldsfld:IDictionary(DigestUtilities::oids))
|
||||
stloc:DerObjectIdentifier(var_151_2C7, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha224))
|
||||
stloc:IDictionary(var_152_2CE, ldsfld:IDictionary(DigestUtilities::oids))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080DA RID: 32986 RVA: 0x001B4844 File Offset: 0x001B2A44
|
||||
[Token(Token = "0x60080DA")]
|
||||
[Address(RVA = "0x476D60", Offset = "0x475760", VA = "0x180476D60")]
|
||||
public static DerObjectIdentifier GetObjectIdentifier(string mechanism)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080DA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Security.DigestUtilities::GetObjectIdentifier(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2E:
|
||||
stloc:ArgumentNullException(var_7_38, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("mechanism")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001504 RID: 5380
|
||||
// (get) Token: 0x060080DB RID: 32987 RVA: 0x001B488C File Offset: 0x001B2A8C
|
||||
[Token(Token = "0x17001504")]
|
||||
public static ICollection Algorithms
|
||||
{
|
||||
[Token(Token = "0x60080DB")]
|
||||
[Address(RVA = "0x478AF0", Offset = "0x4774F0", VA = "0x180478AF0")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = DigestUtilities.oids;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060080DC RID: 32988 RVA: 0x001B48A4 File Offset: 0x001B2AA4
|
||||
[Token(Token = "0x60080DC")]
|
||||
[Address(RVA = "0x4764B0", Offset = "0x474EB0", VA = "0x1804764B0")]
|
||||
public static IDigest GetDigest(DerObjectIdentifier id)
|
||||
{
|
||||
return DigestUtilities.GetDigest(id.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x060080DD RID: 32989 RVA: 0x001B48C4 File Offset: 0x001B2AC4
|
||||
[Token(Token = "0x60080DD")]
|
||||
[Address(RVA = "0x476510", Offset = "0x474F10", VA = "0x180476510")]
|
||||
public static IDigest GetDigest(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080DD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest BestHTTP.SecureProtocol.Org.BouncyCastle.Security.DigestUtilities::GetDigest(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_18D:
|
||||
stloc:SecurityUtilityException(var_69_1A2, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, call:string(string::Concat, ldstr:string("Digest "), ldloc:string(var_0_06), 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.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x060080DE RID: 32990 RVA: 0x001B4A74 File Offset: 0x001B2C74
|
||||
[Token(Token = "0x60080DE")]
|
||||
[Address(RVA = "0x476400", Offset = "0x474E00", VA = "0x180476400")]
|
||||
public static string GetAlgorithmName(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = DigestUtilities.algorithms;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080DF RID: 32991 RVA: 0x001B4A8C File Offset: 0x001B2C8C
|
||||
[Token(Token = "0x60080DF")]
|
||||
[Address(RVA = "0x476230", Offset = "0x474C30", VA = "0x180476230")]
|
||||
public static byte[] CalculateDigest(string algorithm, byte[] input)
|
||||
{
|
||||
IDigest digest = DigestUtilities.GetDigest(algorithm);
|
||||
int length = input.Length;
|
||||
return DigestUtilities.DoFinal(digest);
|
||||
}
|
||||
|
||||
// Token: 0x060080E0 RID: 32992 RVA: 0x001B4AB4 File Offset: 0x001B2CB4
|
||||
[Token(Token = "0x60080E0")]
|
||||
[Address(RVA = "0x476370", Offset = "0x474D70", VA = "0x180476370")]
|
||||
public static byte[] DoFinal(IDigest digest)
|
||||
{
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
// Token: 0x060080E1 RID: 32993 RVA: 0x001B4AD0 File Offset: 0x001B2CD0
|
||||
[Token(Token = "0x60080E1")]
|
||||
[Address(RVA = "0x4762D0", Offset = "0x474CD0", VA = "0x1804762D0")]
|
||||
public static byte[] DoFinal(IDigest digest, byte[] input)
|
||||
{
|
||||
int length = input.Length;
|
||||
return DigestUtilities.DoFinal(digest);
|
||||
}
|
||||
|
||||
// Token: 0x04005B6C RID: 23404
|
||||
[Token(Token = "0x4005B6C")]
|
||||
private static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x04005B6D RID: 23405
|
||||
[Token(Token = "0x4005B6D")]
|
||||
private static readonly IDictionary oids;
|
||||
|
||||
// Token: 0x020013C9 RID: 5065
|
||||
[Token(Token = "0x20013C9")]
|
||||
private enum DigestAlgorithm
|
||||
{
|
||||
// Token: 0x04005B6F RID: 23407
|
||||
[Token(Token = "0x4005B6F")]
|
||||
BLAKE2B_160,
|
||||
// Token: 0x04005B70 RID: 23408
|
||||
[Token(Token = "0x4005B70")]
|
||||
BLAKE2B_256,
|
||||
// Token: 0x04005B71 RID: 23409
|
||||
[Token(Token = "0x4005B71")]
|
||||
BLAKE2B_384,
|
||||
// Token: 0x04005B72 RID: 23410
|
||||
[Token(Token = "0x4005B72")]
|
||||
BLAKE2B_512,
|
||||
// Token: 0x04005B73 RID: 23411
|
||||
[Token(Token = "0x4005B73")]
|
||||
BLAKE2S_128,
|
||||
// Token: 0x04005B74 RID: 23412
|
||||
[Token(Token = "0x4005B74")]
|
||||
BLAKE2S_160,
|
||||
// Token: 0x04005B75 RID: 23413
|
||||
[Token(Token = "0x4005B75")]
|
||||
BLAKE2S_224,
|
||||
// Token: 0x04005B76 RID: 23414
|
||||
[Token(Token = "0x4005B76")]
|
||||
BLAKE2S_256,
|
||||
// Token: 0x04005B77 RID: 23415
|
||||
[Token(Token = "0x4005B77")]
|
||||
DSTU7564_256,
|
||||
// Token: 0x04005B78 RID: 23416
|
||||
[Token(Token = "0x4005B78")]
|
||||
DSTU7564_384,
|
||||
// Token: 0x04005B79 RID: 23417
|
||||
[Token(Token = "0x4005B79")]
|
||||
DSTU7564_512,
|
||||
// Token: 0x04005B7A RID: 23418
|
||||
[Token(Token = "0x4005B7A")]
|
||||
GOST3411,
|
||||
// Token: 0x04005B7B RID: 23419
|
||||
[Token(Token = "0x4005B7B")]
|
||||
GOST3411_2012_256,
|
||||
// Token: 0x04005B7C RID: 23420
|
||||
[Token(Token = "0x4005B7C")]
|
||||
GOST3411_2012_512,
|
||||
// Token: 0x04005B7D RID: 23421
|
||||
[Token(Token = "0x4005B7D")]
|
||||
KECCAK_224,
|
||||
// Token: 0x04005B7E RID: 23422
|
||||
[Token(Token = "0x4005B7E")]
|
||||
KECCAK_256,
|
||||
// Token: 0x04005B7F RID: 23423
|
||||
[Token(Token = "0x4005B7F")]
|
||||
KECCAK_288,
|
||||
// Token: 0x04005B80 RID: 23424
|
||||
[Token(Token = "0x4005B80")]
|
||||
KECCAK_384,
|
||||
// Token: 0x04005B81 RID: 23425
|
||||
[Token(Token = "0x4005B81")]
|
||||
KECCAK_512,
|
||||
// Token: 0x04005B82 RID: 23426
|
||||
[Token(Token = "0x4005B82")]
|
||||
MD2,
|
||||
// Token: 0x04005B83 RID: 23427
|
||||
[Token(Token = "0x4005B83")]
|
||||
MD4,
|
||||
// Token: 0x04005B84 RID: 23428
|
||||
[Token(Token = "0x4005B84")]
|
||||
MD5,
|
||||
// Token: 0x04005B85 RID: 23429
|
||||
[Token(Token = "0x4005B85")]
|
||||
NONE,
|
||||
// Token: 0x04005B86 RID: 23430
|
||||
[Token(Token = "0x4005B86")]
|
||||
RIPEMD128,
|
||||
// Token: 0x04005B87 RID: 23431
|
||||
[Token(Token = "0x4005B87")]
|
||||
RIPEMD160,
|
||||
// Token: 0x04005B88 RID: 23432
|
||||
[Token(Token = "0x4005B88")]
|
||||
RIPEMD256,
|
||||
// Token: 0x04005B89 RID: 23433
|
||||
[Token(Token = "0x4005B89")]
|
||||
RIPEMD320,
|
||||
// Token: 0x04005B8A RID: 23434
|
||||
[Token(Token = "0x4005B8A")]
|
||||
SHA_1,
|
||||
// Token: 0x04005B8B RID: 23435
|
||||
[Token(Token = "0x4005B8B")]
|
||||
SHA_224,
|
||||
// Token: 0x04005B8C RID: 23436
|
||||
[Token(Token = "0x4005B8C")]
|
||||
SHA_256,
|
||||
// Token: 0x04005B8D RID: 23437
|
||||
[Token(Token = "0x4005B8D")]
|
||||
SHA_384,
|
||||
// Token: 0x04005B8E RID: 23438
|
||||
[Token(Token = "0x4005B8E")]
|
||||
SHA_512,
|
||||
// Token: 0x04005B8F RID: 23439
|
||||
[Token(Token = "0x4005B8F")]
|
||||
SHA_512_224,
|
||||
// Token: 0x04005B90 RID: 23440
|
||||
[Token(Token = "0x4005B90")]
|
||||
SHA_512_256,
|
||||
// Token: 0x04005B91 RID: 23441
|
||||
[Token(Token = "0x4005B91")]
|
||||
SHA3_224,
|
||||
// Token: 0x04005B92 RID: 23442
|
||||
[Token(Token = "0x4005B92")]
|
||||
SHA3_256,
|
||||
// Token: 0x04005B93 RID: 23443
|
||||
[Token(Token = "0x4005B93")]
|
||||
SHA3_384,
|
||||
// Token: 0x04005B94 RID: 23444
|
||||
[Token(Token = "0x4005B94")]
|
||||
SHA3_512,
|
||||
// Token: 0x04005B95 RID: 23445
|
||||
[Token(Token = "0x4005B95")]
|
||||
SHAKE128,
|
||||
// Token: 0x04005B96 RID: 23446
|
||||
[Token(Token = "0x4005B96")]
|
||||
SHAKE256,
|
||||
// Token: 0x04005B97 RID: 23447
|
||||
[Token(Token = "0x4005B97")]
|
||||
SM3,
|
||||
// Token: 0x04005B98 RID: 23448
|
||||
[Token(Token = "0x4005B98")]
|
||||
TIGER,
|
||||
// Token: 0x04005B99 RID: 23449
|
||||
[Token(Token = "0x4005B99")]
|
||||
WHIRLPOOL
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,356 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Cryptography;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013CA RID: 5066
|
||||
[Token(Token = "0x20013CA")]
|
||||
[StructLayout(3)]
|
||||
public sealed class DotNetUtilities
|
||||
{
|
||||
// Token: 0x060080E2 RID: 32994 RVA: 0x001B4AF0 File Offset: 0x001B2CF0
|
||||
[Token(Token = "0x60080E2")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private DotNetUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060080E3 RID: 32995 RVA: 0x001B4B04 File Offset: 0x001B2D04
|
||||
[Token(Token = "0x60080E3")]
|
||||
[Address(RVA = "0x47A2B0", Offset = "0x478CB0", VA = "0x18047A2B0")]
|
||||
public static global::System.Security.Cryptography.X509Certificates.X509Certificate ToX509Certificate(X509CertificateStructure x509Struct)
|
||||
{
|
||||
return new global::System.Security.Cryptography.X509Certificates.X509Certificate(x509Struct.GetDerEncoded());
|
||||
}
|
||||
|
||||
// Token: 0x060080E4 RID: 32996 RVA: 0x001B4B24 File Offset: 0x001B2D24
|
||||
[Token(Token = "0x60080E4")]
|
||||
[Address(RVA = "0x47A320", Offset = "0x478D20", VA = "0x18047A320")]
|
||||
public static global::System.Security.Cryptography.X509Certificates.X509Certificate ToX509Certificate(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate x509Cert)
|
||||
{
|
||||
AsymmetricKeyParameter publicKey = x509Cert.GetPublicKey();
|
||||
global::System.Security.Cryptography.X509Certificates.X509Certificate x509Certificate;
|
||||
return x509Certificate;
|
||||
}
|
||||
|
||||
// Token: 0x060080E5 RID: 32997 RVA: 0x001B4B40 File Offset: 0x001B2D40
|
||||
[Token(Token = "0x60080E5")]
|
||||
[Address(RVA = "0x478E30", Offset = "0x477830", VA = "0x180478E30")]
|
||||
public static BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate FromX509Certificate(global::System.Security.Cryptography.X509Certificates.X509Certificate x509Cert)
|
||||
{
|
||||
X509CertificateParser x509CertificateParser = new X509CertificateParser();
|
||||
byte[] publicKey = x509Cert.GetPublicKey();
|
||||
return x509CertificateParser.ReadCertificate(publicKey);
|
||||
}
|
||||
|
||||
// Token: 0x060080E6 RID: 32998 RVA: 0x001B4B68 File Offset: 0x001B2D68
|
||||
[Token(Token = "0x60080E6")]
|
||||
[Address(RVA = "0x478EB0", Offset = "0x4778B0", VA = "0x180478EB0")]
|
||||
public static AsymmetricCipherKeyPair GetDsaKeyPair(DSA dsa)
|
||||
{
|
||||
AsymmetricCipherKeyPair asymmetricCipherKeyPair;
|
||||
return asymmetricCipherKeyPair;
|
||||
}
|
||||
|
||||
// Token: 0x060080E7 RID: 32999 RVA: 0x001B4B7C File Offset: 0x001B2D7C
|
||||
[Token(Token = "0x60080E7")]
|
||||
[Address(RVA = "0x478F20", Offset = "0x477920", VA = "0x180478F20")]
|
||||
public static AsymmetricCipherKeyPair GetDsaKeyPair(DSAParameters dp)
|
||||
{
|
||||
if (dp.Seed != (ulong)0L)
|
||||
{
|
||||
byte[] seed = dp.Seed;
|
||||
}
|
||||
int num = 0;
|
||||
byte[] g;
|
||||
BigInteger bigInteger = new BigInteger(1, g);
|
||||
g = dp.G;
|
||||
BigInteger bigInteger2;
|
||||
BigInteger bigInteger3;
|
||||
DsaParameters dsaParameters = new DsaParameters(bigInteger2, bigInteger3, bigInteger, num);
|
||||
BigInteger bigInteger4;
|
||||
DsaPublicKeyParameters dsaPublicKeyParameters = new DsaPublicKeyParameters(bigInteger4, dsaParameters);
|
||||
BigInteger bigInteger5;
|
||||
DsaPrivateKeyParameters dsaPrivateKeyParameters = new DsaPrivateKeyParameters(bigInteger5, dsaParameters);
|
||||
return new AsymmetricCipherKeyPair(dsaPublicKeyParameters, dsaPrivateKeyParameters);
|
||||
}
|
||||
|
||||
// Token: 0x060080E8 RID: 33000 RVA: 0x001B4BDC File Offset: 0x001B2DDC
|
||||
[Token(Token = "0x60080E8")]
|
||||
[Address(RVA = "0x479110", Offset = "0x477B10", VA = "0x180479110")]
|
||||
public static DsaPublicKeyParameters GetDsaPublicKey(DSA dsa)
|
||||
{
|
||||
int num = 0;
|
||||
BigInteger bigInteger;
|
||||
BigInteger bigInteger2;
|
||||
BigInteger bigInteger3;
|
||||
DsaParameters dsaParameters = new DsaParameters(bigInteger, bigInteger2, bigInteger3, num);
|
||||
BigInteger bigInteger4;
|
||||
return new DsaPublicKeyParameters(bigInteger4, dsaParameters);
|
||||
}
|
||||
|
||||
// Token: 0x060080E9 RID: 33001 RVA: 0x001B4C08 File Offset: 0x001B2E08
|
||||
[Token(Token = "0x60080E9")]
|
||||
[Address(RVA = "0x4792D0", Offset = "0x477CD0", VA = "0x1804792D0")]
|
||||
public static DsaPublicKeyParameters GetDsaPublicKey(DSAParameters dp)
|
||||
{
|
||||
if (dp.Seed != (ulong)0L)
|
||||
{
|
||||
byte[] seed = dp.Seed;
|
||||
}
|
||||
int num = 0;
|
||||
byte[] g;
|
||||
BigInteger bigInteger = new BigInteger(1, g);
|
||||
g = dp.G;
|
||||
BigInteger bigInteger2;
|
||||
BigInteger bigInteger3;
|
||||
DsaParameters dsaParameters = new DsaParameters(bigInteger2, bigInteger3, bigInteger, num);
|
||||
BigInteger bigInteger4;
|
||||
return new DsaPublicKeyParameters(bigInteger4, dsaParameters);
|
||||
}
|
||||
|
||||
// Token: 0x060080EA RID: 33002 RVA: 0x001B4C54 File Offset: 0x001B2E54
|
||||
[Token(Token = "0x60080EA")]
|
||||
[Address(RVA = "0x479890", Offset = "0x478290", VA = "0x180479890")]
|
||||
public static AsymmetricCipherKeyPair GetRsaKeyPair(RSA rsa)
|
||||
{
|
||||
byte[] array;
|
||||
byte b = array[0];
|
||||
byte b2 = array[2];
|
||||
AsymmetricCipherKeyPair asymmetricCipherKeyPair;
|
||||
return asymmetricCipherKeyPair;
|
||||
}
|
||||
|
||||
// Token: 0x060080EB RID: 33003 RVA: 0x001B4C78 File Offset: 0x001B2E78
|
||||
[Token(Token = "0x60080EB")]
|
||||
[Address(RVA = "0x479660", Offset = "0x478060", VA = "0x180479660")]
|
||||
public static AsymmetricCipherKeyPair GetRsaKeyPair(RSAParameters rp)
|
||||
{
|
||||
int num;
|
||||
BigInteger bigInteger;
|
||||
BigInteger bigInteger2;
|
||||
RsaKeyParameters rsaKeyParameters = new RsaKeyParameters(num != 0, bigInteger, bigInteger2);
|
||||
num = 0;
|
||||
byte[] p;
|
||||
BigInteger bigInteger3 = new BigInteger(1, p);
|
||||
p = rp.P;
|
||||
BigInteger bigInteger4 = new BigInteger(1, p);
|
||||
byte[] dp;
|
||||
BigInteger bigInteger5 = new BigInteger(1, dp);
|
||||
dp = rp.DP;
|
||||
BigInteger bigInteger6 = new BigInteger(1, dp);
|
||||
BigInteger bigInteger7 = new BigInteger(1, dp);
|
||||
AsymmetricCipherKeyPair asymmetricCipherKeyPair;
|
||||
return asymmetricCipherKeyPair;
|
||||
}
|
||||
|
||||
// Token: 0x060080EC RID: 33004 RVA: 0x001B4CD8 File Offset: 0x001B2ED8
|
||||
[Token(Token = "0x60080EC")]
|
||||
[Address(RVA = "0x479900", Offset = "0x478300", VA = "0x180479900")]
|
||||
public static RsaKeyParameters GetRsaPublicKey(RSA rsa)
|
||||
{
|
||||
int num;
|
||||
BigInteger bigInteger;
|
||||
BigInteger bigInteger2;
|
||||
RsaKeyParameters rsaKeyParameters = new RsaKeyParameters(num != 0, bigInteger, bigInteger2);
|
||||
num = 0;
|
||||
return rsaKeyParameters;
|
||||
}
|
||||
|
||||
// Token: 0x060080ED RID: 33005 RVA: 0x001B4CFC File Offset: 0x001B2EFC
|
||||
[Token(Token = "0x60080ED")]
|
||||
[Address(RVA = "0x479A00", Offset = "0x478400", VA = "0x180479A00")]
|
||||
public static RsaKeyParameters GetRsaPublicKey(RSAParameters rp)
|
||||
{
|
||||
int num;
|
||||
BigInteger bigInteger;
|
||||
BigInteger bigInteger2;
|
||||
RsaKeyParameters rsaKeyParameters = new RsaKeyParameters(num != 0, bigInteger, bigInteger2);
|
||||
num = 0;
|
||||
return rsaKeyParameters;
|
||||
}
|
||||
|
||||
// Token: 0x060080EE RID: 33006 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x60080EE")]
|
||||
[Address(RVA = "0x479450", Offset = "0x477E50", VA = "0x180479450")]
|
||||
public static AsymmetricCipherKeyPair GetKeyPair(AsymmetricAlgorithm privateKey)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x060080EF RID: 33007 RVA: 0x001B4D18 File Offset: 0x001B2F18
|
||||
[Token(Token = "0x60080EF")]
|
||||
[Address(RVA = "0x47A0A0", Offset = "0x478AA0", VA = "0x18047A0A0")]
|
||||
public static RSA ToRSA(RsaKeyParameters rsaKey)
|
||||
{
|
||||
int num = 0;
|
||||
byte[] array = rsaKey.modulus.ToByteArrayUnsigned();
|
||||
BigInteger exponent = rsaKey.exponent;
|
||||
byte[] array2 = exponent.ToByteArrayUnsigned();
|
||||
int length = array.Length;
|
||||
byte[] array3 = DotNetUtilities.ConvertRSAParametersField(exponent, length);
|
||||
return DotNetUtilities.CreateRSAProvider(num);
|
||||
}
|
||||
|
||||
// Token: 0x060080F0 RID: 33008 RVA: 0x001B4D60 File Offset: 0x001B2F60
|
||||
[Token(Token = "0x60080F0")]
|
||||
[Address(RVA = "0x479F60", Offset = "0x478960", VA = "0x180479F60")]
|
||||
public static RSA ToRSA(RsaKeyParameters rsaKey, CspParameters csp)
|
||||
{
|
||||
int num = 0;
|
||||
byte[] array = rsaKey.modulus.ToByteArrayUnsigned();
|
||||
BigInteger exponent = rsaKey.exponent;
|
||||
byte[] array2 = exponent.ToByteArrayUnsigned();
|
||||
int length = array.Length;
|
||||
byte[] array3 = DotNetUtilities.ConvertRSAParametersField(exponent, length);
|
||||
RSAParameters rsaparameters = new RSACryptoServiceProvider(csp).ExportParameters(num != 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080F1 RID: 33009 RVA: 0x001B4DB0 File Offset: 0x001B2FB0
|
||||
[Token(Token = "0x60080F1")]
|
||||
[Address(RVA = "0x47A260", Offset = "0x478C60", VA = "0x18047A260")]
|
||||
public static RSA ToRSA(RsaPrivateCrtKeyParameters privKey)
|
||||
{
|
||||
RSAParameters rsaparameters;
|
||||
byte[] p = rsaparameters.P;
|
||||
byte[] dp = rsaparameters.DP;
|
||||
byte[] inverseQ = rsaparameters.InverseQ;
|
||||
RSA rsa;
|
||||
return rsa;
|
||||
}
|
||||
|
||||
// Token: 0x060080F2 RID: 33010 RVA: 0x001B4DD4 File Offset: 0x001B2FD4
|
||||
[Token(Token = "0x60080F2")]
|
||||
[Address(RVA = "0x479E20", Offset = "0x478820", VA = "0x180479E20")]
|
||||
public static RSA ToRSA(RsaPrivateCrtKeyParameters privKey, CspParameters csp)
|
||||
{
|
||||
RSAParameters rsaparameters;
|
||||
byte[] p = rsaparameters.P;
|
||||
byte[] dp = rsaparameters.DP;
|
||||
byte[] inverseQ = rsaparameters.InverseQ;
|
||||
RSACryptoServiceProvider rsacryptoServiceProvider = new RSACryptoServiceProvider(csp);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080F3 RID: 33011 RVA: 0x001B4E04 File Offset: 0x001B3004
|
||||
[Token(Token = "0x60080F3")]
|
||||
[Address(RVA = "0x479F10", Offset = "0x478910", VA = "0x180479F10")]
|
||||
public static RSA ToRSA(RsaPrivateKeyStructure privKey)
|
||||
{
|
||||
RSAParameters rsaparameters;
|
||||
byte[] p = rsaparameters.P;
|
||||
byte[] dp = rsaparameters.DP;
|
||||
byte[] inverseQ = rsaparameters.InverseQ;
|
||||
RSA rsa;
|
||||
return rsa;
|
||||
}
|
||||
|
||||
// Token: 0x060080F4 RID: 33012 RVA: 0x001B4E28 File Offset: 0x001B3028
|
||||
[Token(Token = "0x60080F4")]
|
||||
[Address(RVA = "0x47A170", Offset = "0x478B70", VA = "0x18047A170")]
|
||||
public static RSA ToRSA(RsaPrivateKeyStructure privKey, CspParameters csp)
|
||||
{
|
||||
RSAParameters rsaparameters;
|
||||
byte[] p = rsaparameters.P;
|
||||
byte[] dp = rsaparameters.DP;
|
||||
byte[] inverseQ = rsaparameters.InverseQ;
|
||||
RSACryptoServiceProvider rsacryptoServiceProvider = new RSACryptoServiceProvider(csp);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080F5 RID: 33013 RVA: 0x001B4E58 File Offset: 0x001B3058
|
||||
[Token(Token = "0x60080F5")]
|
||||
[Address(RVA = "0x479AC0", Offset = "0x4784C0", VA = "0x180479AC0")]
|
||||
public static RSAParameters ToRSAParameters(RsaKeyParameters rsaKey)
|
||||
{
|
||||
if ("{il2cpp array field il2cppMethodInfo->}" == (ulong)0L)
|
||||
{
|
||||
}
|
||||
rsaKey.privateKey = false;
|
||||
rsaKey.exponent = 0;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080F6 RID: 33014 RVA: 0x001B4E84 File Offset: 0x001B3084
|
||||
[Token(Token = "0x60080F6")]
|
||||
[Address(RVA = "0x479CD0", Offset = "0x4786D0", VA = "0x180479CD0")]
|
||||
public static RSAParameters ToRSAParameters(RsaPrivateCrtKeyParameters privKey)
|
||||
{
|
||||
byte[] array;
|
||||
privKey.privateKey = array != null;
|
||||
byte[] array2;
|
||||
privKey.exponent = array2;
|
||||
byte[] array3;
|
||||
privKey.p = array3;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080F7 RID: 33015 RVA: 0x001B4EB0 File Offset: 0x001B30B0
|
||||
[Token(Token = "0x60080F7")]
|
||||
[Address(RVA = "0x479B80", Offset = "0x478580", VA = "0x180479B80")]
|
||||
public static RSAParameters ToRSAParameters(RsaPrivateKeyStructure privKey)
|
||||
{
|
||||
byte[] array;
|
||||
privKey.modulus = array;
|
||||
byte[] array2;
|
||||
privKey.privateExponent = array2;
|
||||
byte[] array3;
|
||||
privKey.prime2 = array3;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080F8 RID: 33016 RVA: 0x001B4EDC File Offset: 0x001B30DC
|
||||
[Token(Token = "0x60080F8")]
|
||||
[Address(RVA = "0x478B70", Offset = "0x477570", VA = "0x180478B70")]
|
||||
private static byte[] ConvertRSAParametersField(BigInteger n, int size)
|
||||
{
|
||||
byte[] array = n.ToByteArrayUnsigned();
|
||||
if (array.Length != size)
|
||||
{
|
||||
byte[] array2 = new byte[size];
|
||||
int length = array.Length;
|
||||
int num = 0;
|
||||
Array.Copy(array, num, array2, size, length);
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x060080F9 RID: 33017 RVA: 0x001B4F1C File Offset: 0x001B311C
|
||||
[Token(Token = "0x60080F9")]
|
||||
[Address(RVA = "0x478D00", Offset = "0x477700", VA = "0x180478D00")]
|
||||
private static RSA CreateRSAProvider(RSAParameters rp)
|
||||
{
|
||||
CspParameters cspParameters = new CspParameters();
|
||||
Guid guid = Guid.NewGuid();
|
||||
string text = string.Format("BouncyCastle-{0}", guid);
|
||||
cspParameters.KeyContainerName = text;
|
||||
RSACryptoServiceProvider rsacryptoServiceProvider = new RSACryptoServiceProvider(cspParameters);
|
||||
byte[] p = rp.P;
|
||||
byte[] dp = rp.DP;
|
||||
byte[] inverseQ = rp.InverseQ;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060080FA RID: 33018 RVA: 0x001B4F6C File Offset: 0x001B316C
|
||||
[Token(Token = "0x60080FA")]
|
||||
[Address(RVA = "0x478C50", Offset = "0x477650", VA = "0x180478C50")]
|
||||
private static RSA CreateRSAProvider(RSAParameters rp, CspParameters csp)
|
||||
{
|
||||
RSACryptoServiceProvider rsacryptoServiceProvider = new RSACryptoServiceProvider(csp);
|
||||
byte[] p = rp.P;
|
||||
byte[] dp = rp.DP;
|
||||
byte[] inverseQ = rp.InverseQ;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013C1 RID: 5057
|
||||
[Token(Token = "0x20013C1")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class EncryptionException : IOException
|
||||
{
|
||||
// Token: 0x060080C1 RID: 32961 RVA: 0x001B377C File Offset: 0x001B197C
|
||||
[Token(Token = "0x60080C1")]
|
||||
[Address(RVA = "0x47A3A0", Offset = "0x478DA0", VA = "0x18047A3A0")]
|
||||
public EncryptionException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060080C2 RID: 32962 RVA: 0x001B3790 File Offset: 0x001B1990
|
||||
[Token(Token = "0x60080C2")]
|
||||
[Address(RVA = "0x47A3B0", Offset = "0x478DB0", VA = "0x18047A3B0")]
|
||||
public EncryptionException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013CB RID: 5067
|
||||
[Token(Token = "0x20013CB")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class GeneralSecurityException : Exception
|
||||
{
|
||||
// Token: 0x060080FB RID: 33019 RVA: 0x001B4F9C File Offset: 0x001B319C
|
||||
[Token(Token = "0x60080FB")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public GeneralSecurityException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060080FC RID: 33020 RVA: 0x001B4FB0 File Offset: 0x001B31B0
|
||||
[Token(Token = "0x60080FC")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public GeneralSecurityException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060080FD RID: 33021 RVA: 0x001B4FC4 File Offset: 0x001B31C4
|
||||
[Token(Token = "0x60080FD")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public GeneralSecurityException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+333
@@ -0,0 +1,333 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Generators;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013CC RID: 5068
|
||||
[Token(Token = "0x20013CC")]
|
||||
[StructLayout(3)]
|
||||
public sealed class GeneratorUtilities
|
||||
{
|
||||
// Token: 0x060080FE RID: 33022 RVA: 0x001B4FDC File Offset: 0x001B31DC
|
||||
[Token(Token = "0x60080FE")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private GeneratorUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060080FF RID: 33023 RVA: 0x001B4FF0 File Offset: 0x001B31F0
|
||||
[Token(Token = "0x60080FF")]
|
||||
[Address(RVA = "0x47B860", Offset = "0x47A260", VA = "0x18047B860")]
|
||||
static GeneratorUtilities()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060080FF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Security.GeneratorUtilities::.cctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_D17:
|
||||
stelem:string([mscorlib]System.String, ldloc:string[](var_106_CF8), ldc.i4:int32(1), ldstr:string("HMACSHA1"))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008100 RID: 33024 RVA: 0x001B5D20 File Offset: 0x001B3F20
|
||||
[Token(Token = "0x6008100")]
|
||||
[Address(RVA = "0x47A3C0", Offset = "0x478DC0", VA = "0x18047A3C0")]
|
||||
private static void AddDefaultKeySizeEntries(int size, params string[] algorithms)
|
||||
{
|
||||
int num = 0;
|
||||
int length = algorithms.Length;
|
||||
if (num < length)
|
||||
{
|
||||
IDictionary dictionary = GeneratorUtilities.defaultKeySizes;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008101 RID: 33025 RVA: 0x001B5D4C File Offset: 0x001B3F4C
|
||||
[Token(Token = "0x6008101")]
|
||||
[Address(RVA = "0x47A6F0", Offset = "0x4790F0", VA = "0x18047A6F0")]
|
||||
private static void AddKgAlgorithm(string canonicalName, params object[] aliases)
|
||||
{
|
||||
IDictionary dictionary = GeneratorUtilities.kgAlgorithms;
|
||||
string text = Platform.ToUpperInvariant(canonicalName);
|
||||
int num = 0;
|
||||
int length = aliases.Length;
|
||||
if (num < length)
|
||||
{
|
||||
object obj = aliases[num];
|
||||
IDictionary dictionary2 = GeneratorUtilities.kgAlgorithms;
|
||||
int hashCode = obj.GetHashCode();
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008102 RID: 33026 RVA: 0x001B5D98 File Offset: 0x001B3F98
|
||||
[Token(Token = "0x6008102")]
|
||||
[Address(RVA = "0x47A8B0", Offset = "0x4792B0", VA = "0x18047A8B0")]
|
||||
private static void AddKpgAlgorithm(string canonicalName, params object[] aliases)
|
||||
{
|
||||
IDictionary dictionary = GeneratorUtilities.kpgAlgorithms;
|
||||
string text = Platform.ToUpperInvariant(canonicalName);
|
||||
int num = 0;
|
||||
int length = aliases.Length;
|
||||
if (num < length)
|
||||
{
|
||||
object obj = aliases[num];
|
||||
IDictionary dictionary2 = GeneratorUtilities.kpgAlgorithms;
|
||||
int hashCode = obj.GetHashCode();
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008103 RID: 33027 RVA: 0x001B5DE4 File Offset: 0x001B3FE4
|
||||
[Token(Token = "0x6008103")]
|
||||
[Address(RVA = "0x47A4C0", Offset = "0x478EC0", VA = "0x18047A4C0")]
|
||||
private static void AddHMacKeyGenerator(string algorithm, params object[] aliases)
|
||||
{
|
||||
string text = "HMAC" + algorithm;
|
||||
IDictionary dictionary = GeneratorUtilities.kgAlgorithms;
|
||||
IDictionary dictionary2 = GeneratorUtilities.kgAlgorithms;
|
||||
string text2 = "HMAC-" + algorithm;
|
||||
IDictionary dictionary3 = GeneratorUtilities.kgAlgorithms;
|
||||
string text3 = "HMAC/" + algorithm;
|
||||
int num = 0;
|
||||
int length = aliases.Length;
|
||||
if (num < length)
|
||||
{
|
||||
object obj = aliases[num];
|
||||
IDictionary dictionary4 = GeneratorUtilities.kgAlgorithms;
|
||||
int hashCode = obj.GetHashCode();
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008104 RID: 33028 RVA: 0x001B5E60 File Offset: 0x001B4060
|
||||
[Token(Token = "0x6008104")]
|
||||
[Address(RVA = "0x47AB80", Offset = "0x479580", VA = "0x18047AB80")]
|
||||
internal static string GetCanonicalKeyGeneratorAlgorithm(string algorithm)
|
||||
{
|
||||
string text;
|
||||
for (;;)
|
||||
{
|
||||
IDictionary dictionary = GeneratorUtilities.kgAlgorithms;
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
if (text == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (text != 0)
|
||||
{
|
||||
goto Block_1;
|
||||
}
|
||||
}
|
||||
return text;
|
||||
Block_1:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008105 RID: 33029 RVA: 0x001B5E8C File Offset: 0x001B408C
|
||||
[Token(Token = "0x6008105")]
|
||||
[Address(RVA = "0x47AC60", Offset = "0x479660", VA = "0x18047AC60")]
|
||||
internal static string GetCanonicalKeyPairGeneratorAlgorithm(string algorithm)
|
||||
{
|
||||
string text;
|
||||
for (;;)
|
||||
{
|
||||
IDictionary dictionary = GeneratorUtilities.kpgAlgorithms;
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
if (text == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (text != 0)
|
||||
{
|
||||
goto Block_1;
|
||||
}
|
||||
}
|
||||
return text;
|
||||
Block_1:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008106 RID: 33030 RVA: 0x001B5EB8 File Offset: 0x001B40B8
|
||||
[Token(Token = "0x6008106")]
|
||||
[Address(RVA = "0x47AFA0", Offset = "0x4799A0", VA = "0x18047AFA0")]
|
||||
public static CipherKeyGenerator GetKeyGenerator(DerObjectIdentifier oid)
|
||||
{
|
||||
return GeneratorUtilities.GetKeyGenerator(oid.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x06008107 RID: 33031 RVA: 0x001B5ED8 File Offset: 0x001B40D8
|
||||
[Token(Token = "0x6008107")]
|
||||
[Address(RVA = "0x47B000", Offset = "0x479A00", VA = "0x18047B000")]
|
||||
public static CipherKeyGenerator GetKeyGenerator(string algorithm)
|
||||
{
|
||||
string canonicalKeyGeneratorAlgorithm = GeneratorUtilities.GetCanonicalKeyGeneratorAlgorithm(algorithm);
|
||||
if (canonicalKeyGeneratorAlgorithm != 0)
|
||||
{
|
||||
int num = GeneratorUtilities.FindDefaultKeySize(canonicalKeyGeneratorAlgorithm);
|
||||
if (num == -1)
|
||||
{
|
||||
goto IL_6C;
|
||||
}
|
||||
if (!string.Equals(canonicalKeyGeneratorAlgorithm, "DES"))
|
||||
{
|
||||
if (!string.Equals(canonicalKeyGeneratorAlgorithm, "DESEDE") && !string.Equals(canonicalKeyGeneratorAlgorithm, "DESEDE3"))
|
||||
{
|
||||
return new CipherKeyGenerator(num);
|
||||
}
|
||||
DesEdeKeyGenerator desEdeKeyGenerator = new DesEdeKeyGenerator(num);
|
||||
}
|
||||
DesKeyGenerator desKeyGenerator = new DesKeyGenerator(num);
|
||||
}
|
||||
SecurityUtilityException ex = new SecurityUtilityException("KeyGenerator " + algorithm + " not recognised.");
|
||||
IL_6C:
|
||||
string[] array = new string[5];
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008108 RID: 33032 RVA: 0x001B5FC0 File Offset: 0x001B41C0
|
||||
[Token(Token = "0x6008108")]
|
||||
[Address(RVA = "0x47B2B0", Offset = "0x479CB0", VA = "0x18047B2B0")]
|
||||
public static IAsymmetricCipherKeyPairGenerator GetKeyPairGenerator(DerObjectIdentifier oid)
|
||||
{
|
||||
return GeneratorUtilities.GetKeyPairGenerator(oid.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x06008109 RID: 33033 RVA: 0x001B5FE0 File Offset: 0x001B41E0
|
||||
[Token(Token = "0x6008109")]
|
||||
[Address(RVA = "0x47B310", Offset = "0x479D10", VA = "0x18047B310")]
|
||||
public static IAsymmetricCipherKeyPairGenerator GetKeyPairGenerator(string algorithm)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = GeneratorUtilities.kpgAlgorithms;
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
}
|
||||
while (text == 0 || text == 0);
|
||||
if (text == 0)
|
||||
{
|
||||
if (text == 0)
|
||||
{
|
||||
bool flag = Platform.StartsWith(text, "EC");
|
||||
if (!flag)
|
||||
{
|
||||
if (!flag)
|
||||
{
|
||||
if (!flag)
|
||||
{
|
||||
if (!flag)
|
||||
{
|
||||
if (!flag)
|
||||
{
|
||||
if (!flag)
|
||||
{
|
||||
if (!flag)
|
||||
{
|
||||
if (!flag)
|
||||
{
|
||||
string[] array = new string[5];
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
X448KeyPairGenerator x448KeyPairGenerator = new X448KeyPairGenerator();
|
||||
}
|
||||
X25519KeyPairGenerator x25519KeyPairGenerator = new X25519KeyPairGenerator();
|
||||
}
|
||||
RsaKeyPairGenerator rsaKeyPairGenerator = new RsaKeyPairGenerator();
|
||||
}
|
||||
Gost3410KeyPairGenerator gost3410KeyPairGenerator = new Gost3410KeyPairGenerator();
|
||||
}
|
||||
ElGamalKeyPairGenerator elGamalKeyPairGenerator = new ElGamalKeyPairGenerator();
|
||||
}
|
||||
Ed448KeyPairGenerator ed448KeyPairGenerator = new Ed448KeyPairGenerator();
|
||||
}
|
||||
Ed25519KeyPairGenerator ed25519KeyPairGenerator = new Ed25519KeyPairGenerator();
|
||||
}
|
||||
ECKeyPairGenerator eckeyPairGenerator = new ECKeyPairGenerator(text);
|
||||
}
|
||||
DsaKeyPairGenerator dsaKeyPairGenerator = new DsaKeyPairGenerator();
|
||||
}
|
||||
DHKeyPairGenerator dhkeyPairGenerator = new DHKeyPairGenerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600810A RID: 33034 RVA: 0x001B60F4 File Offset: 0x001B42F4
|
||||
[Token(Token = "0x600810A")]
|
||||
[Address(RVA = "0x47AF40", Offset = "0x479940", VA = "0x18047AF40")]
|
||||
internal static int GetDefaultKeySize(DerObjectIdentifier oid)
|
||||
{
|
||||
return GeneratorUtilities.GetDefaultKeySize(oid.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x0600810B RID: 33035 RVA: 0x001B6114 File Offset: 0x001B4314
|
||||
[Token(Token = "0x600810B")]
|
||||
[Address(RVA = "0x47AD40", Offset = "0x479740", VA = "0x18047AD40")]
|
||||
internal static int GetDefaultKeySize(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600810B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Security.GeneratorUtilities::GetDefaultKeySize(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_85:
|
||||
stloc:SecurityUtilityException(var_4_9A, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, call:string(string::Concat, ldstr:string("KeyGenerator "), 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.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600810C RID: 33036 RVA: 0x001B61BC File Offset: 0x001B43BC
|
||||
[Token(Token = "0x600810C")]
|
||||
[Address(RVA = "0x47AA70", Offset = "0x479470", VA = "0x18047AA70")]
|
||||
private static int FindDefaultKeySize(string canonicalName)
|
||||
{
|
||||
IDictionary dictionary = GeneratorUtilities.defaultKeySizes;
|
||||
IDictionary dictionary2 = GeneratorUtilities.defaultKeySizes;
|
||||
IDictionary dictionary3 = GeneratorUtilities.kgAlgorithms;
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Token: 0x04005B9A RID: 23450
|
||||
[Token(Token = "0x4005B9A")]
|
||||
private static readonly IDictionary kgAlgorithms;
|
||||
|
||||
// Token: 0x04005B9B RID: 23451
|
||||
[Token(Token = "0x4005B9B")]
|
||||
private static readonly IDictionary kpgAlgorithms;
|
||||
|
||||
// Token: 0x04005B9C RID: 23452
|
||||
[Token(Token = "0x4005B9C")]
|
||||
private static readonly IDictionary defaultKeySizes;
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013CD RID: 5069
|
||||
[Token(Token = "0x20013CD")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class InvalidKeyException : KeyException
|
||||
{
|
||||
// Token: 0x0600810D RID: 33037 RVA: 0x001B61E4 File Offset: 0x001B43E4
|
||||
[Token(Token = "0x600810D")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public InvalidKeyException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600810E RID: 33038 RVA: 0x001B61F8 File Offset: 0x001B43F8
|
||||
[Token(Token = "0x600810E")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public InvalidKeyException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600810F RID: 33039 RVA: 0x001B620C File Offset: 0x001B440C
|
||||
[Token(Token = "0x600810F")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public InvalidKeyException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013CE RID: 5070
|
||||
[Token(Token = "0x20013CE")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class InvalidParameterException : KeyException
|
||||
{
|
||||
// Token: 0x06008110 RID: 33040 RVA: 0x001B6224 File Offset: 0x001B4424
|
||||
[Token(Token = "0x6008110")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public InvalidParameterException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008111 RID: 33041 RVA: 0x001B6238 File Offset: 0x001B4438
|
||||
[Token(Token = "0x6008111")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public InvalidParameterException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008112 RID: 33042 RVA: 0x001B624C File Offset: 0x001B444C
|
||||
[Token(Token = "0x6008112")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public InvalidParameterException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013CF RID: 5071
|
||||
[Token(Token = "0x20013CF")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class KeyException : GeneralSecurityException
|
||||
{
|
||||
// Token: 0x06008113 RID: 33043 RVA: 0x001B6264 File Offset: 0x001B4464
|
||||
[Token(Token = "0x6008113")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public KeyException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008114 RID: 33044 RVA: 0x001B6278 File Offset: 0x001B4478
|
||||
[Token(Token = "0x6008114")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public KeyException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008115 RID: 33045 RVA: 0x001B628C File Offset: 0x001B448C
|
||||
[Token(Token = "0x6008115")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public KeyException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Iana;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Rosstandart;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013D0 RID: 5072
|
||||
[Token(Token = "0x20013D0")]
|
||||
[StructLayout(3)]
|
||||
public sealed class MacUtilities
|
||||
{
|
||||
// Token: 0x06008116 RID: 33046 RVA: 0x001B62A4 File Offset: 0x001B44A4
|
||||
[Token(Token = "0x6008116")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private MacUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008117 RID: 33047 RVA: 0x001B62B8 File Offset: 0x001B44B8
|
||||
[Token(Token = "0x6008117")]
|
||||
[Address(RVA = "0x480820", Offset = "0x47F220", VA = "0x180480820")]
|
||||
static MacUtilities()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
DerObjectIdentifier hmacMD = IanaObjectIdentifiers.HmacMD5;
|
||||
DerObjectIdentifier hmacRipeMD = IanaObjectIdentifiers.HmacRipeMD160;
|
||||
DerObjectIdentifier hmacSha = IanaObjectIdentifiers.HmacSha1;
|
||||
DerObjectIdentifier hmacTiger = IanaObjectIdentifiers.HmacTiger;
|
||||
DerObjectIdentifier idHmacWithSha = PkcsObjectIdentifiers.IdHmacWithSha1;
|
||||
DerObjectIdentifier idHmacWithSha2 = PkcsObjectIdentifiers.IdHmacWithSha224;
|
||||
DerObjectIdentifier idHmacWithSha3 = PkcsObjectIdentifiers.IdHmacWithSha256;
|
||||
DerObjectIdentifier idHmacWithSha4 = PkcsObjectIdentifiers.IdHmacWithSha384;
|
||||
DerObjectIdentifier idHmacWithSha5 = PkcsObjectIdentifiers.IdHmacWithSha512;
|
||||
DerObjectIdentifier idHMacWithSha3_ = NistObjectIdentifiers.IdHMacWithSha3_224;
|
||||
DerObjectIdentifier idHMacWithSha3_2 = NistObjectIdentifiers.IdHMacWithSha3_256;
|
||||
DerObjectIdentifier idHMacWithSha3_3 = NistObjectIdentifiers.IdHMacWithSha3_384;
|
||||
DerObjectIdentifier idHMacWithSha3_4 = NistObjectIdentifiers.IdHMacWithSha3_512;
|
||||
DerObjectIdentifier id_tc26_hmac_gost_3411_12_ = RosstandartObjectIdentifiers.id_tc26_hmac_gost_3411_12_256;
|
||||
DerObjectIdentifier id_tc26_hmac_gost_3411_12_2 = RosstandartObjectIdentifiers.id_tc26_hmac_gost_3411_12_512;
|
||||
DerObjectIdentifier desEde3Cbc = PkcsObjectIdentifiers.DesEde3Cbc;
|
||||
}
|
||||
|
||||
// Token: 0x06008118 RID: 33048 RVA: 0x001B6344 File Offset: 0x001B4544
|
||||
[Token(Token = "0x6008118")]
|
||||
[Address(RVA = "0x47FDF0", Offset = "0x47E7F0", VA = "0x18047FDF0")]
|
||||
public static IMac GetMac(DerObjectIdentifier id)
|
||||
{
|
||||
return MacUtilities.GetMac(id.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x06008119 RID: 33049 RVA: 0x001B6364 File Offset: 0x001B4564
|
||||
[Token(Token = "0x6008119")]
|
||||
[Address(RVA = "0x47FE50", Offset = "0x47E850", VA = "0x18047FE50")]
|
||||
public static IMac GetMac(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008119)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IMac BestHTTP.SecureProtocol.Org.BouncyCastle.Security.MacUtilities::GetMac(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1BE:
|
||||
stloc:SecurityUtilityException(var_34_1C5, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, ldloc:string(var_33)))
|
||||
}
|
||||
|
||||
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.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.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.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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600811A RID: 33050 RVA: 0x001B6538 File Offset: 0x001B4738
|
||||
[Token(Token = "0x600811A")]
|
||||
[Address(RVA = "0x47FD40", Offset = "0x47E740", VA = "0x18047FD40")]
|
||||
public static string GetAlgorithmName(DerObjectIdentifier oid)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600811B RID: 33051 RVA: 0x001B654C File Offset: 0x001B474C
|
||||
[Token(Token = "0x600811B")]
|
||||
[Address(RVA = "0x47FAE0", Offset = "0x47E4E0", VA = "0x18047FAE0")]
|
||||
public static byte[] CalculateMac(string algorithm, ICipherParameters cp, byte[] input)
|
||||
{
|
||||
IMac mac = MacUtilities.GetMac(algorithm);
|
||||
int num = 0;
|
||||
if (num < input)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
int length = input.Length;
|
||||
return MacUtilities.DoFinal(mac);
|
||||
}
|
||||
|
||||
// Token: 0x0600811C RID: 33052 RVA: 0x001B6588 File Offset: 0x001B4788
|
||||
[Token(Token = "0x600811C")]
|
||||
[Address(RVA = "0x47FC10", Offset = "0x47E610", VA = "0x18047FC10")]
|
||||
public static byte[] DoFinal(IMac mac)
|
||||
{
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
// Token: 0x0600811D RID: 33053 RVA: 0x001B65A4 File Offset: 0x001B47A4
|
||||
[Token(Token = "0x600811D")]
|
||||
[Address(RVA = "0x47FCA0", Offset = "0x47E6A0", VA = "0x18047FCA0")]
|
||||
public static byte[] DoFinal(IMac mac, byte[] input)
|
||||
{
|
||||
int length = input.Length;
|
||||
return MacUtilities.DoFinal(mac);
|
||||
}
|
||||
|
||||
// Token: 0x04005B9D RID: 23453
|
||||
[Token(Token = "0x4005B9D")]
|
||||
private static readonly IDictionary algorithms;
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013D1 RID: 5073
|
||||
[Token(Token = "0x20013D1")]
|
||||
[Obsolete]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class NoSuchAlgorithmException : GeneralSecurityException
|
||||
{
|
||||
// Token: 0x0600811E RID: 33054 RVA: 0x001B65C4 File Offset: 0x001B47C4
|
||||
[Token(Token = "0x600811E")]
|
||||
[Address(RVA = "0x472680", Offset = "0x471080", VA = "0x180472680")]
|
||||
public NoSuchAlgorithmException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600811F RID: 33055 RVA: 0x001B65D8 File Offset: 0x001B47D8
|
||||
[Token(Token = "0x600811F")]
|
||||
[Address(RVA = "0x472760", Offset = "0x471160", VA = "0x180472760")]
|
||||
public NoSuchAlgorithmException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008120 RID: 33056 RVA: 0x001B65EC File Offset: 0x001B47EC
|
||||
[Token(Token = "0x6008120")]
|
||||
[Address(RVA = "0x4726E0", Offset = "0x4710E0", VA = "0x1804726E0")]
|
||||
public NoSuchAlgorithmException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+305
@@ -0,0 +1,305 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
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: 0x020013D2 RID: 5074
|
||||
[Token(Token = "0x20013D2")]
|
||||
[StructLayout(3)]
|
||||
public sealed class ParameterUtilities
|
||||
{
|
||||
// Token: 0x06008121 RID: 33057 RVA: 0x001B6604 File Offset: 0x001B4804
|
||||
[Token(Token = "0x6008121")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private ParameterUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008122 RID: 33058 RVA: 0x001B6618 File Offset: 0x001B4818
|
||||
[Token(Token = "0x6008122")]
|
||||
[Address(RVA = "0x4826A0", Offset = "0x4810A0", VA = "0x1804826A0")]
|
||||
static ParameterUtilities()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008122)
|
||||
|
||||
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_5F3:
|
||||
stelem:string([mscorlib]System.String, ldloc:string[](var_55_5AA), ldc.i4:int32(3), ldstr:string("DESEDE3"))
|
||||
call:void(ParameterUtilities::AddBasicIVSizeEntries, ldc.i4:int32(8), ldloc:string[](var_55_5AA))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008123 RID: 33059 RVA: 0x001B6C2C File Offset: 0x001B4E2C
|
||||
[Token(Token = "0x6008123")]
|
||||
[Address(RVA = "0x4814D0", Offset = "0x47FED0", VA = "0x1804814D0")]
|
||||
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: 0x06008124 RID: 33060 RVA: 0x001B6C70 File Offset: 0x001B4E70
|
||||
[Token(Token = "0x6008124")]
|
||||
[Address(RVA = "0x481630", Offset = "0x480030", VA = "0x180481630")]
|
||||
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: 0x06008125 RID: 33061 RVA: 0x001B6C9C File Offset: 0x001B4E9C
|
||||
[Token(Token = "0x6008125")]
|
||||
[Address(RVA = "0x482170", Offset = "0x480B70", VA = "0x180482170")]
|
||||
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: 0x06008126 RID: 33062 RVA: 0x001B6CC8 File Offset: 0x001B4EC8
|
||||
[Token(Token = "0x6008126")]
|
||||
[Address(RVA = "0x481BC0", Offset = "0x4805C0", VA = "0x180481BC0")]
|
||||
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: 0x06008127 RID: 33063 RVA: 0x001B6CF4 File Offset: 0x001B4EF4
|
||||
[Token(Token = "0x6008127")]
|
||||
[Address(RVA = "0x481910", Offset = "0x480310", VA = "0x180481910")]
|
||||
public static KeyParameter CreateKeyParameter(string algorithm, byte[] keyBytes)
|
||||
{
|
||||
int length = keyBytes.Length;
|
||||
int num = 0;
|
||||
return ParameterUtilities.CreateKeyParameter(algorithm, keyBytes, num, length);
|
||||
}
|
||||
|
||||
// Token: 0x06008128 RID: 33064 RVA: 0x001B6D1C File Offset: 0x001B4F1C
|
||||
[Token(Token = "0x6008128")]
|
||||
[Address(RVA = "0x481870", Offset = "0x480270", VA = "0x180481870")]
|
||||
public static KeyParameter CreateKeyParameter(DerObjectIdentifier algOid, byte[] keyBytes, int offset, int length)
|
||||
{
|
||||
return ParameterUtilities.CreateKeyParameter(algOid.identifier, keyBytes, offset, length);
|
||||
}
|
||||
|
||||
// Token: 0x06008129 RID: 33065 RVA: 0x001B6D40 File Offset: 0x001B4F40
|
||||
[Token(Token = "0x6008129")]
|
||||
[Address(RVA = "0x481990", Offset = "0x480390", VA = "0x180481990")]
|
||||
public static KeyParameter CreateKeyParameter(string algorithm, byte[] keyBytes, int offset, int length)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008129)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600812A RID: 33066 RVA: 0x001B6DB4 File Offset: 0x001B4FB4
|
||||
[Token(Token = "0x600812A")]
|
||||
[Address(RVA = "0x4825A0", Offset = "0x480FA0", VA = "0x1804825A0")]
|
||||
public static ICipherParameters GetCipherParameters(DerObjectIdentifier algOid, ICipherParameters key, Asn1Object asn1Params)
|
||||
{
|
||||
return ParameterUtilities.GetCipherParameters(algOid.identifier, key, asn1Params);
|
||||
}
|
||||
|
||||
// Token: 0x0600812B RID: 33067 RVA: 0x001B6DD4 File Offset: 0x001B4FD4
|
||||
[Token(Token = "0x600812B")]
|
||||
[Address(RVA = "0x482250", Offset = "0x480C50", VA = "0x180482250")]
|
||||
public static ICipherParameters GetCipherParameters(string algorithm, ICipherParameters key, Asn1Object asn1Params)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600812B)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600812C RID: 33068 RVA: 0x001B6EA0 File Offset: 0x001B50A0
|
||||
[Token(Token = "0x600812C")]
|
||||
[Address(RVA = "0x482100", Offset = "0x480B00", VA = "0x180482100")]
|
||||
public static Asn1Encodable GenerateParameters(DerObjectIdentifier algID, SecureRandom random)
|
||||
{
|
||||
return ParameterUtilities.GenerateParameters(algID.identifier, random);
|
||||
}
|
||||
|
||||
// Token: 0x0600812D RID: 33069 RVA: 0x001B6EC0 File Offset: 0x001B50C0
|
||||
[Token(Token = "0x600812D")]
|
||||
[Address(RVA = "0x481D60", Offset = "0x480760", VA = "0x180481D60")]
|
||||
public static Asn1Encodable GenerateParameters(string algorithm, SecureRandom random)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600812D)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600812E RID: 33070 RVA: 0x001B6F7C File Offset: 0x001B517C
|
||||
[Token(Token = "0x600812E")]
|
||||
[Address(RVA = "0x482620", Offset = "0x481020", VA = "0x180482620")]
|
||||
public static ICipherParameters WithRandom(ICipherParameters cp, SecureRandom random)
|
||||
{
|
||||
if (random != 0)
|
||||
{
|
||||
ParametersWithRandom parametersWithRandom = new ParametersWithRandom(cp, random);
|
||||
}
|
||||
return cp;
|
||||
}
|
||||
|
||||
// Token: 0x0600812F RID: 33071 RVA: 0x001B6F98 File Offset: 0x001B5198
|
||||
[Token(Token = "0x600812F")]
|
||||
[Address(RVA = "0x481730", Offset = "0x480130", VA = "0x180481730")]
|
||||
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: 0x06008130 RID: 33072 RVA: 0x001B6FC0 File Offset: 0x001B51C0
|
||||
[Token(Token = "0x6008130")]
|
||||
[Address(RVA = "0x481800", Offset = "0x480200", VA = "0x180481800")]
|
||||
private static byte[] CreateIV(SecureRandom random, int ivLength)
|
||||
{
|
||||
byte[] array = new byte[ivLength];
|
||||
double num = random.NextDouble();
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x06008131 RID: 33073 RVA: 0x001B6FE4 File Offset: 0x001B51E4
|
||||
[Token(Token = "0x6008131")]
|
||||
[Address(RVA = "0x481C50", Offset = "0x480650", VA = "0x180481C50")]
|
||||
private static int FindBasicIVSize(string canonicalName)
|
||||
{
|
||||
IDictionary dictionary = ParameterUtilities.basicIVSizes;
|
||||
IDictionary dictionary2 = ParameterUtilities.basicIVSizes;
|
||||
IDictionary dictionary3 = ParameterUtilities.algorithms;
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Token: 0x04005B9E RID: 23454
|
||||
[Token(Token = "0x4005B9E")]
|
||||
private static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x04005B9F RID: 23455
|
||||
[Token(Token = "0x4005B9F")]
|
||||
private static readonly IDictionary basicIVSizes;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013C2 RID: 5058
|
||||
[Token(Token = "0x20013C2")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class PasswordException : IOException
|
||||
{
|
||||
// Token: 0x060080C3 RID: 32963 RVA: 0x001B37A8 File Offset: 0x001B19A8
|
||||
[Token(Token = "0x60080C3")]
|
||||
[Address(RVA = "0x47A3A0", Offset = "0x478DA0", VA = "0x18047A3A0")]
|
||||
public PasswordException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060080C4 RID: 32964 RVA: 0x001B37BC File Offset: 0x001B19BC
|
||||
[Token(Token = "0x60080C4")]
|
||||
[Address(RVA = "0x47A3B0", Offset = "0x478DB0", VA = "0x18047A3B0")]
|
||||
public PasswordException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,744 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
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;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013D3 RID: 5075
|
||||
[Token(Token = "0x20013D3")]
|
||||
[StructLayout(3)]
|
||||
public sealed class PbeUtilities
|
||||
{
|
||||
// Token: 0x06008132 RID: 33074 RVA: 0x001B700C File Offset: 0x001B520C
|
||||
[Token(Token = "0x6008132")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private PbeUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008133 RID: 33075 RVA: 0x001B7020 File Offset: 0x001B5220
|
||||
[Token(Token = "0x6008133")]
|
||||
[Address(RVA = "0x486CD0", Offset = "0x4856D0", VA = "0x180486CD0")]
|
||||
static PbeUtilities()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008133)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Security.PbeUtilities::.cctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IDictionary(var_1_07, call:IDictionary(Platform::CreateHashtable))
|
||||
stsfld:IDictionary(PbeUtilities::algorithms, ldloc:IDictionary(var_1_07))
|
||||
stloc:IDictionary(var_3_15, call:IDictionary(Platform::CreateHashtable))
|
||||
stsfld:IDictionary(PbeUtilities::algorithmType, ldloc:IDictionary(var_3_15))
|
||||
stsfld:IDictionary(PbeUtilities::oids, call:IDictionary(Platform::CreateHashtable))
|
||||
stloc:IDictionary(var_5_2E, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_7_35, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_9_3C, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_10_43, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdPbeS2))
|
||||
stloc:IDictionary(var_12_4A, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_14_51, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_15_58, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD2AndDesCbc))
|
||||
stloc:IDictionary(var_17_5F, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_19_66, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_20_6D, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD2AndRC2Cbc))
|
||||
stloc:IDictionary(var_22_74, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_24_7B, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_25_82, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD5AndDesCbc))
|
||||
stloc:IDictionary(var_27_89, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_29_90, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_30_97, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithMD5AndRC2Cbc))
|
||||
stloc:IDictionary(var_32_9E, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_34_A5, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_36_AC, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_38_B3, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_40_BA, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_41_C1, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithSha1AndDesCbc))
|
||||
stloc:IDictionary(var_43_C8, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_45_CF, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_47_D6, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_49_DD, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_51_E4, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_52_EB, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithSha1AndRC2Cbc))
|
||||
stloc:IDictionary(var_54_F2, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_56_F9, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_57_100, ldsfld:DerObjectIdentifier(BCObjectIdentifiers::bc_pbe_sha1_pkcs12_aes128_cbc))
|
||||
stloc:IDictionary(var_59_107, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_60_10E, ldsfld:DerObjectIdentifier(BCObjectIdentifiers::bc_pbe_sha1_pkcs12_aes192_cbc))
|
||||
stloc:IDictionary(var_62_115, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_63_11C, ldsfld:DerObjectIdentifier(BCObjectIdentifiers::bc_pbe_sha1_pkcs12_aes256_cbc))
|
||||
stloc:IDictionary(var_65_123, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_66_12A, ldsfld:DerObjectIdentifier(BCObjectIdentifiers::bc_pbe_sha256_pkcs12_aes128_cbc))
|
||||
stloc:IDictionary(var_68_131, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_69_138, ldsfld:DerObjectIdentifier(BCObjectIdentifiers::bc_pbe_sha256_pkcs12_aes192_cbc))
|
||||
stloc:IDictionary(var_71_13F, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_72_146, ldsfld:DerObjectIdentifier(BCObjectIdentifiers::bc_pbe_sha256_pkcs12_aes256_cbc))
|
||||
stloc:IDictionary(var_74_14D, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_76_154, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_78_15B, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_80_162, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_81_169, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd128BitRC4))
|
||||
stloc:IDictionary(var_83_170, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_85_177, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_87_17E, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_89_185, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_90_18C, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd40BitRC4))
|
||||
stloc:IDictionary(var_92_193, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_94_19A, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_96_1A1, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_98_1A8, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_100_1AF, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_102_1B6, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_104_1BD, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_105_1C4, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd3KeyTripleDesCbc))
|
||||
stloc:IDictionary(var_107_1CB, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_109_1D2, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_111_1D9, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_113_1E0, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_115_1E7, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_117_1EE, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_119_1F5, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_120_1FC, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd2KeyTripleDesCbc))
|
||||
stloc:IDictionary(var_122_203, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_124_20A, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_126_211, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_128_218, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_129_21F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbeWithShaAnd128BitRC2Cbc))
|
||||
stloc:IDictionary(var_131_226, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_133_22D, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_135_234, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_137_23B, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_138_242, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::PbewithShaAnd40BitRC2Cbc))
|
||||
stloc:IDictionary(var_140_249, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_142_250, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_144_257, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_146_25E, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_148_265, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_150_26C, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_152_273, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_154_27A, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_156_281, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_158_288, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
stloc:IDictionary(var_160_28F, ldsfld:IDictionary(PbeUtilities::algorithms))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008134 RID: 33076 RVA: 0x001B72C0 File Offset: 0x001B54C0
|
||||
[Token(Token = "0x6008134")]
|
||||
[Address(RVA = "0x486B20", Offset = "0x485520", VA = "0x180486B20")]
|
||||
private static PbeParametersGenerator MakePbeGenerator(string type, IDigest digest, byte[] key, byte[] salt, int iterationCount)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008134)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.PbeParametersGenerator BestHTTP.SecureProtocol.Org.BouncyCastle.Security.PbeUtilities::MakePbeGenerator(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IDigest,System.Byte[],System.Byte[],System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_5D:
|
||||
stloc:ArgumentException(var_5_69, newobj:ArgumentException(ArgumentException::.ctor, ldloc:string(var_4), ldstr:string("type")))
|
||||
}
|
||||
|
||||
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.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008135 RID: 33077 RVA: 0x001B7338 File Offset: 0x001B5538
|
||||
[Token(Token = "0x6008135")]
|
||||
[Address(RVA = "0x486320", Offset = "0x484D20", VA = "0x180486320")]
|
||||
public static DerObjectIdentifier GetObjectIdentifier(string mechanism)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.algorithms;
|
||||
text = Platform.ToUpperInvariant(mechanism);
|
||||
if (text == 0)
|
||||
{
|
||||
goto IL_2A;
|
||||
}
|
||||
}
|
||||
while (text == 0);
|
||||
IDictionary dictionary2 = PbeUtilities.oids;
|
||||
IDictionary dictionary3 = PbeUtilities.algorithms;
|
||||
IL_2A:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001505 RID: 5381
|
||||
// (get) Token: 0x06008136 RID: 33078 RVA: 0x001B7378 File Offset: 0x001B5578
|
||||
[Token(Token = "0x17001505")]
|
||||
public static ICollection Algorithms
|
||||
{
|
||||
[Token(Token = "0x6008136")]
|
||||
[Address(RVA = "0x4895A0", Offset = "0x487FA0", VA = "0x1804895A0")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.oids;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008137 RID: 33079 RVA: 0x001B7390 File Offset: 0x001B5590
|
||||
[Token(Token = "0x6008137")]
|
||||
[Address(RVA = "0x486730", Offset = "0x485130", VA = "0x180486730")]
|
||||
public static bool IsPkcs12(string algorithm)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.algorithms;
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
if (text == 0)
|
||||
{
|
||||
goto IL_1B;
|
||||
}
|
||||
}
|
||||
while (text == 0);
|
||||
IDictionary dictionary2 = PbeUtilities.algorithmType;
|
||||
IL_1B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008138 RID: 33080 RVA: 0x001B73C0 File Offset: 0x001B55C0
|
||||
[Token(Token = "0x6008138")]
|
||||
[Address(RVA = "0x486880", Offset = "0x485280", VA = "0x180486880")]
|
||||
public static bool IsPkcs5Scheme1(string algorithm)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.algorithms;
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
if (text == 0)
|
||||
{
|
||||
goto IL_1B;
|
||||
}
|
||||
}
|
||||
while (text == 0);
|
||||
IDictionary dictionary2 = PbeUtilities.algorithmType;
|
||||
IL_1B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008139 RID: 33081 RVA: 0x001B73F0 File Offset: 0x001B55F0
|
||||
[Token(Token = "0x6008139")]
|
||||
[Address(RVA = "0x4869D0", Offset = "0x4853D0", VA = "0x1804869D0")]
|
||||
public static bool IsPkcs5Scheme2(string algorithm)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.algorithms;
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
if (text == 0)
|
||||
{
|
||||
goto IL_1B;
|
||||
}
|
||||
}
|
||||
while (text == 0);
|
||||
IDictionary dictionary2 = PbeUtilities.algorithmType;
|
||||
IL_1B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600813A RID: 33082 RVA: 0x001B7420 File Offset: 0x001B5620
|
||||
[Token(Token = "0x600813A")]
|
||||
[Address(RVA = "0x4864B0", Offset = "0x484EB0", VA = "0x1804864B0")]
|
||||
public static bool IsOpenSsl(string algorithm)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.algorithms;
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
if (text == 0)
|
||||
{
|
||||
goto IL_1B;
|
||||
}
|
||||
}
|
||||
while (text == 0);
|
||||
IDictionary dictionary2 = PbeUtilities.algorithmType;
|
||||
IL_1B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600813B RID: 33083 RVA: 0x001B7450 File Offset: 0x001B5650
|
||||
[Token(Token = "0x600813B")]
|
||||
[Address(RVA = "0x486600", Offset = "0x485000", VA = "0x180486600")]
|
||||
public static bool IsPbeAlgorithm(string algorithm)
|
||||
{
|
||||
string text;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.algorithms;
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
if (text == 0)
|
||||
{
|
||||
goto IL_1D;
|
||||
}
|
||||
}
|
||||
while (text == 0);
|
||||
IDictionary dictionary2 = PbeUtilities.algorithmType;
|
||||
bool flag;
|
||||
return flag;
|
||||
IL_1D:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600813C RID: 33084 RVA: 0x001B7484 File Offset: 0x001B5684
|
||||
[Token(Token = "0x600813C")]
|
||||
[Address(RVA = "0x484DE0", Offset = "0x4837E0", VA = "0x180484DE0")]
|
||||
public static Asn1Encodable GenerateAlgorithmParameters(DerObjectIdentifier algorithmOid, byte[] salt, int iterationCount)
|
||||
{
|
||||
string identifier = algorithmOid.identifier;
|
||||
if (!PbeUtilities.IsPkcs12(identifier))
|
||||
{
|
||||
if (!PbeUtilities.IsPkcs5Scheme2(identifier))
|
||||
{
|
||||
PbeParameter pbeParameter = new PbeParameter(salt, iterationCount);
|
||||
}
|
||||
Pbkdf2Params pbkdf2Params = new Pbkdf2Params(salt, iterationCount);
|
||||
}
|
||||
Pkcs12PbeParams pkcs12PbeParams = new Pkcs12PbeParams(salt, iterationCount);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600813D RID: 33085 RVA: 0x001B74C8 File Offset: 0x001B56C8
|
||||
[Token(Token = "0x600813D")]
|
||||
[Address(RVA = "0x484F60", Offset = "0x483960", VA = "0x180484F60")]
|
||||
public static Asn1Encodable GenerateAlgorithmParameters(string algorithm, byte[] salt, int iterationCount)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600813D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Security.PbeUtilities::GenerateAlgorithmParameters(System.String,System.Byte[],System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:Pkcs12PbeParams(var_2_29, newobj:Pkcs12PbeParams(Pkcs12PbeParams::.ctor, ldloc:uint8[](salt), ldloc:int32(iterationCount)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600813E RID: 33086 RVA: 0x001B7500 File Offset: 0x001B5700
|
||||
[Token(Token = "0x600813E")]
|
||||
[Address(RVA = "0x485340", Offset = "0x483D40", VA = "0x180485340")]
|
||||
public static ICipherParameters GenerateCipherParameters(DerObjectIdentifier algorithmOid, char[] password, Asn1Encodable pbeParameters)
|
||||
{
|
||||
string identifier = algorithmOid.identifier;
|
||||
int num = 0;
|
||||
return PbeUtilities.GenerateCipherParameters(identifier, password, num != 0, pbeParameters);
|
||||
}
|
||||
|
||||
// Token: 0x0600813F RID: 33087 RVA: 0x001B7528 File Offset: 0x001B5728
|
||||
[Token(Token = "0x600813F")]
|
||||
[Address(RVA = "0x485090", Offset = "0x483A90", VA = "0x180485090")]
|
||||
public static ICipherParameters GenerateCipherParameters(DerObjectIdentifier algorithmOid, char[] password, bool wrongPkcs12Zero, Asn1Encodable pbeParameters)
|
||||
{
|
||||
return PbeUtilities.GenerateCipherParameters(algorithmOid.identifier, password, wrongPkcs12Zero, pbeParameters);
|
||||
}
|
||||
|
||||
// Token: 0x06008140 RID: 33088 RVA: 0x001B754C File Offset: 0x001B574C
|
||||
[Token(Token = "0x6008140")]
|
||||
[Address(RVA = "0x485130", Offset = "0x483B30", VA = "0x180485130")]
|
||||
public static ICipherParameters GenerateCipherParameters(AlgorithmIdentifier algID, char[] password)
|
||||
{
|
||||
Asn1Object asn1Object = algID.ToAsn1Object();
|
||||
DerObjectIdentifier objectID = algID.ObjectID;
|
||||
ICipherParameters cipherParameters;
|
||||
return cipherParameters;
|
||||
}
|
||||
|
||||
// Token: 0x06008141 RID: 33089 RVA: 0x001B7570 File Offset: 0x001B5770
|
||||
[Token(Token = "0x6008141")]
|
||||
[Address(RVA = "0x485270", Offset = "0x483C70", VA = "0x180485270")]
|
||||
public static ICipherParameters GenerateCipherParameters(AlgorithmIdentifier algID, char[] password, bool wrongPkcs12Zero)
|
||||
{
|
||||
Asn1Object asn1Object = algID.ToAsn1Object();
|
||||
DerObjectIdentifier objectID = algID.ObjectID;
|
||||
ICipherParameters cipherParameters;
|
||||
return cipherParameters;
|
||||
}
|
||||
|
||||
// Token: 0x06008142 RID: 33090 RVA: 0x001B7594 File Offset: 0x001B5794
|
||||
[Token(Token = "0x6008142")]
|
||||
[Address(RVA = "0x4851F0", Offset = "0x483BF0", VA = "0x1804851F0")]
|
||||
public static ICipherParameters GenerateCipherParameters(string algorithm, char[] password, Asn1Encodable pbeParameters)
|
||||
{
|
||||
int num = 0;
|
||||
return PbeUtilities.GenerateCipherParameters(algorithm, password, num != 0, pbeParameters);
|
||||
}
|
||||
|
||||
// Token: 0x06008143 RID: 33091 RVA: 0x001B75AC File Offset: 0x001B57AC
|
||||
[Token(Token = "0x6008143")]
|
||||
[Address(RVA = "0x4853D0", Offset = "0x483DD0", VA = "0x1804853D0")]
|
||||
public static ICipherParameters GenerateCipherParameters(string algorithm, char[] password, bool wrongPkcs12Zero, Asn1Encodable pbeParameters)
|
||||
{
|
||||
int num;
|
||||
for (;;)
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.algorithms;
|
||||
string text = Platform.ToUpperInvariant(algorithm);
|
||||
num = 0;
|
||||
if (text == 0 || text != 0)
|
||||
{
|
||||
if (PbeUtilities.IsPkcs12(num))
|
||||
{
|
||||
goto IL_4D;
|
||||
}
|
||||
int num2;
|
||||
if (!PbeUtilities.IsPkcs5Scheme2(num))
|
||||
{
|
||||
PbeParameter instance = PbeParameter.GetInstance(pbeParameters);
|
||||
byte[] salt = instance.GetSalt();
|
||||
num2 = instance.IterationCount.IntValue;
|
||||
byte[] array = PbeParametersGenerator.Pkcs5PasswordToBytes(password);
|
||||
goto IL_4D;
|
||||
}
|
||||
IL_6C:
|
||||
if (PbeUtilities.IsPkcs5Scheme2(num))
|
||||
{
|
||||
goto IL_1D3;
|
||||
}
|
||||
if (Platform.StartsWith(num, "PBEwithSHA-1"))
|
||||
{
|
||||
goto IL_14E;
|
||||
}
|
||||
if (Platform.StartsWith(num, "PBEwithSHA-256"))
|
||||
{
|
||||
goto IL_128;
|
||||
}
|
||||
if (Platform.StartsWith(num, "PBEwithMD5"))
|
||||
{
|
||||
goto IL_FA;
|
||||
}
|
||||
if (Platform.StartsWith(num, "PBEwithMD2"))
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (!Platform.StartsWith(num, "PBEwithHmac"))
|
||||
{
|
||||
goto IL_29A;
|
||||
}
|
||||
string text2;
|
||||
IDigest digest = DigestUtilities.GetDigest(text2);
|
||||
IDictionary dictionary2 = PbeUtilities.algorithmType;
|
||||
if (digest == 0 || digest != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
IL_4D:
|
||||
Pkcs12PbeParams instance2 = Pkcs12PbeParams.GetInstance(pbeParameters);
|
||||
byte[] iv = instance2.GetIV();
|
||||
num2 = instance2.Iterations.IntValue;
|
||||
goto IL_6C;
|
||||
}
|
||||
}
|
||||
IDictionary dictionary3 = PbeUtilities.algorithmType;
|
||||
MD2Digest md2Digest = new MD2Digest();
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
goto IL_19A;
|
||||
}
|
||||
IL_FA:
|
||||
IDictionary dictionary4 = PbeUtilities.algorithmType;
|
||||
MD5Digest md5Digest = new MD5Digest();
|
||||
bool flag2;
|
||||
bool flag3;
|
||||
if (flag2 || flag3)
|
||||
{
|
||||
goto IL_19A;
|
||||
}
|
||||
bool flag4;
|
||||
if (flag4)
|
||||
{
|
||||
goto IL_1C0;
|
||||
}
|
||||
bool flag5;
|
||||
if (flag5)
|
||||
{
|
||||
goto IL_1AD;
|
||||
}
|
||||
IL_128:
|
||||
IDictionary dictionary5 = PbeUtilities.algorithmType;
|
||||
Sha256Digest sha256Digest = new Sha256Digest();
|
||||
bool flag6;
|
||||
if (flag6)
|
||||
{
|
||||
goto IL_1C0;
|
||||
}
|
||||
bool flag7;
|
||||
if (flag7)
|
||||
{
|
||||
goto IL_1AD;
|
||||
}
|
||||
bool flag8;
|
||||
if (!flag8)
|
||||
{
|
||||
goto IL_29A;
|
||||
}
|
||||
IL_14E:
|
||||
IDictionary dictionary6 = PbeUtilities.algorithmType;
|
||||
Sha1Digest sha1Digest = new Sha1Digest();
|
||||
bool flag9;
|
||||
if (flag9)
|
||||
{
|
||||
goto IL_1C0;
|
||||
}
|
||||
bool flag10;
|
||||
if (flag10)
|
||||
{
|
||||
goto IL_1AD;
|
||||
}
|
||||
bool flag11;
|
||||
while (flag11)
|
||||
{
|
||||
}
|
||||
bool flag12;
|
||||
bool flag13;
|
||||
if (flag12 || flag13)
|
||||
{
|
||||
goto IL_1AD;
|
||||
}
|
||||
bool flag14;
|
||||
bool flag15;
|
||||
bool flag16;
|
||||
bool flag17;
|
||||
bool flag18;
|
||||
bool flag19;
|
||||
if (!flag14 && !flag15 && !flag16 && !flag17 && !flag18 && !flag19)
|
||||
{
|
||||
goto IL_29A;
|
||||
}
|
||||
IL_19A:
|
||||
PbeParametersGenerator pbeParametersGenerator;
|
||||
ICipherParameters cipherParameters = pbeParametersGenerator.GenerateDerivedParameters("DESEDE", 192);
|
||||
IL_1AD:
|
||||
ICipherParameters cipherParameters2 = pbeParametersGenerator.GenerateDerivedParameters("AES", 128);
|
||||
IL_1C0:
|
||||
ICipherParameters cipherParameters3 = pbeParametersGenerator.GenerateDerivedParameters("AES", 128);
|
||||
IL_1D3:
|
||||
PbeS2Parameters pbeS2Parameters;
|
||||
EncryptionScheme scheme = pbeS2Parameters.scheme;
|
||||
Asn1Object asn1Object = scheme.ToAsn1Object();
|
||||
Asn1Object asn1Object2 = scheme.ObjectID.ToAsn1Object();
|
||||
Pbkdf2Params instance3 = Pbkdf2Params.GetInstance(pbeS2Parameters.func.ObjectID.ToAsn1Object());
|
||||
Asn1OctetString instance4 = Asn1OctetString.GetInstance(asn1Object2);
|
||||
Stream octetStream = instance4.GetOctetStream();
|
||||
byte[] iv2 = RC2CbcParameter.GetInstance(instance4).GetIV();
|
||||
byte[] salt2 = instance3.GetSalt();
|
||||
int intValue = instance3.IterationCount.IntValue;
|
||||
byte[] array2 = PbeParametersGenerator.Pkcs5PasswordToBytes(password);
|
||||
if (instance3.KeyLength != 0)
|
||||
{
|
||||
int intValue2 = instance3.KeyLength.IntValue;
|
||||
}
|
||||
IDictionary dictionary7 = PbeUtilities.algorithmType;
|
||||
ParametersWithIV parametersWithIV;
|
||||
if (iv2 != 0)
|
||||
{
|
||||
byte[] array3 = new byte[iv2.Length];
|
||||
if (!Arrays.AreEqual(iv2, array3))
|
||||
{
|
||||
ICipherParameters cipherParameters4;
|
||||
parametersWithIV = new ParametersWithIV(cipherParameters4, iv2);
|
||||
}
|
||||
}
|
||||
IL_29A:
|
||||
int length = array2.Length;
|
||||
int num3 = 0;
|
||||
Array.Clear(array2, num3, length);
|
||||
return PbeUtilities.FixDesParity(num, parametersWithIV);
|
||||
}
|
||||
|
||||
// Token: 0x06008144 RID: 33092 RVA: 0x001B7878 File Offset: 0x001B5A78
|
||||
[Token(Token = "0x6008144")]
|
||||
[Address(RVA = "0x484950", Offset = "0x483350", VA = "0x180484950")]
|
||||
public static object CreateEngine(DerObjectIdentifier algorithmOid)
|
||||
{
|
||||
return PbeUtilities.CreateEngine(algorithmOid.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x06008145 RID: 33093 RVA: 0x001B7898 File Offset: 0x001B5A98
|
||||
[Token(Token = "0x6008145")]
|
||||
[Address(RVA = "0x4849B0", Offset = "0x4833B0", VA = "0x1804849B0")]
|
||||
public static object CreateEngine(AlgorithmIdentifier algID)
|
||||
{
|
||||
Asn1Object asn1Object = algID.ToAsn1Object();
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
object obj;
|
||||
return obj;
|
||||
}
|
||||
Asn1Object asn1Object2 = PbeS2Parameters.GetInstance(algID.ObjectID.ToAsn1Object()).scheme.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008146 RID: 33094 RVA: 0x001B78D4 File Offset: 0x001B5AD4
|
||||
[Token(Token = "0x6008146")]
|
||||
[Address(RVA = "0x4844C0", Offset = "0x482EC0", VA = "0x1804844C0")]
|
||||
public static object CreateEngine(string algorithm)
|
||||
{
|
||||
string text;
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.algorithms;
|
||||
text = Platform.ToUpperInvariant(algorithm);
|
||||
num = 0;
|
||||
}
|
||||
while (text != 0 && text == 0);
|
||||
if (!Platform.StartsWith(num, "PBEwithHmac"))
|
||||
{
|
||||
if (Platform.StartsWith(num, "PBEwithMD2") || Platform.StartsWith(num, "PBEwithMD5") || Platform.StartsWith(num, "PBEwithSHA-1") || Platform.StartsWith(num, "PBEwithSHA-256"))
|
||||
{
|
||||
if (Platform.EndsWith(num, "AES-CBC-BC") || Platform.EndsWith(num, "AES-CBC-OPENSSL"))
|
||||
{
|
||||
goto IL_E9;
|
||||
}
|
||||
if (Platform.EndsWith(num, "DES-CBC"))
|
||||
{
|
||||
goto IL_DD;
|
||||
}
|
||||
if (Platform.EndsWith(num, "DESEDE-CBC"))
|
||||
{
|
||||
goto IL_D1;
|
||||
}
|
||||
if (Platform.EndsWith(num, "RC2-CBC"))
|
||||
{
|
||||
goto IL_C5;
|
||||
}
|
||||
if (!Platform.EndsWith(num, "RC4"))
|
||||
{
|
||||
}
|
||||
}
|
||||
IBufferedCipher cipher = CipherUtilities.GetCipher("RC4");
|
||||
IL_C5:
|
||||
IBufferedCipher cipher2 = CipherUtilities.GetCipher("RC2/CBC");
|
||||
IL_D1:
|
||||
IBufferedCipher cipher3 = CipherUtilities.GetCipher("DESEDE/CBC");
|
||||
IL_DD:
|
||||
IBufferedCipher cipher4 = CipherUtilities.GetCipher("DES/CBC");
|
||||
IL_E9:
|
||||
IBufferedCipher cipher5 = CipherUtilities.GetCipher("AES/CBC");
|
||||
}
|
||||
string text2;
|
||||
IMac mac = MacUtilities.GetMac("HMAC/" + text2);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008147 RID: 33095 RVA: 0x001B79F4 File Offset: 0x001B5BF4
|
||||
[Token(Token = "0x6008147")]
|
||||
[Address(RVA = "0x486270", Offset = "0x484C70", VA = "0x180486270")]
|
||||
public static string GetEncodingName(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = PbeUtilities.algorithms;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008148 RID: 33096 RVA: 0x001B7A0C File Offset: 0x001B5C0C
|
||||
[Token(Token = "0x6008148")]
|
||||
[Address(RVA = "0x484B50", Offset = "0x483550", VA = "0x180484B50")]
|
||||
private static ICipherParameters FixDesParity(string mechanism, ICipherParameters parameters)
|
||||
{
|
||||
while (Platform.EndsWith(mechanism, "DES-CBC") || Platform.EndsWith(mechanism, "DESEDE-CBC"))
|
||||
{
|
||||
byte[] array;
|
||||
if (parameters == 0)
|
||||
{
|
||||
if (parameters == 0 || parameters == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
DesParameters.SetOddParity(array);
|
||||
KeyParameter keyParameter = new KeyParameter(array);
|
||||
}
|
||||
byte b = array[33];
|
||||
ICipherParameters cipherParameters;
|
||||
byte[] array2;
|
||||
ParametersWithIV parametersWithIV = new ParametersWithIV(cipherParameters, array2);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
return parameters;
|
||||
}
|
||||
|
||||
// Token: 0x04005BA0 RID: 23456
|
||||
[Token(Token = "0x4005BA0")]
|
||||
private const string Pkcs5S1 = "Pkcs5S1";
|
||||
|
||||
// Token: 0x04005BA1 RID: 23457
|
||||
[Token(Token = "0x4005BA1")]
|
||||
private const string Pkcs5S2 = "Pkcs5S2";
|
||||
|
||||
// Token: 0x04005BA2 RID: 23458
|
||||
[Token(Token = "0x4005BA2")]
|
||||
private const string Pkcs12 = "Pkcs12";
|
||||
|
||||
// Token: 0x04005BA3 RID: 23459
|
||||
[Token(Token = "0x4005BA3")]
|
||||
private const string OpenSsl = "OpenSsl";
|
||||
|
||||
// Token: 0x04005BA4 RID: 23460
|
||||
[Token(Token = "0x4005BA4")]
|
||||
private static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x04005BA5 RID: 23461
|
||||
[Token(Token = "0x4005BA5")]
|
||||
private static readonly IDictionary algorithmType;
|
||||
|
||||
// Token: 0x04005BA6 RID: 23462
|
||||
[Token(Token = "0x4005BA6")]
|
||||
private static readonly IDictionary oids;
|
||||
}
|
||||
}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013D4 RID: 5076
|
||||
[Token(Token = "0x20013D4")]
|
||||
[StructLayout(3)]
|
||||
public sealed class PrivateKeyFactory
|
||||
{
|
||||
// Token: 0x06008149 RID: 33097 RVA: 0x001B7A78 File Offset: 0x001B5C78
|
||||
[Token(Token = "0x6008149")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private PrivateKeyFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600814A RID: 33098 RVA: 0x001B7A8C File Offset: 0x001B5C8C
|
||||
[Token(Token = "0x600814A")]
|
||||
[Address(RVA = "0x48A5A0", Offset = "0x488FA0", VA = "0x18048A5A0")]
|
||||
public static AsymmetricKeyParameter CreateKey(byte[] privateKeyInfoData)
|
||||
{
|
||||
return PrivateKeyFactory.CreateKey(PrivateKeyInfo.GetInstance(Asn1Object.FromByteArray(privateKeyInfoData)));
|
||||
}
|
||||
|
||||
// Token: 0x0600814B RID: 33099 RVA: 0x001B7AAC File Offset: 0x001B5CAC
|
||||
[Token(Token = "0x600814B")]
|
||||
[Address(RVA = "0x48A5D0", Offset = "0x488FD0", VA = "0x18048A5D0")]
|
||||
public static AsymmetricKeyParameter CreateKey(Stream inStr)
|
||||
{
|
||||
return PrivateKeyFactory.CreateKey(PrivateKeyInfo.GetInstance(Asn1Object.FromStream(inStr)));
|
||||
}
|
||||
|
||||
// Token: 0x0600814C RID: 33100 RVA: 0x001B7ACC File Offset: 0x001B5CCC
|
||||
[Token(Token = "0x600814C")]
|
||||
[Address(RVA = "0x489620", Offset = "0x488020", VA = "0x180489620")]
|
||||
public static AsymmetricKeyParameter CreateKey(PrivateKeyInfo keyInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600814C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Security.PrivateKeyFactory::CreateKey(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PrivateKeyInfo)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2D9:
|
||||
stloc:ArgumentException(var_91_2E3, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Unrecognized curve OID for GostR3410x2001 private key")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600814D RID: 33101 RVA: 0x001B7DC0 File Offset: 0x001B5FC0
|
||||
[Token(Token = "0x600814D")]
|
||||
[Address(RVA = "0x48A760", Offset = "0x489160", VA = "0x18048A760")]
|
||||
private static byte[] GetRawKey(PrivateKeyInfo keyInfo, int expectedSize)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600814D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Security.PrivateKeyFactory::GetRawKey(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PrivateKeyInfo,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1A:
|
||||
stloc:SecurityUtilityException(var_1_24, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, ldstr:string("private key encoding has incorrect length")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600814E RID: 33102 RVA: 0x001B7DF4 File Offset: 0x001B5FF4
|
||||
[Token(Token = "0x600814E")]
|
||||
[Address(RVA = "0x48A680", Offset = "0x489080", VA = "0x18048A680")]
|
||||
public static AsymmetricKeyParameter DecryptKey(char[] passPhrase, EncryptedPrivateKeyInfo encInfo)
|
||||
{
|
||||
return PrivateKeyFactory.CreateKey(PrivateKeyInfoFactory.CreatePrivateKeyInfo(passPhrase, encInfo));
|
||||
}
|
||||
|
||||
// Token: 0x0600814F RID: 33103 RVA: 0x001B7E10 File Offset: 0x001B6010
|
||||
[Token(Token = "0x600814F")]
|
||||
[Address(RVA = "0x48A600", Offset = "0x489000", VA = "0x18048A600")]
|
||||
public static AsymmetricKeyParameter DecryptKey(char[] passPhrase, byte[] encryptedPrivateKeyInfoData)
|
||||
{
|
||||
EncryptedPrivateKeyInfo instance = EncryptedPrivateKeyInfo.GetInstance(Asn1Object.FromByteArray(encryptedPrivateKeyInfoData));
|
||||
return PrivateKeyFactory.CreateKey(PrivateKeyInfoFactory.CreatePrivateKeyInfo(passPhrase, instance));
|
||||
}
|
||||
|
||||
// Token: 0x06008150 RID: 33104 RVA: 0x001B7E38 File Offset: 0x001B6038
|
||||
[Token(Token = "0x6008150")]
|
||||
[Address(RVA = "0x48A6A0", Offset = "0x4890A0", VA = "0x18048A6A0")]
|
||||
public static AsymmetricKeyParameter DecryptKey(char[] passPhrase, Stream encryptedPrivateKeyInfoStream)
|
||||
{
|
||||
EncryptedPrivateKeyInfo instance = EncryptedPrivateKeyInfo.GetInstance(Asn1Object.FromStream(encryptedPrivateKeyInfoStream));
|
||||
return PrivateKeyFactory.CreateKey(PrivateKeyInfoFactory.CreatePrivateKeyInfo(passPhrase, instance));
|
||||
}
|
||||
|
||||
// Token: 0x06008151 RID: 33105 RVA: 0x001B7E60 File Offset: 0x001B6060
|
||||
[Token(Token = "0x6008151")]
|
||||
[Address(RVA = "0x48A640", Offset = "0x489040", VA = "0x18048A640")]
|
||||
private static AsymmetricKeyParameter DecryptKey(char[] passPhrase, Asn1Object asn1Object)
|
||||
{
|
||||
EncryptedPrivateKeyInfo instance = EncryptedPrivateKeyInfo.GetInstance(asn1Object);
|
||||
return PrivateKeyFactory.CreateKey(PrivateKeyInfoFactory.CreatePrivateKeyInfo(passPhrase, instance));
|
||||
}
|
||||
|
||||
// Token: 0x06008152 RID: 33106 RVA: 0x001B7E80 File Offset: 0x001B6080
|
||||
[Token(Token = "0x6008152")]
|
||||
[Address(RVA = "0x48A720", Offset = "0x489120", VA = "0x18048A720")]
|
||||
public static byte[] EncryptKey(DerObjectIdentifier algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
|
||||
{
|
||||
EncryptedPrivateKeyInfo encryptedPrivateKeyInfo;
|
||||
return encryptedPrivateKeyInfo.GetEncoded();
|
||||
}
|
||||
|
||||
// Token: 0x06008153 RID: 33107 RVA: 0x001B7E9C File Offset: 0x001B609C
|
||||
[Token(Token = "0x6008153")]
|
||||
[Address(RVA = "0x48A6E0", Offset = "0x4890E0", VA = "0x18048A6E0")]
|
||||
public static byte[] EncryptKey(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
|
||||
{
|
||||
EncryptedPrivateKeyInfo encryptedPrivateKeyInfo;
|
||||
return encryptedPrivateKeyInfo.GetEncoded();
|
||||
}
|
||||
}
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
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;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013D5 RID: 5077
|
||||
[Token(Token = "0x20013D5")]
|
||||
[StructLayout(3)]
|
||||
public sealed class PublicKeyFactory
|
||||
{
|
||||
// Token: 0x06008154 RID: 33108 RVA: 0x001B7EB8 File Offset: 0x001B60B8
|
||||
[Token(Token = "0x6008154")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private PublicKeyFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008155 RID: 33109 RVA: 0x001B7ECC File Offset: 0x001B60CC
|
||||
[Token(Token = "0x6008155")]
|
||||
[Address(RVA = "0x48BCC0", Offset = "0x48A6C0", VA = "0x18048BCC0")]
|
||||
public static AsymmetricKeyParameter CreateKey(byte[] keyInfoData)
|
||||
{
|
||||
return PublicKeyFactory.CreateKey(SubjectPublicKeyInfo.GetInstance(Asn1Object.FromByteArray(keyInfoData)));
|
||||
}
|
||||
|
||||
// Token: 0x06008156 RID: 33110 RVA: 0x001B7EEC File Offset: 0x001B60EC
|
||||
[Token(Token = "0x6008156")]
|
||||
[Address(RVA = "0x48A820", Offset = "0x489220", VA = "0x18048A820")]
|
||||
public static AsymmetricKeyParameter CreateKey(Stream inStr)
|
||||
{
|
||||
return PublicKeyFactory.CreateKey(SubjectPublicKeyInfo.GetInstance(Asn1Object.FromStream(inStr)));
|
||||
}
|
||||
|
||||
// Token: 0x06008157 RID: 33111 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6008157")]
|
||||
[Address(RVA = "0x48A850", Offset = "0x489250", VA = "0x18048A850")]
|
||||
public static AsymmetricKeyParameter CreateKey(SubjectPublicKeyInfo keyInfo)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06008158 RID: 33112 RVA: 0x001B7F0C File Offset: 0x001B610C
|
||||
[Token(Token = "0x6008158")]
|
||||
[Address(RVA = "0x48BCF0", Offset = "0x48A6F0", VA = "0x18048BCF0")]
|
||||
private static byte[] GetRawKey(SubjectPublicKeyInfo keyInfo, int expectedSize)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008158)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Security.PublicKeyFactory::GetRawKey(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectPublicKeyInfo,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:string(var_0_0B, callvirt:string(DerBitString::GetString, ldfld:DerBitString(SubjectPublicKeyInfo::keyData, ldloc:SubjectPublicKeyInfo(keyInfo))))
|
||||
stloc:SecurityUtilityException(var_1_16, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, ldstr:string("public key encoding has incorrect length")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008159 RID: 33113 RVA: 0x001B7F30 File Offset: 0x001B6130
|
||||
[Token(Token = "0x6008159")]
|
||||
[Address(RVA = "0x48BD90", Offset = "0x48A790", VA = "0x18048BD90")]
|
||||
private static bool IsPkcsDHParam(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
BigInteger value = derInteger.Value;
|
||||
DerInteger derInteger2;
|
||||
BigInteger bigInteger = BigInteger.ValueOf((long)derInteger2.Value.BitLength);
|
||||
return value.CompareTo(bigInteger) <= 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600815A RID: 33114 RVA: 0x001B7F88 File Offset: 0x001B6188
|
||||
[Token(Token = "0x600815A")]
|
||||
[Address(RVA = "0x48BF00", Offset = "0x48A900", VA = "0x18048BF00")]
|
||||
private static DHPublicKeyParameters ReadPkcsDHParam(DerObjectIdentifier algOid, BigInteger y, Asn1Sequence seq)
|
||||
{
|
||||
DHParameter dhparameter = new DHParameter(seq);
|
||||
BigInteger l = dhparameter.L;
|
||||
if (l == 0)
|
||||
{
|
||||
}
|
||||
int intValue = l.IntValue;
|
||||
BigInteger p = dhparameter.P;
|
||||
BigInteger g = dhparameter.G;
|
||||
int num;
|
||||
DHParameters dhparameters = new DHParameters(p, g, num, intValue);
|
||||
num = 0;
|
||||
return new DHPublicKeyParameters(y, dhparameters, algOid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,321 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Prng;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013D6 RID: 5078
|
||||
[Token(Token = "0x20013D6")]
|
||||
[StructLayout(3)]
|
||||
public class SecureRandom : Random
|
||||
{
|
||||
// Token: 0x0600815B RID: 33115 RVA: 0x001B7FDC File Offset: 0x001B61DC
|
||||
[Token(Token = "0x600815B")]
|
||||
[Address(RVA = "0x1C61FB0", Offset = "0x1C609B0", VA = "0x181C61FB0")]
|
||||
private static long NextCounterValue()
|
||||
{
|
||||
long num;
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x17001506 RID: 5382
|
||||
// (get) Token: 0x0600815C RID: 33116 RVA: 0x001B7FEC File Offset: 0x001B61EC
|
||||
[Token(Token = "0x17001506")]
|
||||
private static SecureRandom Master
|
||||
{
|
||||
[Token(Token = "0x600815C")]
|
||||
[Address(RVA = "0x1C627C0", Offset = "0x1C611C0", VA = "0x181C627C0")]
|
||||
get
|
||||
{
|
||||
return SecureRandom.master;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600815D RID: 33117 RVA: 0x001B8000 File Offset: 0x001B6200
|
||||
[Token(Token = "0x600815D")]
|
||||
[Address(RVA = "0x1C61770", Offset = "0x1C60170", VA = "0x181C61770")]
|
||||
private static DigestRandomGenerator CreatePrng(string digestName, bool autoSeed)
|
||||
{
|
||||
IDigest digest = DigestUtilities.GetDigest(digestName);
|
||||
if (digest != 0)
|
||||
{
|
||||
DigestRandomGenerator digestRandomGenerator = new DigestRandomGenerator(digest);
|
||||
if (autoSeed)
|
||||
{
|
||||
long num;
|
||||
digestRandomGenerator.AddSeedMaterial(num);
|
||||
byte[] array;
|
||||
digestRandomGenerator.AddSeedMaterial(array);
|
||||
}
|
||||
return digestRandomGenerator;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600815E RID: 33118 RVA: 0x001B8038 File Offset: 0x001B6238
|
||||
[Token(Token = "0x600815E")]
|
||||
[Address(RVA = "0x1C61CF0", Offset = "0x1C606F0", VA = "0x181C61CF0")]
|
||||
public static byte[] GetNextBytes(SecureRandom secureRandom, int length)
|
||||
{
|
||||
byte[] array = new byte[length];
|
||||
double num = secureRandom.NextDouble();
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600815F RID: 33119 RVA: 0x001B805C File Offset: 0x001B625C
|
||||
[Token(Token = "0x600815F")]
|
||||
[Address(RVA = "0x1C619F0", Offset = "0x1C603F0", VA = "0x181C619F0")]
|
||||
public static SecureRandom GetInstance(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600815F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SecureRandom BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SecureRandom::GetInstance(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4B:
|
||||
stloc:ArgumentException(var_7_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unrecognised PRNG algorithm: "), ldloc:string(algorithm)), ldstr:string("algorithm")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008160 RID: 33120 RVA: 0x001B80CC File Offset: 0x001B62CC
|
||||
[Token(Token = "0x6008160")]
|
||||
[Address(RVA = "0x1C61B90", Offset = "0x1C60590", VA = "0x181C61B90")]
|
||||
public static SecureRandom GetInstance(string algorithm, bool autoSeed)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008160)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SecureRandom BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SecureRandom::GetInstance(System.String,System.Boolean)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_48:
|
||||
stloc:ArgumentException(var_6_5D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unrecognised PRNG algorithm: "), ldloc:string(algorithm)), ldstr:string("algorithm")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008161 RID: 33121 RVA: 0x001B8138 File Offset: 0x001B6338
|
||||
[Token(Token = "0x6008161")]
|
||||
[Address(RVA = "0x1C61D60", Offset = "0x1C60760", VA = "0x181C61D60")]
|
||||
[Obsolete]
|
||||
public static byte[] GetSeed(int length)
|
||||
{
|
||||
SecureRandom secureRandom = SecureRandom.master;
|
||||
byte[] array = new byte[length];
|
||||
double num = secureRandom.NextDouble();
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x06008162 RID: 33122 RVA: 0x001B8160 File Offset: 0x001B6360
|
||||
[Token(Token = "0x6008162")]
|
||||
[Address(RVA = "0x1C62740", Offset = "0x1C61140", VA = "0x181C62740")]
|
||||
public SecureRandom()
|
||||
{
|
||||
DigestRandomGenerator digestRandomGenerator = SecureRandom.CreatePrng("SHA256", true);
|
||||
int num = 0;
|
||||
base..ctor(num);
|
||||
this.generator = digestRandomGenerator;
|
||||
}
|
||||
|
||||
// Token: 0x06008163 RID: 33123 RVA: 0x001B818C File Offset: 0x001B638C
|
||||
[Token(Token = "0x6008163")]
|
||||
[Address(RVA = "0x1C62630", Offset = "0x1C61030", VA = "0x181C62630")]
|
||||
[Obsolete]
|
||||
public SecureRandom(byte[] seed)
|
||||
{
|
||||
IDigest digest = DigestUtilities.GetDigest("SHA1");
|
||||
if (digest != 0)
|
||||
{
|
||||
DigestRandomGenerator digestRandomGenerator = new DigestRandomGenerator(digest);
|
||||
}
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
base..ctor(num2);
|
||||
this.generator = num;
|
||||
bool isChanged = ((IChangeTracking)this).IsChanged;
|
||||
}
|
||||
|
||||
// Token: 0x06008164 RID: 33124 RVA: 0x001B81CC File Offset: 0x001B63CC
|
||||
[Token(Token = "0x6008164")]
|
||||
[Address(RVA = "0x1C62600", Offset = "0x1C61000", VA = "0x181C62600")]
|
||||
public SecureRandom(IRandomGenerator generator)
|
||||
{
|
||||
int num = 0;
|
||||
base..ctor(num);
|
||||
this.generator = generator;
|
||||
}
|
||||
|
||||
// Token: 0x06008165 RID: 33125 RVA: 0x001B81EC File Offset: 0x001B63EC
|
||||
[Token(Token = "0x6008165")]
|
||||
[Address(RVA = "0x1C618F0", Offset = "0x1C602F0", VA = "0x181C618F0", Slot = "10")]
|
||||
public virtual byte[] GenerateSeed(int length)
|
||||
{
|
||||
SecureRandom secureRandom = SecureRandom.master;
|
||||
byte[] array = new byte[length];
|
||||
double num = secureRandom.NextDouble();
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x06008166 RID: 33126 RVA: 0x001B8214 File Offset: 0x001B6414
|
||||
[Token(Token = "0x6008166")]
|
||||
[Address(RVA = "0x1C624A0", Offset = "0x1C60EA0", VA = "0x181C624A0", Slot = "11")]
|
||||
public virtual void SetSeed(byte[] seed)
|
||||
{
|
||||
IRandomGenerator randomGenerator = this.generator;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008167 RID: 33127 RVA: 0x001B8230 File Offset: 0x001B6430
|
||||
[Token(Token = "0x6008167")]
|
||||
[Address(RVA = "0x1C623E0", Offset = "0x1C60DE0", VA = "0x181C623E0", Slot = "12")]
|
||||
public virtual void SetSeed(long seed)
|
||||
{
|
||||
IRandomGenerator randomGenerator = this.generator;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
randomGenerator.AddSeedMaterial(seed);
|
||||
}
|
||||
|
||||
// Token: 0x06008168 RID: 33128 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6008168")]
|
||||
[Address(RVA = "0x1C623C0", Offset = "0x1C60DC0", VA = "0x181C623C0", Slot = "5")]
|
||||
public override int Next()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06008169 RID: 33129 RVA: 0x001B825C File Offset: 0x001B645C
|
||||
[Token(Token = "0x6008169")]
|
||||
[Address(RVA = "0x1C622D0", Offset = "0x1C60CD0", VA = "0x181C622D0", Slot = "7")]
|
||||
public override int Next(int maxValue)
|
||||
{
|
||||
int num = maxValue - 1;
|
||||
if (maxValue != num)
|
||||
{
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600816A RID: 33130 RVA: 0x001B8284 File Offset: 0x001B6484
|
||||
[Token(Token = "0x600816A")]
|
||||
[Address(RVA = "0x1C621F0", Offset = "0x1C60BF0", VA = "0x181C621F0", Slot = "6")]
|
||||
public override int Next(int minValue, int maxValue)
|
||||
{
|
||||
if (maxValue > minValue)
|
||||
{
|
||||
int num;
|
||||
num += minValue;
|
||||
return num;
|
||||
}
|
||||
return minValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600816B RID: 33131 RVA: 0x001B82A8 File Offset: 0x001B64A8
|
||||
[Token(Token = "0x600816B")]
|
||||
[Address(RVA = "0x1C61E60", Offset = "0x1C60860", VA = "0x181C61E60", Slot = "9")]
|
||||
public override void NextBytes(byte[] buf)
|
||||
{
|
||||
IRandomGenerator randomGenerator = this.generator;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600816C RID: 33132 RVA: 0x001B82C4 File Offset: 0x001B64C4
|
||||
[Token(Token = "0x600816C")]
|
||||
[Address(RVA = "0x1C61EC0", Offset = "0x1C608C0", VA = "0x181C61EC0", Slot = "13")]
|
||||
public virtual void NextBytes(byte[] buf, int off, int len)
|
||||
{
|
||||
IRandomGenerator randomGenerator = this.generator;
|
||||
int num = 0;
|
||||
if (num < off)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
randomGenerator.AddSeedMaterial(buf);
|
||||
}
|
||||
|
||||
// Token: 0x0600816D RID: 33133 RVA: 0x001B82F4 File Offset: 0x001B64F4
|
||||
[Token(Token = "0x600816D")]
|
||||
[Address(RVA = "0x1C62010", Offset = "0x1C60A10", VA = "0x181C62010", Slot = "8")]
|
||||
public override double NextDouble()
|
||||
{
|
||||
return Convert.ToDouble((ulong)this.NextInt());
|
||||
}
|
||||
|
||||
// Token: 0x0600816E RID: 33134 RVA: 0x001B830C File Offset: 0x001B650C
|
||||
[Token(Token = "0x600816E")]
|
||||
[Address(RVA = "0x1C620C0", Offset = "0x1C60AC0", VA = "0x181C620C0", Slot = "14")]
|
||||
public virtual int NextInt()
|
||||
{
|
||||
byte[] array = new byte[4];
|
||||
double num = this.NextDouble();
|
||||
int length = array.Length;
|
||||
byte b = array[0];
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600816F RID: 33135 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600816F")]
|
||||
[Address(RVA = "0x1C621A0", Offset = "0x1C60BA0", VA = "0x181C621A0", Slot = "15")]
|
||||
public virtual long NextLong()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06008170 RID: 33136 RVA: 0x001B833C File Offset: 0x001B653C
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x6008170")]
|
||||
[Address(RVA = "0x1C62500", Offset = "0x1C60F00", VA = "0x181C62500")]
|
||||
static SecureRandom()
|
||||
{
|
||||
CryptoApiRandomGenerator cryptoApiRandomGenerator = new CryptoApiRandomGenerator();
|
||||
int num;
|
||||
SecureRandom secureRandom = new SecureRandom(num);
|
||||
num = 0;
|
||||
secureRandom.generator = cryptoApiRandomGenerator;
|
||||
SecureRandom.master = secureRandom;
|
||||
}
|
||||
|
||||
// Token: 0x04005BA7 RID: 23463
|
||||
[Token(Token = "0x4005BA7")]
|
||||
private static long counter = Times.NanoTime();
|
||||
|
||||
// Token: 0x04005BA8 RID: 23464
|
||||
[Token(Token = "0x4005BA8")]
|
||||
private static readonly SecureRandom master;
|
||||
|
||||
// Token: 0x04005BA9 RID: 23465
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005BA9")]
|
||||
protected readonly IRandomGenerator generator;
|
||||
|
||||
// Token: 0x04005BAA RID: 23466
|
||||
[Token(Token = "0x4005BAA")]
|
||||
private static readonly double DoubleScale;
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013D7 RID: 5079
|
||||
[Token(Token = "0x20013D7")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class SecurityUtilityException : Exception
|
||||
{
|
||||
// Token: 0x06008171 RID: 33137 RVA: 0x001B8374 File Offset: 0x001B6574
|
||||
[Token(Token = "0x6008171")]
|
||||
[Address(RVA = "0x1C62970", Offset = "0x1C61370", VA = "0x181C62970")]
|
||||
public SecurityUtilityException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008172 RID: 33138 RVA: 0x001B8388 File Offset: 0x001B6588
|
||||
[Token(Token = "0x6008172")]
|
||||
[Address(RVA = "0x1C62900", Offset = "0x1C61300", VA = "0x181C62900")]
|
||||
public SecurityUtilityException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008173 RID: 33139 RVA: 0x001B839C File Offset: 0x001B659C
|
||||
[Token(Token = "0x6008173")]
|
||||
[Address(RVA = "0x1C62880", Offset = "0x1C61280", VA = "0x181C62880")]
|
||||
public SecurityUtilityException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013D8 RID: 5080
|
||||
[Token(Token = "0x20013D8")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class SignatureException : GeneralSecurityException
|
||||
{
|
||||
// Token: 0x06008174 RID: 33140 RVA: 0x001B83B4 File Offset: 0x001B65B4
|
||||
[Token(Token = "0x6008174")]
|
||||
[Address(RVA = "0x4EA970", Offset = "0x4E9370", VA = "0x1804EA970")]
|
||||
public SignatureException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008175 RID: 33141 RVA: 0x001B83C8 File Offset: 0x001B65C8
|
||||
[Token(Token = "0x6008175")]
|
||||
[Address(RVA = "0x4EA950", Offset = "0x4E9350", VA = "0x1804EA950")]
|
||||
public SignatureException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008176 RID: 33142 RVA: 0x001B83DC File Offset: 0x001B65DC
|
||||
[Token(Token = "0x6008176")]
|
||||
[Address(RVA = "0x4EA960", Offset = "0x4E9360", VA = "0x1804EA960")]
|
||||
public SignatureException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,303 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
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;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013D9 RID: 5081
|
||||
[Token(Token = "0x20013D9")]
|
||||
[StructLayout(3)]
|
||||
public sealed class SignerUtilities
|
||||
{
|
||||
// Token: 0x06008177 RID: 33143 RVA: 0x001B83F4 File Offset: 0x001B65F4
|
||||
[Token(Token = "0x6008177")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private SignerUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008178 RID: 33144 RVA: 0x001B8408 File Offset: 0x001B6608
|
||||
[Token(Token = "0x6008178")]
|
||||
[Address(RVA = "0x1C63FE0", Offset = "0x1C629E0", VA = "0x181C63FE0")]
|
||||
static SignerUtilities()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008178)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SignerUtilities::.cctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IDictionary(var_1_07, call:IDictionary(Platform::CreateHashtable))
|
||||
stsfld:IDictionary(SignerUtilities::algorithms, ldloc:IDictionary(var_1_07))
|
||||
stsfld:IDictionary(SignerUtilities::oids, call:IDictionary(Platform::CreateHashtable))
|
||||
stloc:IDictionary(var_3_1F, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_5_25, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_7_2C, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_8_33, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption))
|
||||
stloc:IDictionary(var_10_3A, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_12_41, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_14_48, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_15_4F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD4WithRsaEncryption))
|
||||
stloc:IDictionary(var_17_56, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_18_5D, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::MD4WithRsa))
|
||||
stloc:IDictionary(var_20_64, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_21_6B, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::MD4WithRsaEncryption))
|
||||
stloc:IDictionary(var_23_72, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_25_79, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_27_80, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_28_87, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption))
|
||||
stloc:IDictionary(var_30_8E, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_31_95, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::MD5WithRsa))
|
||||
stloc:IDictionary(var_33_9C, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_35_A3, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_37_AA, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_39_B1, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_40_B8, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption))
|
||||
stloc:IDictionary(var_42_BF, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_43_C6, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::Sha1WithRsa))
|
||||
stloc:IDictionary(var_45_CD, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_47_D4, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_49_DB, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_50_E2, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption))
|
||||
stloc:IDictionary(var_52_E9, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_54_F0, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_56_F7, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_58_FE, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_59_105, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption))
|
||||
stloc:IDictionary(var_61_10C, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_63_113, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_65_11A, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_67_121, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_68_128, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption))
|
||||
stloc:IDictionary(var_70_12F, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_72_136, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_74_13D, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_76_144, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_77_14B, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption))
|
||||
stloc:IDictionary(var_79_152, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_81_159, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_83_160, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_85_167, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_86_16E, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
||||
stloc:IDictionary(var_88_175, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_90_17C, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_92_183, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_94_18A, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_96_191, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_98_198, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_100_19F, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_102_1A6, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_104_1AD, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_106_1B4, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_108_1BB, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_110_1C2, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_112_1C9, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_114_1D0, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_116_1D7, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_118_1DE, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_120_1E5, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_122_1EC, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_124_1F3, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_126_1FA, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_128_201, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_130_208, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_132_20F, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_134_216, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_135_21D, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128))
|
||||
stloc:IDictionary(var_137_224, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_139_22B, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_141_232, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_142_239, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160))
|
||||
stloc:IDictionary(var_144_240, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_146_247, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_148_24E, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_149_255, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256))
|
||||
stloc:IDictionary(var_151_25C, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_153_263, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_155_26A, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_157_271, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
stloc:IDictionary(var_159_278, ldsfld:IDictionary(SignerUtilities::algorithms))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008179 RID: 33145 RVA: 0x001B8690 File Offset: 0x001B6890
|
||||
[Token(Token = "0x6008179")]
|
||||
[Address(RVA = "0x1C62D00", Offset = "0x1C61700", VA = "0x181C62D00")]
|
||||
public static DerObjectIdentifier GetObjectIdentifier(string mechanism)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008179)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SignerUtilities::GetObjectIdentifier(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2E:
|
||||
stloc:ArgumentNullException(var_7_38, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("mechanism")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001507 RID: 5383
|
||||
// (get) Token: 0x0600817A RID: 33146 RVA: 0x001B86D8 File Offset: 0x001B68D8
|
||||
[Token(Token = "0x17001507")]
|
||||
public static ICollection Algorithms
|
||||
{
|
||||
[Token(Token = "0x600817A")]
|
||||
[Address(RVA = "0x1C69000", Offset = "0x1C67A00", VA = "0x181C69000")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = SignerUtilities.oids;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600817B RID: 33147 RVA: 0x001B86F0 File Offset: 0x001B68F0
|
||||
[Token(Token = "0x600817B")]
|
||||
[Address(RVA = "0x1C62BF0", Offset = "0x1C615F0", VA = "0x181C62BF0")]
|
||||
public static Asn1Encodable GetDefaultX509Parameters(DerObjectIdentifier id)
|
||||
{
|
||||
return SignerUtilities.GetDefaultX509Parameters(id.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x0600817C RID: 33148 RVA: 0x001B8710 File Offset: 0x001B6910
|
||||
[Token(Token = "0x600817C")]
|
||||
[Address(RVA = "0x1C629D0", Offset = "0x1C613D0", VA = "0x181C629D0")]
|
||||
public static Asn1Encodable GetDefaultX509Parameters(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600817C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SignerUtilities::GetDefaultX509Parameters(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_49:
|
||||
stloc:ArgumentNullException(var_5_53, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("algorithm")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600817D RID: 33149 RVA: 0x001B8774 File Offset: 0x001B6974
|
||||
[Token(Token = "0x600817D")]
|
||||
[Address(RVA = "0x1C62EB0", Offset = "0x1C618B0", VA = "0x181C62EB0")]
|
||||
private static Asn1Encodable GetPssX509Parameters(string digestName)
|
||||
{
|
||||
DerObjectIdentifier objectIdentifier = DigestUtilities.GetObjectIdentifier(digestName);
|
||||
DerNull instance = DerNull.Instance;
|
||||
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(objectIdentifier, instance);
|
||||
AlgorithmIdentifier algorithmIdentifier2 = new AlgorithmIdentifier(PkcsObjectIdentifiers.IdMgf1, algorithmIdentifier);
|
||||
IDigest digest = DigestUtilities.GetDigest(digestName);
|
||||
DerInteger derInteger = new DerInteger(1);
|
||||
DerInteger derInteger2;
|
||||
RsassaPssParameters rsassaPssParameters = new RsassaPssParameters(algorithmIdentifier, algorithmIdentifier2, derInteger2, derInteger);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600817E RID: 33150 RVA: 0x001B87C4 File Offset: 0x001B69C4
|
||||
[Token(Token = "0x600817E")]
|
||||
[Address(RVA = "0x1C63D80", Offset = "0x1C62780", VA = "0x181C63D80")]
|
||||
public static ISigner GetSigner(DerObjectIdentifier id)
|
||||
{
|
||||
return SignerUtilities.GetSigner(id.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x0600817F RID: 33151 RVA: 0x001B87E4 File Offset: 0x001B69E4
|
||||
[Token(Token = "0x600817F")]
|
||||
[Address(RVA = "0x1C63070", Offset = "0x1C61A70", VA = "0x181C63070")]
|
||||
public static ISigner GetSigner(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600817F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISigner BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SignerUtilities::GetSigner(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30D:
|
||||
stloc:SecurityUtilityException(var_86_314, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, ldloc:string(var_85)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008180 RID: 33152 RVA: 0x001B8B08 File Offset: 0x001B6D08
|
||||
[Token(Token = "0x6008180")]
|
||||
[Address(RVA = "0x1C62C50", Offset = "0x1C61650", VA = "0x181C62C50")]
|
||||
public static string GetEncodingName(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = SignerUtilities.algorithms;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008181 RID: 33153 RVA: 0x001B8B20 File Offset: 0x001B6D20
|
||||
[Token(Token = "0x6008181")]
|
||||
[Address(RVA = "0x1C63EC0", Offset = "0x1C628C0", VA = "0x181C63EC0")]
|
||||
public static ISigner InitSigner(DerObjectIdentifier algorithmOid, bool forSigning, AsymmetricKeyParameter privateKey, SecureRandom random)
|
||||
{
|
||||
ISigner signer = SignerUtilities.GetSigner(algorithmOid.identifier);
|
||||
ICipherParameters cipherParameters = ParameterUtilities.WithRandom(privateKey, random);
|
||||
return signer;
|
||||
}
|
||||
|
||||
// Token: 0x06008182 RID: 33154 RVA: 0x001B8B48 File Offset: 0x001B6D48
|
||||
[Token(Token = "0x6008182")]
|
||||
[Address(RVA = "0x1C63DE0", Offset = "0x1C627E0", VA = "0x181C63DE0")]
|
||||
public static ISigner InitSigner(string algorithm, bool forSigning, AsymmetricKeyParameter privateKey, SecureRandom random)
|
||||
{
|
||||
ISigner signer = SignerUtilities.GetSigner(algorithm);
|
||||
ICipherParameters cipherParameters = ParameterUtilities.WithRandom(privateKey, random);
|
||||
return signer;
|
||||
}
|
||||
|
||||
// Token: 0x04005BAB RID: 23467
|
||||
[Token(Token = "0x4005BAB")]
|
||||
internal static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x04005BAC RID: 23468
|
||||
[Token(Token = "0x4005BAC")]
|
||||
internal static readonly IDictionary oids;
|
||||
}
|
||||
}
|
||||
+225
@@ -0,0 +1,225 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Kisa;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ntt;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Security
|
||||
{
|
||||
// Token: 0x020013DA RID: 5082
|
||||
[Token(Token = "0x20013DA")]
|
||||
[StructLayout(3)]
|
||||
public sealed class WrapperUtilities
|
||||
{
|
||||
// Token: 0x06008183 RID: 33155 RVA: 0x001B8B6C File Offset: 0x001B6D6C
|
||||
[Token(Token = "0x6008183")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private WrapperUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06008184 RID: 33156 RVA: 0x001B8B80 File Offset: 0x001B6D80
|
||||
[Token(Token = "0x6008184")]
|
||||
[Address(RVA = "0x1C70C80", Offset = "0x1C6F680", VA = "0x181C70C80")]
|
||||
static WrapperUtilities()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
Enum arbitraryValue = Enums.GetArbitraryValue(typeof(WrapperUtilities.WrapAlgorithm));
|
||||
DerObjectIdentifier idAes128Wrap = NistObjectIdentifiers.IdAes128Wrap;
|
||||
DerObjectIdentifier idAes192Wrap = NistObjectIdentifiers.IdAes192Wrap;
|
||||
DerObjectIdentifier idAes256Wrap = NistObjectIdentifiers.IdAes256Wrap;
|
||||
DerObjectIdentifier idCamellia128Wrap = NttObjectIdentifiers.IdCamellia128Wrap;
|
||||
DerObjectIdentifier idCamellia192Wrap = NttObjectIdentifiers.IdCamellia192Wrap;
|
||||
DerObjectIdentifier idCamellia256Wrap = NttObjectIdentifiers.IdCamellia256Wrap;
|
||||
DerObjectIdentifier idAlgCms3DesWrap = PkcsObjectIdentifiers.IdAlgCms3DesWrap;
|
||||
DerObjectIdentifier idAlgCmsRC2Wrap = PkcsObjectIdentifiers.IdAlgCmsRC2Wrap;
|
||||
DerObjectIdentifier idNpkiAppCmsSeedWrap = KisaObjectIdentifiers.IdNpkiAppCmsSeedWrap;
|
||||
}
|
||||
|
||||
// Token: 0x06008185 RID: 33157 RVA: 0x001B8BF4 File Offset: 0x001B6DF4
|
||||
[Token(Token = "0x6008185")]
|
||||
[Address(RVA = "0x1C70C20", Offset = "0x1C6F620", VA = "0x181C70C20")]
|
||||
public static IWrapper GetWrapper(DerObjectIdentifier oid)
|
||||
{
|
||||
return WrapperUtilities.GetWrapper(oid.identifier);
|
||||
}
|
||||
|
||||
// Token: 0x06008186 RID: 33158 RVA: 0x001B8C14 File Offset: 0x001B6E14
|
||||
[Token(Token = "0x6008186")]
|
||||
[Address(RVA = "0x1C70880", Offset = "0x1C6F280", VA = "0x181C70880")]
|
||||
public static IWrapper GetWrapper(string algorithm)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06008186)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IWrapper BestHTTP.SecureProtocol.Org.BouncyCastle.Security.WrapperUtilities::GetWrapper(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_94:
|
||||
stloc:SecurityUtilityException(var_13_A9, newobj:SecurityUtilityException(SecurityUtilityException::.ctor, call:string(string::Concat, ldstr:string("Wrapper "), 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.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06008187 RID: 33159 RVA: 0x001B8CCC File Offset: 0x001B6ECC
|
||||
[Token(Token = "0x6008187")]
|
||||
[Address(RVA = "0x1C707D0", Offset = "0x1C6F1D0", VA = "0x181C707D0")]
|
||||
public static string GetAlgorithmName(DerObjectIdentifier oid)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005BAD RID: 23469
|
||||
[Token(Token = "0x4005BAD")]
|
||||
private static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x020013DB RID: 5083
|
||||
[Token(Token = "0x20013DB")]
|
||||
private enum WrapAlgorithm
|
||||
{
|
||||
// Token: 0x04005BAF RID: 23471
|
||||
[Token(Token = "0x4005BAF")]
|
||||
AESWRAP,
|
||||
// Token: 0x04005BB0 RID: 23472
|
||||
[Token(Token = "0x4005BB0")]
|
||||
CAMELLIAWRAP,
|
||||
// Token: 0x04005BB1 RID: 23473
|
||||
[Token(Token = "0x4005BB1")]
|
||||
DESEDEWRAP,
|
||||
// Token: 0x04005BB2 RID: 23474
|
||||
[Token(Token = "0x4005BB2")]
|
||||
RC2WRAP,
|
||||
// Token: 0x04005BB3 RID: 23475
|
||||
[Token(Token = "0x4005BB3")]
|
||||
SEEDWRAP,
|
||||
// Token: 0x04005BB4 RID: 23476
|
||||
[Token(Token = "0x4005BB4")]
|
||||
DESEDERFC3211WRAP,
|
||||
// Token: 0x04005BB5 RID: 23477
|
||||
[Token(Token = "0x4005BB5")]
|
||||
AESRFC3211WRAP,
|
||||
// Token: 0x04005BB6 RID: 23478
|
||||
[Token(Token = "0x4005BB6")]
|
||||
CAMELLIARFC3211WRAP
|
||||
}
|
||||
|
||||
// Token: 0x020013DC RID: 5084
|
||||
[Token(Token = "0x20013DC")]
|
||||
private class BufferedCipherWrapper : IWrapper
|
||||
{
|
||||
// Token: 0x06008188 RID: 33160 RVA: 0x001B8CE0 File Offset: 0x001B6EE0
|
||||
[Token(Token = "0x6008188")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
public BufferedCipherWrapper(IBufferedCipher cipher)
|
||||
{
|
||||
this.cipher = cipher;
|
||||
}
|
||||
|
||||
// Token: 0x17001508 RID: 5384
|
||||
// (get) Token: 0x06008189 RID: 33161 RVA: 0x001B8CFC File Offset: 0x001B6EFC
|
||||
[Token(Token = "0x17001508")]
|
||||
public string AlgorithmName
|
||||
{
|
||||
[Token(Token = "0x6008189")]
|
||||
[Address(RVA = "0x1C5DDD0", Offset = "0x1C5C7D0", VA = "0x181C5DDD0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
IBufferedCipher bufferedCipher = this.cipher;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
return bufferedCipher.AlgorithmName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600818A RID: 33162 RVA: 0x001B8D30 File Offset: 0x001B6F30
|
||||
[Token(Token = "0x600818A")]
|
||||
[Address(RVA = "0x1C5DBE0", Offset = "0x1C5C5E0", VA = "0x181C5DBE0", Slot = "5")]
|
||||
public void Init(bool forWrapping, ICipherParameters parameters)
|
||||
{
|
||||
IBufferedCipher bufferedCipher = this.cipher;
|
||||
this.forWrapping = forWrapping;
|
||||
}
|
||||
|
||||
// Token: 0x0600818B RID: 33163 RVA: 0x001B8D54 File Offset: 0x001B6F54
|
||||
[Token(Token = "0x600818B")]
|
||||
[Address(RVA = "0x1C5DD10", Offset = "0x1C5C710", VA = "0x181C5DD10", Slot = "6")]
|
||||
public byte[] Wrap(byte[] input, int inOff, int length)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600818B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Security.WrapperUtilities/BufferedCipherWrapper::Wrap(System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:InvalidOperationException(var_1_1A, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("Not initialised for wrapping")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600818C RID: 33164 RVA: 0x001B8D7C File Offset: 0x001B6F7C
|
||||
[Token(Token = "0x600818C")]
|
||||
[Address(RVA = "0x1C5DC50", Offset = "0x1C5C650", VA = "0x181C5DC50", Slot = "7")]
|
||||
public byte[] Unwrap(byte[] input, int inOff, int length)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600818C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Security.WrapperUtilities/BufferedCipherWrapper::Unwrap(System.Byte[],System.Int32,System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_10:
|
||||
stloc:InvalidOperationException(var_1_1A, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("Not initialised for unwrapping")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x04005BB7 RID: 23479
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BB7")]
|
||||
private readonly IBufferedCipher cipher;
|
||||
|
||||
// Token: 0x04005BB8 RID: 23480
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005BB8")]
|
||||
private bool forWrapping;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user