Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Crypto/Tls/TlsDsaSigner.cs
T
2026-04-08 23:40:05 +02:00

109 lines
5.8 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
{
// Token: 0x02001595 RID: 5525
[Token(Token = "0x2001595")]
[StructLayout(3)]
public abstract class TlsDsaSigner : AbstractTlsSigner
{
// Token: 0x060092B9 RID: 37561 RVA: 0x00208674 File Offset: 0x00206874
[Token(Token = "0x60092B9")]
[Address(RVA = "0x1E95EA0", Offset = "0x1E948A0", VA = "0x181E95EA0", Slot = "16")]
public override byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey, byte[] hash)
{
TlsContext mContext = this.mContext;
if (algorithm != 0)
{
int length = hash.Length;
}
throw new NullReferenceException();
}
// Token: 0x060092BA RID: 37562 RVA: 0x00208698 File Offset: 0x00206898
[Token(Token = "0x60092BA")]
[Address(RVA = "0x1E961F0", Offset = "0x1E94BF0", VA = "0x181E961F0", Slot = "18")]
public override bool VerifyRawSignature(SignatureAndHashAlgorithm algorithm, byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] hash)
{
if (algorithm != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x060092BB RID: 37563 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x60092BB")]
[Address(RVA = "0x1E95E40", Offset = "0x1E94840", VA = "0x181E95E40", Slot = "20")]
public override ISigner CreateSigner(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060092BC RID: 37564 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x60092BC")]
[Address(RVA = "0x1E95E70", Offset = "0x1E94870", VA = "0x181E95E70", Slot = "22")]
public override ISigner CreateVerifyer(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter publicKey)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060092BD RID: 37565 RVA: 0x002086B0 File Offset: 0x002068B0
[Token(Token = "0x60092BD")]
[Address(RVA = "0xCB71F0", Offset = "0xCB5BF0", VA = "0x180CB71F0", Slot = "24")]
protected virtual ICipherParameters MakeInitParameters(bool forSigning, ICipherParameters cp)
{
return cp;
}
// Token: 0x060092BE RID: 37566 RVA: 0x002086C0 File Offset: 0x002068C0
[Token(Token = "0x60092BE")]
[Address(RVA = "0x1E95FD0", Offset = "0x1E949D0", VA = "0x181E95FD0", Slot = "25")]
protected virtual ISigner MakeSigner(SignatureAndHashAlgorithm algorithm, bool raw, bool forSigning, ICipherParameters cp)
{
/*
An exception occurred when decompiling this method (060092BE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISigner BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsDsaSigner::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_43:
stloc:InvalidOperationException(var_9_48, newobj:InvalidOperationException(InvalidOperationException::.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: 0x170017AF RID: 6063
// (get) Token: 0x060092BF RID: 37567
[Token(Token = "0x170017AF")]
protected abstract byte SignatureAlgorithm
{
[Token(Token = "0x60092BF")]
[Address(Slot = "26")]
get;
}
// Token: 0x060092C0 RID: 37568
[Token(Token = "0x60092C0")]
[Address(Slot = "27")]
protected abstract IDsa CreateDsaImpl(byte hashAlgorithm);
// Token: 0x060092C1 RID: 37569 RVA: 0x00208718 File Offset: 0x00206918
[Token(Token = "0x60092C1")]
[Address(RVA = "0x3D4170", Offset = "0x3D2B70", VA = "0x1803D4170")]
protected TlsDsaSigner()
{
}
}
}