120 lines
8.5 KiB
C#
120 lines
8.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
|
|
{
|
|
// Token: 0x020015AE RID: 5550
|
|
[Token(Token = "0x20015AE")]
|
|
[StructLayout(3)]
|
|
public class TlsRsaSigner : AbstractTlsSigner
|
|
{
|
|
// Token: 0x060093D1 RID: 37841 RVA: 0x0020B800 File Offset: 0x00209A00
|
|
[Token(Token = "0x60093D1")]
|
|
[Address(RVA = "0x1E04990", Offset = "0x1E03390", VA = "0x181E04990", Slot = "16")]
|
|
public override byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey, byte[] hash)
|
|
{
|
|
TlsContext mContext = this.mContext;
|
|
int length = hash.Length;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060093D2 RID: 37842 RVA: 0x0020B820 File Offset: 0x00209A20
|
|
[Token(Token = "0x60093D2")]
|
|
[Address(RVA = "0x1E04F50", Offset = "0x1E03950", VA = "0x181E04F50", Slot = "18")]
|
|
public override bool VerifyRawSignature(SignatureAndHashAlgorithm algorithm, byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] hash)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060093D3 RID: 37843 RVA: 0x0020B834 File Offset: 0x00209A34
|
|
[Token(Token = "0x60093D3")]
|
|
[Address(RVA = "0x1E04890", Offset = "0x1E03290", VA = "0x181E04890", Slot = "20")]
|
|
public override ISigner CreateSigner(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey)
|
|
{
|
|
TlsContext mContext = this.mContext;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060093D4 RID: 37844 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x60093D4")]
|
|
[Address(RVA = "0x1E04960", Offset = "0x1E03360", VA = "0x181E04960", Slot = "22")]
|
|
public override ISigner CreateVerifyer(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter publicKey)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060093D5 RID: 37845 RVA: 0x0020B850 File Offset: 0x00209A50
|
|
[Token(Token = "0x60093D5")]
|
|
[Address(RVA = "0x1E04AA0", Offset = "0x1E034A0", VA = "0x181E04AA0", Slot = "23")]
|
|
public override bool IsValidPublicKey(AsymmetricKeyParameter publicKey)
|
|
{
|
|
if (publicKey != 0 && publicKey != 0)
|
|
{
|
|
return !publicKey.privateKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060093D6 RID: 37846 RVA: 0x0020B874 File Offset: 0x00209A74
|
|
[Token(Token = "0x60093D6")]
|
|
[Address(RVA = "0x1E04B20", Offset = "0x1E03520", VA = "0x181E04B20", Slot = "24")]
|
|
protected virtual ISigner MakeSigner(SignatureAndHashAlgorithm algorithm, bool raw, bool forSigning, ICipherParameters cp)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060093D6)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISigner BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsRsaSigner::MakeSigner(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.SignatureAndHashAlgorithm,System.Boolean,System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_54:
|
|
stloc:InvalidOperationException(var_10_59, newobj:InvalidOperationException(InvalidOperationException::.ctor))
|
|
stloc:InvalidOperationException(var_11_60, newobj:InvalidOperationException(InvalidOperationException::.ctor))
|
|
stloc:ArgumentException(var_12_71, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown HashAlgorithm"), ldstr:string("hashAlgorithm")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x060093D7 RID: 37847 RVA: 0x0020B8F4 File Offset: 0x00209AF4
|
|
[Token(Token = "0x60093D7")]
|
|
[Address(RVA = "0x1E04820", Offset = "0x1E03220", VA = "0x181E04820", Slot = "25")]
|
|
protected virtual IAsymmetricBlockCipher CreateRsaImpl()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060093D7)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.IAsymmetricBlockCipher BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsRsaSigner::CreateRsaImpl()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:Pkcs1Encoding(var_0_0A, newobj:Pkcs1Encoding(Pkcs1Encoding::.ctor, newobj:RsaBlindedEngine[exp:IAsymmetricBlockCipher](RsaBlindedEngine::.ctor)))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x060093D8 RID: 37848 RVA: 0x0020B90C File Offset: 0x00209B0C
|
|
[Token(Token = "0x60093D8")]
|
|
[Address(RVA = "0x3D4170", Offset = "0x3D2B70", VA = "0x1803D4170")]
|
|
public TlsRsaSigner()
|
|
{
|
|
}
|
|
}
|
|
}
|