m
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: 0x02001C99 RID: 7321
|
||||
[Token(Token = "0x2001C99")]
|
||||
public class RandomDsaKCalculator : IDsaKCalculator
|
||||
{
|
||||
// Token: 0x17001C89 RID: 7305
|
||||
// (get) Token: 0x0600B54C RID: 46412 RVA: 0x0027356C File Offset: 0x0027176C
|
||||
[Token(Token = "0x17001C89")]
|
||||
public virtual bool IsDeterministic
|
||||
{
|
||||
[Token(Token = "0x600B54C")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")]
|
||||
get
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600B54D RID: 46413 RVA: 0x0027357C File Offset: 0x0027177C
|
||||
[Token(Token = "0x600B54D")]
|
||||
[Address(RVA = "0xD224F0", Offset = "0xD214F0", VA = "0x180D224F0", Slot = "9")]
|
||||
public virtual void Init(BigInteger n, SecureRandom random)
|
||||
{
|
||||
this.q = n;
|
||||
this.random = random;
|
||||
}
|
||||
|
||||
// Token: 0x0600B54E RID: 46414 RVA: 0x00273598 File Offset: 0x00271798
|
||||
[Token(Token = "0x600B54E")]
|
||||
[Address(RVA = "0x2364530", Offset = "0x2363530", VA = "0x182364530", Slot = "10")]
|
||||
public virtual void Init(BigInteger n, BigInteger d, byte[] message)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600B54E)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600B54F RID: 46415 RVA: 0x002735B0 File Offset: 0x002717B0
|
||||
[Token(Token = "0x600B54F")]
|
||||
[Address(RVA = "0x2364590", Offset = "0x2363590", VA = "0x182364590", 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: 0x0600B550 RID: 46416 RVA: 0x002735F0 File Offset: 0x002717F0
|
||||
[Token(Token = "0x600B550")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public RandomDsaKCalculator()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040072CD RID: 29389
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072CD")]
|
||||
private BigInteger q;
|
||||
|
||||
// Token: 0x040072CE RID: 29390
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072CE")]
|
||||
private SecureRandom random;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user