Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/X9/X9Curve.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

164 lines
9.7 KiB
C#

using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math.Field;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9
{
// Token: 0x02001EC4 RID: 7876
[Token(Token = "0x2001EC4")]
public class X9Curve : Asn1Encodable
{
// Token: 0x0600C54F RID: 50511 RVA: 0x002C8C78 File Offset: 0x002C6E78
[Token(Token = "0x600C54F")]
[Address(RVA = "0x2152D90", Offset = "0x2151D90", VA = "0x182152D90")]
public X9Curve(ECCurve curve)
{
}
// Token: 0x0600C550 RID: 50512 RVA: 0x002C8C88 File Offset: 0x002C6E88
[Token(Token = "0x600C550")]
[Address(RVA = "0x2152DD0", Offset = "0x2151DD0", VA = "0x182152DD0")]
public X9Curve(ECCurve curve, byte[] seed)
{
/*
An exception occurred when decompiling this method (0600C550)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9Curve::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.EC.ECCurve,System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_4A:
stloc:ArgumentException(var_3_54, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("This type of ECCurve is not implemented")))
}
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: 0x0600C551 RID: 50513 RVA: 0x002C8CEC File Offset: 0x002C6EEC
[Token(Token = "0x600C551")]
[Address(RVA = "0x2152DA0", Offset = "0x2151DA0", VA = "0x182152DA0")]
[Obsolete]
public X9Curve(X9FieldID fieldID, Asn1Sequence seq)
{
}
// Token: 0x0600C552 RID: 50514 RVA: 0x002C8D00 File Offset: 0x002C6F00
[Token(Token = "0x600C552")]
[Address(RVA = "0x2152F50", Offset = "0x2151F50", VA = "0x182152F50")]
public X9Curve(X9FieldID fieldID, BigInteger order, BigInteger cofactor, Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600C552)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9Curve::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9.X9FieldID,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_D0:
stloc:ArgumentNullException(var_33_DA, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("fieldID")))
stloc:ArgumentException(var_34_E6, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("This type of ECCurve is not implemented")))
}
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: 0x17001E6C RID: 7788
// (get) Token: 0x0600C553 RID: 50515 RVA: 0x002C8DF4 File Offset: 0x002C6FF4
[Token(Token = "0x17001E6C")]
public ECCurve Curve
{
[Token(Token = "0x600C553")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.curve;
}
}
// Token: 0x0600C554 RID: 50516 RVA: 0x002C8E08 File Offset: 0x002C7008
[Token(Token = "0x600C554")]
[Address(RVA = "0x2152990", Offset = "0x2151990", VA = "0x182152990")]
public byte[] GetSeed()
{
return Arrays.Clone(this.seed);
}
// Token: 0x0600C555 RID: 50517 RVA: 0x002C8E20 File Offset: 0x002C7020
[Token(Token = "0x600C555")]
[Address(RVA = "0x21529F0", Offset = "0x21519F0", VA = "0x1821529F0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
DerObjectIdentifier derObjectIdentifier = this.fieldIdentifier;
DerObjectIdentifier derObjectIdentifier2 = this.fieldIdentifier;
Asn1Encodable[] array = new Asn1Encodable[1];
IFiniteField field = this.curve.Field;
X9FieldElement x9FieldElement;
x9FieldElement.f = field;
Asn1Object asn1Object = x9FieldElement.ToAsn1Object();
if (asn1Object != 0)
{
}
array[0] = asn1Object;
Asn1EncodableVector asn1EncodableVector;
asn1EncodableVector.Add(array);
Asn1Encodable[] array2 = new Asn1Encodable[1];
ECFieldElement a = this.curve.A;
X9FieldElement x9FieldElement2;
x9FieldElement2.f = a;
Asn1Object asn1Object2 = x9FieldElement2.ToAsn1Object();
if (asn1Object2 != 0)
{
}
array2[0] = asn1Object2;
asn1EncodableVector.Add(array2);
if (this.seed != (ulong)0L)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
DerBitString derBitString = new DerBitString(this.seed);
if (derBitString != 0)
{
}
array3[0] = derBitString;
asn1EncodableVector.Add(array3);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007BB8 RID: 31672
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007BB8")]
private readonly ECCurve curve;
// Token: 0x04007BB9 RID: 31673
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007BB9")]
private readonly byte[] seed;
// Token: 0x04007BBA RID: 31674
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007BBA")]
private readonly DerObjectIdentifier fieldIdentifier;
}
}