using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Math; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers { // Token: 0x02001BA1 RID: 7073 [Token(Token = "0x2001BA1")] public class DsaDigestSigner : ISigner { // Token: 0x0600B0BC RID: 45244 RVA: 0x00266408 File Offset: 0x00264608 [Token(Token = "0x600B0BC")] [Address(RVA = "0x18924D0", Offset = "0x18912D0", VA = "0x1818924D0")] public DsaDigestSigner(IDsa dsa, IDigest digest) { this.dsa = dsa; this.digest = digest; this.encoding = typeof(StandardDsaEncoding).TypeHandle; } // Token: 0x0600B0BD RID: 45245 RVA: 0x00266434 File Offset: 0x00264634 [Token(Token = "0x600B0BD")] [Address(RVA = "0x4A7B10", Offset = "0x4A6910", VA = "0x1804A7B10")] public DsaDigestSigner(IDsaExt dsa, IDigest digest, IDsaEncoding encoding) { this.dsa = dsa; this.digest = digest; this.encoding = encoding; } // Token: 0x17001BD5 RID: 7125 // (get) Token: 0x0600B0BE RID: 45246 RVA: 0x0026645C File Offset: 0x0026465C [Token(Token = "0x17001BD5")] public virtual string AlgorithmName { [Token(Token = "0x600B0BE")] [Address(RVA = "0x1892560", Offset = "0x1891360", VA = "0x181892560", Slot = "11")] get { IDigest digest = this.digest; IDsa dsa = this.dsa; string text; return text; } } // Token: 0x0600B0BF RID: 45247 RVA: 0x00266480 File Offset: 0x00264680 [Token(Token = "0x600B0BF")] [Address(RVA = "0x1891FD0", Offset = "0x1890DD0", VA = "0x181891FD0", Slot = "12")] public virtual void Init(bool forSigning, ICipherParameters parameters) { /* An exception occurred when decompiling this method (0600B0BF) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers.DsaDigestSigner::Init(System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ICipherParameters) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_4C: stloc:InvalidKeyException(var_8_56, newobj:InvalidKeyException(InvalidKeyException::.ctor, ldstr:string("Signing Requires Private Key."))) stloc:InvalidKeyException(var_9_62, newobj:InvalidKeyException(InvalidKeyException::.ctor, ldstr:string("Verification Requires Public 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: 0x0600B0C0 RID: 45248 RVA: 0x002664F0 File Offset: 0x002646F0 [Token(Token = "0x600B0C0")] [Address(RVA = "0x18922A0", Offset = "0x18910A0", VA = "0x1818922A0", Slot = "13")] public virtual void Update(byte input) { IDigest digest = this.digest; throw new NullReferenceException(); } // Token: 0x0600B0C1 RID: 45249 RVA: 0x0026650C File Offset: 0x0026470C [Token(Token = "0x600B0C1")] [Address(RVA = "0x1891CB0", Offset = "0x1890AB0", VA = "0x181891CB0", Slot = "14")] public virtual void BlockUpdate(byte[] input, int inOff, int length) { IDigest digest = this.digest; } // Token: 0x0600B0C2 RID: 45250 RVA: 0x00266528 File Offset: 0x00264728 [Token(Token = "0x600B0C2")] [Address(RVA = "0x1891D30", Offset = "0x1890B30", VA = "0x181891D30", Slot = "15")] public virtual byte[] GenerateSignature() { if (this.forSigning) { IDigest digest = this.digest; byte[] array = new byte[0]; IDigest digest2 = this.digest; IDsa dsa = this.dsa; IDsaEncoding dsaEncoding = this.encoding; this.Reset(); int length = array.Length; byte b = array[0]; return array[1]; } InvalidOperationException ex = new InvalidOperationException("DSADigestSigner not initialised for signature generation."); throw new IndexOutOfRangeException(); } // Token: 0x0600B0C3 RID: 45251 RVA: 0x002665B4 File Offset: 0x002647B4 [Token(Token = "0x600B0C3")] [Address(RVA = "0x1892300", Offset = "0x1891100", VA = "0x181892300", Slot = "16")] public virtual bool VerifySignature(byte[] signature) { if (!this.forSigning) { IDigest digest = this.digest; byte[] array = new byte[0]; IDigest digest2 = this.digest; IDsaEncoding dsaEncoding = this.encoding; this.Reset(); IDsa dsa = this.dsa; } InvalidOperationException ex = new InvalidOperationException("DSADigestSigner not initialised for verification"); throw new IndexOutOfRangeException(); } // Token: 0x0600B0C4 RID: 45252 RVA: 0x0026662C File Offset: 0x0026482C [Token(Token = "0x600B0C4")] [Address(RVA = "0x1892250", Offset = "0x1891050", VA = "0x181892250", Slot = "17")] public virtual void Reset() { IDigest digest = this.digest; throw new NullReferenceException(); } // Token: 0x0600B0C5 RID: 45253 RVA: 0x00266648 File Offset: 0x00264848 [Token(Token = "0x600B0C5")] [Address(RVA = "0x1891F10", Offset = "0x1890D10", VA = "0x181891F10", Slot = "18")] protected virtual BigInteger GetOrder() { /* An exception occurred when decompiling this method (0600B0C5) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers.DsaDigestSigner::GetOrder() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:IDsa(var_0_06, ldfld:IDsa(DsaDigestSigner::dsa, ldloc:DsaDigestSigner(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: 0x04007098 RID: 28824 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007098")] private readonly IDsa dsa; // Token: 0x04007099 RID: 28825 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007099")] private readonly IDigest digest; // Token: 0x0400709A RID: 28826 [FieldOffset(Offset = "0x20")] [Token(Token = "0x400709A")] private readonly IDsaEncoding encoding; // Token: 0x0400709B RID: 28827 [FieldOffset(Offset = "0x28")] [Token(Token = "0x400709B")] private bool forSigning; } }