oh dear
This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DFE RID: 7678
|
||||
[Token(Token = "0x2001DFE")]
|
||||
public class DsaParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C240 RID: 49728 RVA: 0x002C341C File Offset: 0x002C161C
|
||||
[Token(Token = "0x600C240")]
|
||||
[Address(RVA = "0x2727CF0", Offset = "0x2726AF0", VA = "0x182727CF0")]
|
||||
public static DsaParameter GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return DsaParameter.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C241 RID: 49729 RVA: 0x002C3438 File Offset: 0x002C1638
|
||||
[Token(Token = "0x600C241")]
|
||||
[Address(RVA = "0x2727D10", Offset = "0x2726B10", VA = "0x182727D10")]
|
||||
public static DsaParameter GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C241)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DsaParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DsaParameter::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_41:
|
||||
stloc:string(var_10_47, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_5A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid DsaParameter: "), ldloc:string(var_10_47))))
|
||||
}
|
||||
|
||||
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: 0x0600C242 RID: 49730 RVA: 0x002C34A0 File Offset: 0x002C16A0
|
||||
[Token(Token = "0x600C242")]
|
||||
[Address(RVA = "0x27282D0", Offset = "0x27270D0", VA = "0x1827282D0")]
|
||||
public DsaParameter(BigInteger p, BigInteger q, BigInteger g)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(p);
|
||||
this.p = derInteger;
|
||||
DerInteger derInteger2 = new DerInteger(q);
|
||||
this.q = derInteger2;
|
||||
DerInteger derInteger3 = new DerInteger(g);
|
||||
this.g = derInteger3;
|
||||
}
|
||||
|
||||
// Token: 0x0600C243 RID: 49731 RVA: 0x002C34E0 File Offset: 0x002C16E0
|
||||
[Token(Token = "0x600C243")]
|
||||
[Address(RVA = "0x2728180", Offset = "0x2726F80", VA = "0x182728180")]
|
||||
private DsaParameter(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.p = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger2;
|
||||
this.q = derInteger2;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerInteger derInteger3;
|
||||
this.g = derInteger3;
|
||||
}
|
||||
|
||||
// Token: 0x17001E00 RID: 7680
|
||||
// (get) Token: 0x0600C244 RID: 49732 RVA: 0x002C3528 File Offset: 0x002C1728
|
||||
[Token(Token = "0x17001E00")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600C244")]
|
||||
[Address(RVA = "0x27283C0", Offset = "0x27271C0", VA = "0x1827283C0")]
|
||||
get
|
||||
{
|
||||
return this.p.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E01 RID: 7681
|
||||
// (get) Token: 0x0600C245 RID: 49733 RVA: 0x002C3548 File Offset: 0x002C1748
|
||||
[Token(Token = "0x17001E01")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x600C245")]
|
||||
[Address(RVA = "0x27283E0", Offset = "0x27271E0", VA = "0x1827283E0")]
|
||||
get
|
||||
{
|
||||
return this.q.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E02 RID: 7682
|
||||
// (get) Token: 0x0600C246 RID: 49734 RVA: 0x002C3568 File Offset: 0x002C1768
|
||||
[Token(Token = "0x17001E02")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600C246")]
|
||||
[Address(RVA = "0x27283A0", Offset = "0x27271A0", VA = "0x1827283A0")]
|
||||
get
|
||||
{
|
||||
return this.g.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C247 RID: 49735 RVA: 0x002C3588 File Offset: 0x002C1788
|
||||
[Token(Token = "0x600C247")]
|
||||
[Address(RVA = "0x2728010", Offset = "0x2726E10", VA = "0x182728010", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.p;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
DerInteger derInteger2 = this.q;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger2;
|
||||
DerInteger derInteger3 = this.g;
|
||||
if (derInteger3 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derInteger3;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A82 RID: 31362
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A82")]
|
||||
internal readonly DerInteger p;
|
||||
|
||||
// Token: 0x04007A83 RID: 31363
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A83")]
|
||||
internal readonly DerInteger q;
|
||||
|
||||
// Token: 0x04007A84 RID: 31364
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007A84")]
|
||||
internal readonly DerInteger g;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user