m
This commit is contained in:
+214
@@ -0,0 +1,214 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Icao
|
||||
{
|
||||
// Token: 0x02001FAF RID: 8111
|
||||
[Token(Token = "0x2001FAF")]
|
||||
public class LdsSecurityObject : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB13 RID: 51987 RVA: 0x002E1AF8 File Offset: 0x002DFCF8
|
||||
[Token(Token = "0x600CB13")]
|
||||
[Address(RVA = "0x2EAF620", Offset = "0x2EAE620", VA = "0x182EAF620")]
|
||||
public static LdsSecurityObject GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new LdsSecurityObject(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB14 RID: 51988 RVA: 0x002E1B2C File Offset: 0x002DFD2C
|
||||
[Token(Token = "0x600CB14")]
|
||||
[Address(RVA = "0x2EAFAF0", Offset = "0x2EAEAF0", VA = "0x182EAFAF0")]
|
||||
private LdsSecurityObject(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB14)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Icao.LdsSecurityObject::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_A9:
|
||||
stloc:ArgumentException(var_17_B3, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("null or empty sequence passed.")))
|
||||
}
|
||||
|
||||
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: 0x0600CB15 RID: 51989 RVA: 0x002E1BF0 File Offset: 0x002DFDF0
|
||||
[Token(Token = "0x600CB15")]
|
||||
[Address(RVA = "0x2EAFA30", Offset = "0x2EAEA30", VA = "0x182EAFA30")]
|
||||
public LdsSecurityObject(AlgorithmIdentifier digestAlgorithmIdentifier, DataGroupHash[] datagroupHash)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
base..ctor();
|
||||
int num2;
|
||||
DerInteger derInteger2 = new DerInteger(num2);
|
||||
num2 = 0;
|
||||
this.version = derInteger2;
|
||||
this.digestAlgorithmIdentifier = digestAlgorithmIdentifier;
|
||||
this.datagroupHash = datagroupHash;
|
||||
int length = datagroupHash.Length;
|
||||
this.CheckDatagroupHashSeqSize(length);
|
||||
}
|
||||
|
||||
// Token: 0x0600CB16 RID: 51990 RVA: 0x002E1C48 File Offset: 0x002DFE48
|
||||
[Token(Token = "0x600CB16")]
|
||||
[Address(RVA = "0x2EAF960", Offset = "0x2EAE960", VA = "0x182EAF960")]
|
||||
public LdsSecurityObject(AlgorithmIdentifier digestAlgorithmIdentifier, DataGroupHash[] datagroupHash, LdsVersionInfo versionInfo)
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
base..ctor();
|
||||
DerInteger derInteger2 = new DerInteger(1);
|
||||
this.version = derInteger2;
|
||||
this.digestAlgorithmIdentifier = digestAlgorithmIdentifier;
|
||||
this.datagroupHash = datagroupHash;
|
||||
this.versionInfo = versionInfo;
|
||||
int length = datagroupHash.Length;
|
||||
this.CheckDatagroupHashSeqSize(length);
|
||||
}
|
||||
|
||||
// Token: 0x0600CB17 RID: 51991 RVA: 0x002E1CA4 File Offset: 0x002DFEA4
|
||||
[Token(Token = "0x600CB17")]
|
||||
[Address(RVA = "0x2EAF580", Offset = "0x2EAE580", VA = "0x182EAF580")]
|
||||
private void CheckDatagroupHashSeqSize(int size)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17001FC6 RID: 8134
|
||||
// (get) Token: 0x0600CB18 RID: 51992 RVA: 0x002E1CC8 File Offset: 0x002DFEC8
|
||||
[Token(Token = "0x17001FC6")]
|
||||
public BigInteger Version
|
||||
{
|
||||
[Token(Token = "0x600CB18")]
|
||||
[Address(RVA = "0x2EAFE00", Offset = "0x2EAEE00", VA = "0x182EAFE00")]
|
||||
get
|
||||
{
|
||||
return this.version.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FC7 RID: 8135
|
||||
// (get) Token: 0x0600CB19 RID: 51993 RVA: 0x002E1CE8 File Offset: 0x002DFEE8
|
||||
[Token(Token = "0x17001FC7")]
|
||||
public AlgorithmIdentifier DigestAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600CB19")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithmIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB1A RID: 51994 RVA: 0x002E1CFC File Offset: 0x002DFEFC
|
||||
[Token(Token = "0x600CB1A")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
public DataGroupHash[] GetDatagroupHash()
|
||||
{
|
||||
return this.datagroupHash;
|
||||
}
|
||||
|
||||
// Token: 0x17001FC8 RID: 8136
|
||||
// (get) Token: 0x0600CB1B RID: 51995 RVA: 0x002E1D10 File Offset: 0x002DFF10
|
||||
[Token(Token = "0x17001FC8")]
|
||||
public LdsVersionInfo VersionInfo
|
||||
{
|
||||
[Token(Token = "0x600CB1B")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.versionInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB1C RID: 51996 RVA: 0x002E1D24 File Offset: 0x002DFF24
|
||||
[Token(Token = "0x600CB1C")]
|
||||
[Address(RVA = "0x2EAF720", Offset = "0x2EAE720", VA = "0x182EAF720", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(this.datagroupHash);
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.digestAlgorithmIdentifier;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
if (derSequence != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derSequence;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.versionInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
LdsVersionInfo ldsVersionInfo = this.versionInfo;
|
||||
if (ldsVersionInfo != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = ldsVersionInfo;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence2 = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040080AB RID: 32939
|
||||
[Token(Token = "0x40080AB")]
|
||||
public const int UBDataGroups = 16;
|
||||
|
||||
// Token: 0x040080AC RID: 32940
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080AC")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040080AD RID: 32941
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080AD")]
|
||||
private AlgorithmIdentifier digestAlgorithmIdentifier;
|
||||
|
||||
// Token: 0x040080AE RID: 32942
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080AE")]
|
||||
private DataGroupHash[] datagroupHash;
|
||||
|
||||
// Token: 0x040080AF RID: 32943
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080AF")]
|
||||
private LdsVersionInfo versionInfo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user