scripts
This commit is contained in:
+161
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators
|
||||
{
|
||||
// Token: 0x0200164E RID: 5710
|
||||
[Token(Token = "0x200164E")]
|
||||
[StructLayout(3)]
|
||||
public class Asn1SignatureFactory : ISignatureFactory
|
||||
{
|
||||
// Token: 0x0600982B RID: 38955 RVA: 0x0021B718 File Offset: 0x00219918
|
||||
[Token(Token = "0x600982B")]
|
||||
[Address(RVA = "0x1DCDC20", Offset = "0x1DCC620", VA = "0x181DCDC20")]
|
||||
public Asn1SignatureFactory(string algorithm, AsymmetricKeyParameter privateKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600982B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.Asn1SignatureFactory::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_50:
|
||||
stloc:ArgumentException(var_3_5F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Key for signing must be private"), ldstr:string("privateKey")))
|
||||
}
|
||||
|
||||
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: 0x0600982C RID: 38956 RVA: 0x0021B784 File Offset: 0x00219984
|
||||
[Token(Token = "0x600982C")]
|
||||
[Address(RVA = "0x1DCDAC0", Offset = "0x1DCC4C0", VA = "0x181DCDAC0")]
|
||||
public Asn1SignatureFactory(string algorithm, AsymmetricKeyParameter privateKey, SecureRandom random)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600982C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.Asn1SignatureFactory::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SecureRandom)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4E:
|
||||
stloc:ArgumentException(var_3_5D, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Key for signing must be private"), ldstr:string("privateKey")))
|
||||
}
|
||||
|
||||
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: 0x1700186E RID: 6254
|
||||
// (get) Token: 0x0600982D RID: 38957 RVA: 0x0021B7F0 File Offset: 0x002199F0
|
||||
[Token(Token = "0x1700186E")]
|
||||
public object AlgorithmDetails
|
||||
{
|
||||
[Token(Token = "0x600982D")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600982D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.Asn1SignatureFactory::get_AlgorithmDetails()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:AlgorithmIdentifier(var_0_06, ldfld:AlgorithmIdentifier(Asn1SignatureFactory::algID, ldloc:Asn1SignatureFactory(this)))
|
||||
}
|
||||
|
||||
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: 0x0600982E RID: 38958 RVA: 0x0021B804 File Offset: 0x00219A04
|
||||
[Token(Token = "0x600982E")]
|
||||
[Address(RVA = "0x1DCD9E0", Offset = "0x1DCC3E0", VA = "0x181DCD9E0", Slot = "5")]
|
||||
public IStreamCalculator CreateCalculator()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600982E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IStreamCalculator BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.Asn1SignatureFactory::CreateCalculator()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:string(var_0_06, ldfld:string(Asn1SignatureFactory::algorithm, ldloc:Asn1SignatureFactory(this)))
|
||||
stloc:AsymmetricKeyParameter(var_1_0D, ldfld:AsymmetricKeyParameter(Asn1SignatureFactory::privateKey, ldloc:Asn1SignatureFactory(this)))
|
||||
stloc:SecureRandom(var_2_14, ldfld:SecureRandom(Asn1SignatureFactory::random, ldloc:Asn1SignatureFactory(this)))
|
||||
stloc:SignerSink(var_5_23, newobj:SignerSink(SignerSink::.ctor, call:ISigner(SignerUtilities::InitSigner, ldloc:string(var_0_06), ldc.i4:bool(1), ldloc:AsymmetricKeyParameter(var_1_0D), ldloc:SecureRandom(var_2_14))))
|
||||
stfld:SignerSink(DefaultSignatureCalculator::mSignerSink, ldloc:DefaultSignatureCalculator(var_4), ldloc:SignerSink(var_5_23))
|
||||
}
|
||||
|
||||
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: 0x1700186F RID: 6255
|
||||
// (get) Token: 0x0600982F RID: 38959 RVA: 0x0021B840 File Offset: 0x00219A40
|
||||
[Token(Token = "0x1700186F")]
|
||||
public static IEnumerable SignatureAlgNames
|
||||
{
|
||||
[Token(Token = "0x600982F")]
|
||||
[Address(RVA = "0x1DCDD70", Offset = "0x1DCC770", VA = "0x181DCDD70")]
|
||||
get
|
||||
{
|
||||
return X509Utilities.GetAlgNames();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006400 RID: 25600
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006400")]
|
||||
private readonly AlgorithmIdentifier algID;
|
||||
|
||||
// Token: 0x04006401 RID: 25601
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006401")]
|
||||
private readonly string algorithm;
|
||||
|
||||
// Token: 0x04006402 RID: 25602
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006402")]
|
||||
private readonly AsymmetricKeyParameter privateKey;
|
||||
|
||||
// Token: 0x04006403 RID: 25603
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006403")]
|
||||
private readonly SecureRandom random;
|
||||
}
|
||||
}
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators
|
||||
{
|
||||
// Token: 0x0200164F RID: 5711
|
||||
[Token(Token = "0x200164F")]
|
||||
[StructLayout(3)]
|
||||
public class Asn1VerifierFactory : IVerifierFactory
|
||||
{
|
||||
// Token: 0x06009830 RID: 38960 RVA: 0x0021B854 File Offset: 0x00219A54
|
||||
[Token(Token = "0x6009830")]
|
||||
[Address(RVA = "0x1DCE030", Offset = "0x1DCCA30", VA = "0x181DCE030")]
|
||||
public Asn1VerifierFactory(string algorithm, AsymmetricKeyParameter publicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009830)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.Asn1VerifierFactory::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_40:
|
||||
stloc:ArgumentException(var_3_4F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Key for verifying must be public"), ldstr:string("publicKey")))
|
||||
}
|
||||
|
||||
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: 0x06009831 RID: 38961 RVA: 0x0021B8B0 File Offset: 0x00219AB0
|
||||
[Token(Token = "0x6009831")]
|
||||
[Address(RVA = "0x1DCDFF0", Offset = "0x1DCC9F0", VA = "0x181DCDFF0")]
|
||||
public Asn1VerifierFactory(AlgorithmIdentifier algorithm, AsymmetricKeyParameter publicKey)
|
||||
{
|
||||
this.algID = algorithm;
|
||||
this.publicKey = publicKey;
|
||||
}
|
||||
|
||||
// Token: 0x17001870 RID: 6256
|
||||
// (get) Token: 0x06009832 RID: 38962 RVA: 0x0021B8D4 File Offset: 0x00219AD4
|
||||
[Token(Token = "0x17001870")]
|
||||
public object AlgorithmDetails
|
||||
{
|
||||
[Token(Token = "0x6009832")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009832)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.Asn1VerifierFactory::get_AlgorithmDetails()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:AlgorithmIdentifier(var_0_06, ldfld:AlgorithmIdentifier(Asn1VerifierFactory::algID, ldloc:Asn1VerifierFactory(this)))
|
||||
}
|
||||
|
||||
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: 0x06009833 RID: 38963 RVA: 0x0021B8E8 File Offset: 0x00219AE8
|
||||
[Token(Token = "0x6009833")]
|
||||
[Address(RVA = "0x1DCDEE0", Offset = "0x1DCC8E0", VA = "0x181DCDEE0", Slot = "5")]
|
||||
public IStreamCalculator CreateCalculator()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009833)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IStreamCalculator BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.Asn1VerifierFactory::CreateCalculator()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:string(var_0_0B, call:string(X509Utilities::GetSignatureName, ldfld:AlgorithmIdentifier(Asn1VerifierFactory::algID, ldloc:Asn1VerifierFactory(this))))
|
||||
stloc:AsymmetricKeyParameter(var_1_12, ldfld:AsymmetricKeyParameter(Asn1VerifierFactory::publicKey, ldloc:Asn1VerifierFactory(this)))
|
||||
stloc:int32(var_2_14, ldc.i4:int32(0))
|
||||
stloc:int32(var_4_16, ldc.i4:int32(0))
|
||||
stloc:SignerSink(var_6_27, newobj:SignerSink(SignerSink::.ctor, call:ISigner(SignerUtilities::InitSigner, ldloc:string(var_0_0B), ldloc:int32[exp:bool](var_4_16), ldloc:AsymmetricKeyParameter(var_1_12), ldloc:int32[exp:SecureRandom](var_2_14))))
|
||||
stfld:SignerSink(DefaultVerifierCalculator::mSignerSink, ldloc:DefaultVerifierCalculator(var_5), ldloc:SignerSink(var_6_27))
|
||||
}
|
||||
|
||||
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: 0x04006404 RID: 25604
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006404")]
|
||||
private readonly AlgorithmIdentifier algID;
|
||||
|
||||
// Token: 0x04006405 RID: 25605
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006405")]
|
||||
private readonly AsymmetricKeyParameter publicKey;
|
||||
}
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators
|
||||
{
|
||||
// Token: 0x02001650 RID: 5712
|
||||
[Token(Token = "0x2001650")]
|
||||
[StructLayout(3)]
|
||||
public class Asn1VerifierFactoryProvider : IVerifierFactoryProvider
|
||||
{
|
||||
// Token: 0x06009834 RID: 38964 RVA: 0x0021B928 File Offset: 0x00219B28
|
||||
[Token(Token = "0x6009834")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
public Asn1VerifierFactoryProvider(AsymmetricKeyParameter publicKey)
|
||||
{
|
||||
this.publicKey = publicKey;
|
||||
}
|
||||
|
||||
// Token: 0x06009835 RID: 38965 RVA: 0x0021B944 File Offset: 0x00219B44
|
||||
[Token(Token = "0x6009835")]
|
||||
[Address(RVA = "0x1DCDDC0", Offset = "0x1DCC7C0", VA = "0x181DCDDC0", Slot = "4")]
|
||||
public IVerifierFactory CreateVerifierFactory(object algorithmDetails)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009835)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IVerifierFactory BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.Asn1VerifierFactoryProvider::CreateVerifierFactory(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stfld:AsymmetricKeyParameter(Asn1VerifierFactory::publicKey, ldloc:Asn1VerifierFactory(var_1), ldloc:AsymmetricKeyParameter(var_0_06))
|
||||
stfld:AlgorithmIdentifier(Asn1VerifierFactory::algID, ldloc:Asn1VerifierFactory(var_1), ldloc:object[exp:AlgorithmIdentifier](algorithmDetails))
|
||||
}
|
||||
|
||||
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: 0x17001871 RID: 6257
|
||||
// (get) Token: 0x06009836 RID: 38966 RVA: 0x0021B970 File Offset: 0x00219B70
|
||||
[Token(Token = "0x17001871")]
|
||||
public IEnumerable SignatureAlgNames
|
||||
{
|
||||
[Token(Token = "0x6009836")]
|
||||
[Address(RVA = "0x1DCDE90", Offset = "0x1DCC890", VA = "0x181DCDE90")]
|
||||
get
|
||||
{
|
||||
return X509Utilities.GetAlgNames();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006406 RID: 25606
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006406")]
|
||||
private readonly AsymmetricKeyParameter publicKey;
|
||||
}
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators
|
||||
{
|
||||
// Token: 0x02001651 RID: 5713
|
||||
[Token(Token = "0x2001651")]
|
||||
[StructLayout(3)]
|
||||
public class DefaultSignatureCalculator : IStreamCalculator
|
||||
{
|
||||
// Token: 0x06009837 RID: 38967 RVA: 0x0021B984 File Offset: 0x00219B84
|
||||
[Token(Token = "0x6009837")]
|
||||
[Address(RVA = "0x1DD29B0", Offset = "0x1DD13B0", VA = "0x181DD29B0")]
|
||||
public DefaultSignatureCalculator(ISigner signer)
|
||||
{
|
||||
SignerSink signerSink = new SignerSink(signer);
|
||||
this.mSignerSink = signerSink;
|
||||
}
|
||||
|
||||
// Token: 0x17001872 RID: 6258
|
||||
// (get) Token: 0x06009838 RID: 38968 RVA: 0x0021B9A8 File Offset: 0x00219BA8
|
||||
[Token(Token = "0x17001872")]
|
||||
public Stream Stream
|
||||
{
|
||||
[Token(Token = "0x6009838")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009838)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.DefaultSignatureCalculator::get_Stream()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:SignerSink(var_0_06, ldfld:SignerSink(DefaultSignatureCalculator::mSignerSink, ldloc:DefaultSignatureCalculator(this)))
|
||||
}
|
||||
|
||||
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: 0x06009839 RID: 38969 RVA: 0x0021B9BC File Offset: 0x00219BBC
|
||||
[Token(Token = "0x6009839")]
|
||||
[Address(RVA = "0x1DD2930", Offset = "0x1DD1330", VA = "0x181DD2930", Slot = "5")]
|
||||
public object GetResult()
|
||||
{
|
||||
SignerSink signerSink = this.mSignerSink;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006407 RID: 25607
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006407")]
|
||||
private readonly SignerSink mSignerSink;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators
|
||||
{
|
||||
// Token: 0x02001652 RID: 5714
|
||||
[Token(Token = "0x2001652")]
|
||||
[StructLayout(3)]
|
||||
public class DefaultSignatureResult : IBlockResult
|
||||
{
|
||||
// Token: 0x0600983A RID: 38970 RVA: 0x0021B9D8 File Offset: 0x00219BD8
|
||||
[Token(Token = "0x600983A")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
public DefaultSignatureResult(ISigner signer)
|
||||
{
|
||||
this.mSigner = signer;
|
||||
}
|
||||
|
||||
// Token: 0x0600983B RID: 38971 RVA: 0x0021B9F4 File Offset: 0x00219BF4
|
||||
[Token(Token = "0x600983B")]
|
||||
[Address(RVA = "0x1DD2AA0", Offset = "0x1DD14A0", VA = "0x181DD2AA0", Slot = "4")]
|
||||
public byte[] Collect()
|
||||
{
|
||||
ISigner signer = this.mSigner;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600983C RID: 38972 RVA: 0x0021BA10 File Offset: 0x00219C10
|
||||
[Token(Token = "0x600983C")]
|
||||
[Address(RVA = "0x1DD2A20", Offset = "0x1DD1420", VA = "0x181DD2A20", Slot = "5")]
|
||||
public int Collect(byte[] sig, int sigOff)
|
||||
{
|
||||
ISigner signer = this.mSigner;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006408 RID: 25608
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006408")]
|
||||
private readonly ISigner mSigner;
|
||||
}
|
||||
}
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators
|
||||
{
|
||||
// Token: 0x02001653 RID: 5715
|
||||
[Token(Token = "0x2001653")]
|
||||
[StructLayout(3)]
|
||||
public class DefaultVerifierCalculator : IStreamCalculator
|
||||
{
|
||||
// Token: 0x0600983D RID: 38973 RVA: 0x0021BA2C File Offset: 0x00219C2C
|
||||
[Token(Token = "0x600983D")]
|
||||
[Address(RVA = "0x1DD2B70", Offset = "0x1DD1570", VA = "0x181DD2B70")]
|
||||
public DefaultVerifierCalculator(ISigner signer)
|
||||
{
|
||||
SignerSink signerSink = new SignerSink(signer);
|
||||
this.mSignerSink = signerSink;
|
||||
}
|
||||
|
||||
// Token: 0x17001873 RID: 6259
|
||||
// (get) Token: 0x0600983E RID: 38974 RVA: 0x0021BA50 File Offset: 0x00219C50
|
||||
[Token(Token = "0x17001873")]
|
||||
public Stream Stream
|
||||
{
|
||||
[Token(Token = "0x600983E")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600983E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.DefaultVerifierCalculator::get_Stream()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:SignerSink(var_0_06, ldfld:SignerSink(DefaultVerifierCalculator::mSignerSink, ldloc:DefaultVerifierCalculator(this)))
|
||||
}
|
||||
|
||||
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: 0x0600983F RID: 38975 RVA: 0x0021BA64 File Offset: 0x00219C64
|
||||
[Token(Token = "0x600983F")]
|
||||
[Address(RVA = "0x1DD2AF0", Offset = "0x1DD14F0", VA = "0x181DD2AF0", Slot = "5")]
|
||||
public object GetResult()
|
||||
{
|
||||
SignerSink signerSink = this.mSignerSink;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006409 RID: 25609
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006409")]
|
||||
private readonly SignerSink mSignerSink;
|
||||
}
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators
|
||||
{
|
||||
// Token: 0x02001654 RID: 5716
|
||||
[Token(Token = "0x2001654")]
|
||||
[StructLayout(3)]
|
||||
public class DefaultVerifierResult : IVerifier
|
||||
{
|
||||
// Token: 0x06009840 RID: 38976 RVA: 0x0021BA80 File Offset: 0x00219C80
|
||||
[Token(Token = "0x6009840")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
public DefaultVerifierResult(ISigner signer)
|
||||
{
|
||||
this.mSigner = signer;
|
||||
}
|
||||
|
||||
// Token: 0x06009841 RID: 38977 RVA: 0x0021BA9C File Offset: 0x00219C9C
|
||||
[Token(Token = "0x6009841")]
|
||||
[Address(RVA = "0x1DD2D10", Offset = "0x1DD1710", VA = "0x181DD2D10", Slot = "4")]
|
||||
public bool IsVerified(byte[] signature)
|
||||
{
|
||||
ISigner signer = this.mSigner;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
string algorithmName = signer.AlgorithmName;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009842 RID: 38978 RVA: 0x0021BAC8 File Offset: 0x00219CC8
|
||||
[Token(Token = "0x6009842")]
|
||||
[Address(RVA = "0x1DD2BE0", Offset = "0x1DD15E0", VA = "0x181DD2BE0", Slot = "5")]
|
||||
public bool IsVerified(byte[] sig, int sigOff, int sigLen)
|
||||
{
|
||||
byte[] array = Arrays.CopyOfRange(sig, sigOff, sigOff);
|
||||
ISigner signer = this.mSigner;
|
||||
int num = 0;
|
||||
if (num < sigOff)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
string algorithmName = signer.AlgorithmName;
|
||||
array += array;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400640A RID: 25610
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400640A")]
|
||||
private readonly ISigner mSigner;
|
||||
}
|
||||
}
|
||||
+288
@@ -0,0 +1,288 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.TeleTrust;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators
|
||||
{
|
||||
// Token: 0x0200164D RID: 5709
|
||||
[Token(Token = "0x200164D")]
|
||||
[StructLayout(3)]
|
||||
internal class X509Utilities
|
||||
{
|
||||
// Token: 0x06009823 RID: 38947 RVA: 0x0021B178 File Offset: 0x00219378
|
||||
[Token(Token = "0x6009823")]
|
||||
[Address(RVA = "0x1DE1EA0", Offset = "0x1DE08A0", VA = "0x181DE1EA0")]
|
||||
static X509Utilities()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009823)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators.X509Utilities::.cctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stsfld:Asn1Null(X509Utilities::derNull, ldsfld:DerNull[exp:Asn1Null](DerNull::Instance))
|
||||
stloc:IDictionary(var_1_11, call:IDictionary(Platform::CreateHashtable))
|
||||
stsfld:IDictionary(X509Utilities::algorithms, ldloc:IDictionary(var_1_11))
|
||||
stsfld:IDictionary(X509Utilities::exParams, call:IDictionary(Platform::CreateHashtable))
|
||||
stsfld:ISet(X509Utilities::noParams, newobj:HashSet[exp:ISet](HashSet::.ctor))
|
||||
stloc:IDictionary(var_3_33, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_4_39, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption))
|
||||
stloc:IDictionary(var_5_40, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_6_47, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD2WithRsaEncryption))
|
||||
stloc:IDictionary(var_7_4E, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_8_55, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption))
|
||||
stloc:IDictionary(var_9_5C, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_10_63, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::MD5WithRsaEncryption))
|
||||
stloc:IDictionary(var_11_6A, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_12_71, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption))
|
||||
stloc:IDictionary(var_13_78, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_14_7F, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha1WithRsaEncryption))
|
||||
stloc:IDictionary(var_15_86, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_16_8D, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption))
|
||||
stloc:IDictionary(var_17_94, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_18_9B, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha224WithRsaEncryption))
|
||||
stloc:IDictionary(var_19_A2, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_20_A9, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption))
|
||||
stloc:IDictionary(var_21_B0, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_22_B7, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha256WithRsaEncryption))
|
||||
stloc:IDictionary(var_23_BE, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_24_C5, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption))
|
||||
stloc:IDictionary(var_25_CC, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_26_D3, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha384WithRsaEncryption))
|
||||
stloc:IDictionary(var_27_DA, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_28_E1, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption))
|
||||
stloc:IDictionary(var_29_E8, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_30_EF, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Sha512WithRsaEncryption))
|
||||
stloc:IDictionary(var_31_F6, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_32_FD, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
||||
stloc:IDictionary(var_33_104, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_34_10B, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
||||
stloc:IDictionary(var_35_112, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_36_119, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
||||
stloc:IDictionary(var_37_120, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_38_127, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
||||
stloc:IDictionary(var_39_12E, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_40_135, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::IdRsassaPss))
|
||||
stloc:IDictionary(var_41_13C, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_42_143, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160))
|
||||
stloc:IDictionary(var_43_14A, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_44_151, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD160))
|
||||
stloc:IDictionary(var_45_158, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_46_15F, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128))
|
||||
stloc:IDictionary(var_47_166, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_48_16D, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD128))
|
||||
stloc:IDictionary(var_49_174, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_50_17B, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256))
|
||||
stloc:IDictionary(var_51_182, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_52_189, ldsfld:DerObjectIdentifier(TeleTrusTObjectIdentifiers::RsaSignatureWithRipeMD256))
|
||||
stloc:IDictionary(var_53_190, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_54_197, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1))
|
||||
stloc:IDictionary(var_55_19E, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_56_1A5, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::IdDsaWithSha1))
|
||||
stloc:IDictionary(var_57_1AC, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_58_1B3, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha224))
|
||||
stloc:IDictionary(var_59_1BA, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_60_1C1, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha256))
|
||||
stloc:IDictionary(var_61_1C8, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_62_1CF, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha384))
|
||||
stloc:IDictionary(var_63_1D6, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_64_1DD, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::DsaWithSha512))
|
||||
stloc:IDictionary(var_65_1E4, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_66_1EB, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1))
|
||||
stloc:IDictionary(var_67_1F2, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_68_1F9, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha1))
|
||||
stloc:IDictionary(var_69_200, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_70_207, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha224))
|
||||
stloc:IDictionary(var_71_20E, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_72_215, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha256))
|
||||
stloc:IDictionary(var_73_21C, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_74_223, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha384))
|
||||
stloc:IDictionary(var_75_22A, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_76_231, ldsfld:DerObjectIdentifier(X9ObjectIdentifiers::ECDsaWithSha512))
|
||||
stloc:IDictionary(var_77_238, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_78_23F, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94))
|
||||
stloc:IDictionary(var_79_246, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_80_24D, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x94))
|
||||
stloc:IDictionary(var_81_254, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_82_25B, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001))
|
||||
stloc:IDictionary(var_83_262, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_84_269, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001))
|
||||
stloc:IDictionary(var_85_270, ldsfld:IDictionary(X509Utilities::algorithms))
|
||||
stloc:DerObjectIdentifier(var_86_277, ldsfld:DerObjectIdentifier(CryptoProObjectIdentifiers::GostR3411x94WithGostR3410x2001))
|
||||
stloc:ISet(var_87_27E, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_88_285, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_89_28C, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_90_293, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_91_29A, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_92_2A1, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_93_2A8, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_94_2AF, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_95_2B6, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_96_2BD, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_97_2C4, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:ISet(var_98_2CB, ldsfld:ISet(X509Utilities::noParams))
|
||||
stloc:DerObjectIdentifier(var_99_2D2, ldsfld:DerObjectIdentifier(OiwObjectIdentifiers::IdSha1))
|
||||
stloc:DerNull(var_100_2D9, ldsfld:DerNull(DerNull::Instance))
|
||||
stloc:AlgorithmIdentifier(var_101_2E4, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_99_2D2), ldloc:DerNull[exp:Asn1Encodable](var_100_2D9)))
|
||||
stloc:IDictionary(var_102_2EB, ldsfld:IDictionary(X509Utilities::exParams))
|
||||
stloc:RsassaPssParameters(var_103_2F6, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_101_2E4), ldc.i4:int32(20)))
|
||||
stloc:DerObjectIdentifier(var_104_2FD, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha224))
|
||||
stloc:DerNull(var_105_304, ldsfld:DerNull(DerNull::Instance))
|
||||
stloc:AlgorithmIdentifier(var_106_30F, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_104_2FD), ldloc:DerNull[exp:Asn1Encodable](var_105_304)))
|
||||
stloc:IDictionary(var_107_316, ldsfld:IDictionary(X509Utilities::exParams))
|
||||
stloc:RsassaPssParameters(var_108_321, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_106_30F), ldc.i4:int32(28)))
|
||||
stloc:DerObjectIdentifier(var_109_328, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha256))
|
||||
stloc:DerNull(var_110_32F, ldsfld:DerNull(DerNull::Instance))
|
||||
stloc:AlgorithmIdentifier(var_111_33A, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_109_328), ldloc:DerNull[exp:Asn1Encodable](var_110_32F)))
|
||||
stloc:IDictionary(var_112_341, ldsfld:IDictionary(X509Utilities::exParams))
|
||||
stloc:RsassaPssParameters(var_113_34C, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_111_33A), ldc.i4:int32(32)))
|
||||
stloc:DerObjectIdentifier(var_114_353, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha384))
|
||||
stloc:DerNull(var_115_35A, ldsfld:DerNull(DerNull::Instance))
|
||||
stloc:AlgorithmIdentifier(var_116_365, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_114_353), ldloc:DerNull[exp:Asn1Encodable](var_115_35A)))
|
||||
stloc:IDictionary(var_117_36C, ldsfld:IDictionary(X509Utilities::exParams))
|
||||
stloc:RsassaPssParameters(var_118_377, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_116_365), ldc.i4:int32(48)))
|
||||
stloc:DerObjectIdentifier(var_119_37E, ldsfld:DerObjectIdentifier(NistObjectIdentifiers::IdSha512))
|
||||
stloc:DerNull(var_120_385, ldsfld:DerNull(DerNull::Instance))
|
||||
stloc:AlgorithmIdentifier(var_121_390, newobj:AlgorithmIdentifier(AlgorithmIdentifier::.ctor, ldloc:DerObjectIdentifier(var_119_37E), ldloc:DerNull[exp:Asn1Encodable](var_120_385)))
|
||||
stloc:IDictionary(var_122_397, ldsfld:IDictionary(X509Utilities::exParams))
|
||||
stloc:RsassaPssParameters(var_123_3A2, call:RsassaPssParameters(X509Utilities::CreatePssParams, ldloc:AlgorithmIdentifier(var_121_390), ldc.i4:int32(64)))
|
||||
}
|
||||
|
||||
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: 0x06009824 RID: 38948 RVA: 0x0021B528 File Offset: 0x00219728
|
||||
[Token(Token = "0x6009824")]
|
||||
[Address(RVA = "0x1DE1550", Offset = "0x1DDFF50", VA = "0x181DE1550")]
|
||||
private static string GetDigestAlgName(DerObjectIdentifier digestAlgOID)
|
||||
{
|
||||
DerObjectIdentifier md = PkcsObjectIdentifiers.MD5;
|
||||
DerObjectIdentifier idSha = OiwObjectIdentifiers.IdSha1;
|
||||
DerObjectIdentifier idSha2 = NistObjectIdentifiers.IdSha224;
|
||||
DerObjectIdentifier idSha3 = NistObjectIdentifiers.IdSha256;
|
||||
DerObjectIdentifier idSha4 = NistObjectIdentifiers.IdSha384;
|
||||
DerObjectIdentifier idSha5 = NistObjectIdentifiers.IdSha512;
|
||||
DerObjectIdentifier ripeMD = TeleTrusTObjectIdentifiers.RipeMD128;
|
||||
DerObjectIdentifier ripeMD2 = TeleTrusTObjectIdentifiers.RipeMD160;
|
||||
DerObjectIdentifier ripeMD3 = TeleTrusTObjectIdentifiers.RipeMD256;
|
||||
DerObjectIdentifier gostR = CryptoProObjectIdentifiers.GostR3411;
|
||||
return digestAlgOID.identifier;
|
||||
}
|
||||
|
||||
// Token: 0x06009825 RID: 38949 RVA: 0x0021B5C0 File Offset: 0x002197C0
|
||||
[Token(Token = "0x6009825")]
|
||||
[Address(RVA = "0x1DE1BE0", Offset = "0x1DE05E0", VA = "0x181DE1BE0")]
|
||||
internal static string GetSignatureName(AlgorithmIdentifier sigAlgId)
|
||||
{
|
||||
DerObjectIdentifier objectID = sigAlgId.ObjectID;
|
||||
if (objectID != 0)
|
||||
{
|
||||
Asn1Null asn1Null = X509Utilities.derNull;
|
||||
Asn1Object asn1Object = sigAlgId.ToAsn1Object();
|
||||
Asn1Object asn1Object2 = sigAlgId.ToAsn1Object();
|
||||
Asn1SequenceParser parser = Asn1Sequence.GetInstance(objectID).Parser;
|
||||
string text;
|
||||
return text + "withECDSA";
|
||||
}
|
||||
Asn1Object asn1Object3 = sigAlgId.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009826 RID: 38950 RVA: 0x0021B628 File Offset: 0x00219828
|
||||
[Token(Token = "0x6009826")]
|
||||
[Address(RVA = "0x1DE1200", Offset = "0x1DDFC00", VA = "0x181DE1200")]
|
||||
private static RsassaPssParameters CreatePssParams(AlgorithmIdentifier hashAlgId, int saltSize)
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(PkcsObjectIdentifiers.IdMgf1, hashAlgId);
|
||||
DerInteger derInteger = new DerInteger(saltSize);
|
||||
DerInteger derInteger2 = new DerInteger(1);
|
||||
return new RsassaPssParameters(hashAlgId, algorithmIdentifier, derInteger, derInteger2);
|
||||
}
|
||||
|
||||
// Token: 0x06009827 RID: 38951 RVA: 0x0021B658 File Offset: 0x00219858
|
||||
[Token(Token = "0x6009827")]
|
||||
[Address(RVA = "0x1DE13D0", Offset = "0x1DDFDD0", VA = "0x181DE13D0")]
|
||||
internal static DerObjectIdentifier GetAlgorithmOid(string algorithmName)
|
||||
{
|
||||
string text = Platform.ToUpperInvariant(algorithmName);
|
||||
IDictionary dictionary = X509Utilities.algorithms;
|
||||
if (text == 0)
|
||||
{
|
||||
return new DerObjectIdentifier(text);
|
||||
}
|
||||
IDictionary dictionary2 = X509Utilities.algorithms;
|
||||
Asn1Null asn1Null = X509Utilities.derNull;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009828 RID: 38952 RVA: 0x0021B694 File Offset: 0x00219894
|
||||
[Token(Token = "0x6009828")]
|
||||
[Address(RVA = "0x1DE1970", Offset = "0x1DE0370", VA = "0x181DE1970")]
|
||||
internal static AlgorithmIdentifier GetSigAlgID(DerObjectIdentifier sigOid, string algorithmName)
|
||||
{
|
||||
ISet set = X509Utilities.noParams;
|
||||
string text = Platform.ToUpperInvariant(algorithmName);
|
||||
IDictionary dictionary = X509Utilities.exParams;
|
||||
if (text == 0)
|
||||
{
|
||||
DerNull instance = DerNull.Instance;
|
||||
return new AlgorithmIdentifier(sigOid, instance);
|
||||
}
|
||||
IDictionary dictionary2 = X509Utilities.exParams;
|
||||
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(sigOid);
|
||||
Asn1Null asn1Null = X509Utilities.derNull;
|
||||
return new AlgorithmIdentifier(sigOid);
|
||||
}
|
||||
|
||||
// Token: 0x06009829 RID: 38953 RVA: 0x0021B6EC File Offset: 0x002198EC
|
||||
[Token(Token = "0x6009829")]
|
||||
[Address(RVA = "0x1DE1320", Offset = "0x1DDFD20", VA = "0x181DE1320")]
|
||||
internal static IEnumerable GetAlgNames()
|
||||
{
|
||||
IDictionary dictionary = X509Utilities.algorithms;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600982A RID: 38954 RVA: 0x0021B704 File Offset: 0x00219904
|
||||
[Token(Token = "0x600982A")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public X509Utilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040063FC RID: 25596
|
||||
[Token(Token = "0x40063FC")]
|
||||
private static readonly Asn1Null derNull;
|
||||
|
||||
// Token: 0x040063FD RID: 25597
|
||||
[Token(Token = "0x40063FD")]
|
||||
private static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x040063FE RID: 25598
|
||||
[Token(Token = "0x40063FE")]
|
||||
private static readonly IDictionary exParams;
|
||||
|
||||
// Token: 0x040063FF RID: 25599
|
||||
[Token(Token = "0x40063FF")]
|
||||
private static readonly ISet noParams;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user