a
This commit is contained in:
+89
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers
|
||||
{
|
||||
// Token: 0x02001BB9 RID: 7097
|
||||
[Token(Token = "0x2001BB9")]
|
||||
public class RandomDsaKCalculator : IDsaKCalculator
|
||||
{
|
||||
// Token: 0x17001BEC RID: 7148
|
||||
// (get) Token: 0x0600B17E RID: 45438 RVA: 0x0026A3A8 File Offset: 0x002685A8
|
||||
[Token(Token = "0x17001BEC")]
|
||||
public virtual bool IsDeterministic
|
||||
{
|
||||
[Token(Token = "0x600B17E")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B17F RID: 45439 RVA: 0x0026A3B8 File Offset: 0x002685B8
|
||||
[Token(Token = "0x600B17F")]
|
||||
[Address(RVA = "0x18A0730", Offset = "0x189F530", VA = "0x1818A0730", Slot = "9")]
|
||||
public virtual void Init(BigInteger n, SecureRandom random)
|
||||
{
|
||||
this.q = n;
|
||||
this.random = random;
|
||||
}
|
||||
|
||||
// Token: 0x0600B180 RID: 45440 RVA: 0x0026A3D4 File Offset: 0x002685D4
|
||||
[Token(Token = "0x600B180")]
|
||||
[Address(RVA = "0x18A0740", Offset = "0x189F540", VA = "0x1818A0740", Slot = "10")]
|
||||
public virtual void Init(BigInteger n, BigInteger d, byte[] message)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B180)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers.RandomDsaKCalculator::Init(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:InvalidOperationException(var_0_0A, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("Operation not supported")))
|
||||
}
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600B181 RID: 45441 RVA: 0x0026A3EC File Offset: 0x002685EC
|
||||
[Token(Token = "0x600B181")]
|
||||
[Address(RVA = "0x18A07A0", Offset = "0x189F5A0", VA = "0x1818A07A0", Slot = "11")]
|
||||
public virtual BigInteger NextK()
|
||||
{
|
||||
int bitLength = this.q.BitLength;
|
||||
SecureRandom secureRandom = this.random;
|
||||
BigInteger bigInteger = new BigInteger(bitLength, secureRandom);
|
||||
BigInteger bigInteger2 = this.q;
|
||||
int num = bigInteger.CompareTo(bigInteger2);
|
||||
return bigInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600B182 RID: 45442 RVA: 0x0026A42C File Offset: 0x0026862C
|
||||
[Token(Token = "0x600B182")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public RandomDsaKCalculator()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007114 RID: 28948
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007114")]
|
||||
private BigInteger q;
|
||||
|
||||
// Token: 0x04007115 RID: 28949
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007115")]
|
||||
private SecureRandom random;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user