using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls { // Token: 0x02001C6B RID: 7275 [Token(Token = "0x2001C6B")] public class TlsRsaSigner : AbstractTlsSigner { // Token: 0x0600B379 RID: 45945 RVA: 0x0026C0E0 File Offset: 0x0026A2E0 [Token(Token = "0x600B379")] [Address(RVA = "0x460430", Offset = "0x45F430", VA = "0x180460430", Slot = "16")] public override byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey, byte[] hash) { TlsContext mContext = this.mContext; int length = hash.Length; throw new NullReferenceException(); } // Token: 0x0600B37A RID: 45946 RVA: 0x0026C100 File Offset: 0x0026A300 [Token(Token = "0x600B37A")] [Address(RVA = "0x4609F0", Offset = "0x45F9F0", VA = "0x1804609F0", Slot = "18")] public override bool VerifyRawSignature(SignatureAndHashAlgorithm algorithm, byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] hash) { throw new NullReferenceException(); } // Token: 0x0600B37B RID: 45947 RVA: 0x0026C114 File Offset: 0x0026A314 [Token(Token = "0x600B37B")] [Address(RVA = "0x460330", Offset = "0x45F330", VA = "0x180460330", Slot = "20")] public override ISigner CreateSigner(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey) { TlsContext mContext = this.mContext; throw new NullReferenceException(); } // Token: 0x0600B37C RID: 45948 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x600B37C")] [Address(RVA = "0x460400", Offset = "0x45F400", VA = "0x180460400", Slot = "22")] public override ISigner CreateVerifyer(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter publicKey) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x0600B37D RID: 45949 RVA: 0x0026C130 File Offset: 0x0026A330 [Token(Token = "0x600B37D")] [Address(RVA = "0x460540", Offset = "0x45F540", VA = "0x180460540", Slot = "23")] public override bool IsValidPublicKey(AsymmetricKeyParameter publicKey) { if (publicKey != 0 && publicKey != 0) { return !publicKey.privateKey; } } // Token: 0x0600B37E RID: 45950 RVA: 0x0026C154 File Offset: 0x0026A354 [Token(Token = "0x600B37E")] [Address(RVA = "0x4605C0", Offset = "0x45F5C0", VA = "0x1804605C0", Slot = "24")] protected virtual ISigner MakeSigner(SignatureAndHashAlgorithm algorithm, bool raw, bool forSigning, ICipherParameters cp) { /* An exception occurred when decompiling this method (0600B37E) 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: 0x0600B37F RID: 45951 RVA: 0x0026C1D4 File Offset: 0x0026A3D4 [Token(Token = "0x600B37F")] [Address(RVA = "0x4602C0", Offset = "0x45F2C0", VA = "0x1804602C0", Slot = "25")] protected virtual IAsymmetricBlockCipher CreateRsaImpl() { /* An exception occurred when decompiling this method (0600B37F) 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: 0x0600B380 RID: 45952 RVA: 0x0026C1EC File Offset: 0x0026A3EC [Token(Token = "0x600B380")] [Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")] public TlsRsaSigner() { } } }