250 lines
12 KiB
C#
250 lines
12 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02001F1E RID: 7966
|
|
[Token(Token = "0x2001F1E")]
|
|
public class AuthenticatedDataParser
|
|
{
|
|
// Token: 0x0600C95D RID: 51549 RVA: 0x002E2098 File Offset: 0x002E0298
|
|
[Token(Token = "0x600C95D")]
|
|
[Address(RVA = "0x2AD2620", Offset = "0x2AD1420", VA = "0x182AD2620")]
|
|
public AuthenticatedDataParser(Asn1SequenceParser seq)
|
|
{
|
|
this.seq = seq;
|
|
}
|
|
|
|
// Token: 0x17001FAC RID: 8108
|
|
// (get) Token: 0x0600C95E RID: 51550 RVA: 0x002E20C8 File Offset: 0x002E02C8
|
|
[Token(Token = "0x17001FAC")]
|
|
public DerInteger Version
|
|
{
|
|
[Token(Token = "0x600C95E")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.version;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C95F RID: 51551 RVA: 0x002E20DC File Offset: 0x002E02DC
|
|
[Token(Token = "0x600C95F")]
|
|
[Address(RVA = "0x2AD2260", Offset = "0x2AD1060", VA = "0x182AD2260")]
|
|
public OriginatorInfo GetOriginatorInfo()
|
|
{
|
|
for (;;)
|
|
{
|
|
IAsn1Convertible asn1Convertible = this.nextObject;
|
|
this.originatorInfoCalled = true;
|
|
if (asn1Convertible == 0)
|
|
{
|
|
Asn1SequenceParser asn1SequenceParser = this.seq;
|
|
this.nextObject = asn1Convertible;
|
|
}
|
|
if (asn1Convertible == 0)
|
|
{
|
|
return;
|
|
}
|
|
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
|
if (asn1Convertible != 0 && asn1Convertible != 0)
|
|
{
|
|
if (asn1Convertible != 0)
|
|
{
|
|
return;
|
|
}
|
|
IAsn1Convertible asn1Convertible3 = this.nextObject;
|
|
if (asn1Convertible != 0 && asn1Convertible != 0)
|
|
{
|
|
this.nextObject = (ulong)0L;
|
|
if (asn1Convertible != 0 && asn1Convertible != 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
OriginatorInfo originatorInfo;
|
|
return originatorInfo;
|
|
}
|
|
|
|
// Token: 0x0600C960 RID: 51552 RVA: 0x002E2148 File Offset: 0x002E0348
|
|
[Token(Token = "0x600C960")]
|
|
[Address(RVA = "0x2AD2460", Offset = "0x2AD1260", VA = "0x182AD2460")]
|
|
public Asn1SetParser GetRecipientInfos()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C960)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedDataParser::GetRecipientInfos()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_2:
|
|
brtrue(IL_00, ceq:bool(ldloc:int32(var_3_23), ldc.i4:int32(0)))
|
|
}
|
|
|
|
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.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: 0x0600C961 RID: 51553 RVA: 0x002E2188 File Offset: 0x002E0388
|
|
[Token(Token = "0x600C961")]
|
|
[Address(RVA = "0x2AD2100", Offset = "0x2AD0F00", VA = "0x182AD2100")]
|
|
public AlgorithmIdentifier GetMacAlgorithm()
|
|
{
|
|
if (this.nextObject == 0)
|
|
{
|
|
Asn1SequenceParser asn1SequenceParser = this.seq;
|
|
}
|
|
this.nextObject = (ulong)0L;
|
|
return AlgorithmIdentifier.GetInstance(0);
|
|
}
|
|
|
|
// Token: 0x0600C962 RID: 51554 RVA: 0x002E21B4 File Offset: 0x002E03B4
|
|
[Token(Token = "0x600C962")]
|
|
[Address(RVA = "0x2AD1F40", Offset = "0x2AD0D40", VA = "0x182AD1F40")]
|
|
public AlgorithmIdentifier GetDigestAlgorithm()
|
|
{
|
|
IAsn1Convertible asn1Convertible;
|
|
do
|
|
{
|
|
asn1Convertible = this.nextObject;
|
|
if (asn1Convertible == 0)
|
|
{
|
|
Asn1SequenceParser asn1SequenceParser = this.seq;
|
|
this.nextObject = asn1Convertible;
|
|
}
|
|
if (asn1Convertible == 0)
|
|
{
|
|
}
|
|
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
|
if (asn1Convertible == 0)
|
|
{
|
|
}
|
|
}
|
|
while (asn1Convertible == 0);
|
|
this.nextObject = (ulong)0L;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
return algorithmIdentifier;
|
|
}
|
|
|
|
// Token: 0x0600C963 RID: 51555 RVA: 0x002E2204 File Offset: 0x002E0404
|
|
[Token(Token = "0x600C963")]
|
|
[Address(RVA = "0x2AD2030", Offset = "0x2AD0E30", VA = "0x182AD2030")]
|
|
public ContentInfoParser GetEnapsulatedContentInfo()
|
|
{
|
|
ContentInfoParser contentInfoParser;
|
|
do
|
|
{
|
|
if (this.nextObject == 0)
|
|
{
|
|
Asn1SequenceParser asn1SequenceParser = this.seq;
|
|
}
|
|
this.nextObject = (ulong)0L;
|
|
}
|
|
while (contentInfoParser == 0);
|
|
return contentInfoParser;
|
|
}
|
|
|
|
// Token: 0x0600C964 RID: 51556 RVA: 0x002E2230 File Offset: 0x002E0430
|
|
[Token(Token = "0x600C964")]
|
|
[Address(RVA = "0x2AD1E00", Offset = "0x2AD0C00", VA = "0x182AD1E00")]
|
|
public Asn1SetParser GetAuthAttrs()
|
|
{
|
|
IAsn1Convertible asn1Convertible;
|
|
do
|
|
{
|
|
asn1Convertible = this.nextObject;
|
|
if (asn1Convertible == 0)
|
|
{
|
|
Asn1SequenceParser asn1SequenceParser = this.seq;
|
|
this.nextObject = asn1Convertible;
|
|
}
|
|
if (asn1Convertible == 0)
|
|
{
|
|
}
|
|
IAsn1Convertible asn1Convertible2 = this.nextObject;
|
|
int num = 0;
|
|
this.nextObject = num;
|
|
}
|
|
while (asn1Convertible == 0 || asn1Convertible == 0 || (asn1Convertible != 0 && asn1Convertible == 0));
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C965 RID: 51557 RVA: 0x002E2280 File Offset: 0x002E0480
|
|
[Token(Token = "0x600C965")]
|
|
[Address(RVA = "0x2AD21E0", Offset = "0x2AD0FE0", VA = "0x182AD21E0")]
|
|
public Asn1OctetString GetMac()
|
|
{
|
|
if (this.nextObject == 0)
|
|
{
|
|
Asn1SequenceParser asn1SequenceParser = this.seq;
|
|
}
|
|
this.nextObject = (ulong)0L;
|
|
Asn1OctetString asn1OctetString;
|
|
return asn1OctetString;
|
|
}
|
|
|
|
// Token: 0x0600C966 RID: 51558 RVA: 0x002E22B0 File Offset: 0x002E04B0
|
|
[Token(Token = "0x600C966")]
|
|
[Address(RVA = "0x2AD2500", Offset = "0x2AD1300", VA = "0x182AD2500")]
|
|
public Asn1SetParser GetUnauthAttrs()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C966)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthenticatedDataParser::GetUnauthAttrs()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_10:
|
|
stloc:int32(var_1_11, ldc.i4:int32(0))
|
|
stfld:IAsn1Convertible(AuthenticatedDataParser::nextObject, ldloc:AuthenticatedDataParser(this), ldloc:int32[exp:IAsn1Convertible](var_1_11))
|
|
}
|
|
|
|
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: 0x04008066 RID: 32870
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008066")]
|
|
private Asn1SequenceParser seq;
|
|
|
|
// Token: 0x04008067 RID: 32871
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008067")]
|
|
private DerInteger version;
|
|
|
|
// Token: 0x04008068 RID: 32872
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008068")]
|
|
private IAsn1Convertible nextObject;
|
|
|
|
// Token: 0x04008069 RID: 32873
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4008069")]
|
|
private bool originatorInfoCalled;
|
|
}
|
|
}
|