Files
2026-04-08 23:40:05 +02:00

252 lines
12 KiB
C#

using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
{
// Token: 0x02001941 RID: 6465
[Token(Token = "0x2001941")]
[StructLayout(3)]
public class AuthenticatedDataParser
{
// Token: 0x0600AD83 RID: 44419 RVA: 0x00289BD8 File Offset: 0x00287DD8
[Token(Token = "0x600AD83")]
[Address(RVA = "0x28EB510", Offset = "0x28E9F10", VA = "0x1828EB510")]
public AuthenticatedDataParser(Asn1SequenceParser seq)
{
this.seq = seq;
}
// Token: 0x17001BAB RID: 7083
// (get) Token: 0x0600AD84 RID: 44420 RVA: 0x00289C08 File Offset: 0x00287E08
[Token(Token = "0x17001BAB")]
public DerInteger Version
{
[Token(Token = "0x600AD84")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.version;
}
}
// Token: 0x0600AD85 RID: 44421 RVA: 0x00289C1C File Offset: 0x00287E1C
[Token(Token = "0x600AD85")]
[Address(RVA = "0x28EB150", Offset = "0x28E9B50", VA = "0x1828EB150")]
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: 0x0600AD86 RID: 44422 RVA: 0x00289C88 File Offset: 0x00287E88
[Token(Token = "0x600AD86")]
[Address(RVA = "0x28EB350", Offset = "0x28E9D50", VA = "0x1828EB350")]
public Asn1SetParser GetRecipientInfos()
{
/*
An exception occurred when decompiling this method (0600AD86)
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: 0x0600AD87 RID: 44423 RVA: 0x00289CC8 File Offset: 0x00287EC8
[Token(Token = "0x600AD87")]
[Address(RVA = "0x28EAFF0", Offset = "0x28E99F0", VA = "0x1828EAFF0")]
public AlgorithmIdentifier GetMacAlgorithm()
{
if (this.nextObject == 0)
{
Asn1SequenceParser asn1SequenceParser = this.seq;
}
this.nextObject = (ulong)0L;
return AlgorithmIdentifier.GetInstance(0);
}
// Token: 0x0600AD88 RID: 44424 RVA: 0x00289CF4 File Offset: 0x00287EF4
[Token(Token = "0x600AD88")]
[Address(RVA = "0x28EAE30", Offset = "0x28E9830", VA = "0x1828EAE30")]
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: 0x0600AD89 RID: 44425 RVA: 0x00289D44 File Offset: 0x00287F44
[Token(Token = "0x600AD89")]
[Address(RVA = "0x28EAF20", Offset = "0x28E9920", VA = "0x1828EAF20")]
public ContentInfoParser GetEnapsulatedContentInfo()
{
ContentInfoParser contentInfoParser;
do
{
if (this.nextObject == 0)
{
Asn1SequenceParser asn1SequenceParser = this.seq;
}
this.nextObject = (ulong)0L;
}
while (contentInfoParser == 0);
return contentInfoParser;
}
// Token: 0x0600AD8A RID: 44426 RVA: 0x00289D70 File Offset: 0x00287F70
[Token(Token = "0x600AD8A")]
[Address(RVA = "0x28EACF0", Offset = "0x28E96F0", VA = "0x1828EACF0")]
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: 0x0600AD8B RID: 44427 RVA: 0x00289DC0 File Offset: 0x00287FC0
[Token(Token = "0x600AD8B")]
[Address(RVA = "0x28EB0D0", Offset = "0x28E9AD0", VA = "0x1828EB0D0")]
public Asn1OctetString GetMac()
{
if (this.nextObject == 0)
{
Asn1SequenceParser asn1SequenceParser = this.seq;
}
this.nextObject = (ulong)0L;
Asn1OctetString asn1OctetString;
return asn1OctetString;
}
// Token: 0x0600AD8C RID: 44428 RVA: 0x00289DF0 File Offset: 0x00287FF0
[Token(Token = "0x600AD8C")]
[Address(RVA = "0x28EB3F0", Offset = "0x28E9DF0", VA = "0x1828EB3F0")]
public Asn1SetParser GetUnauthAttrs()
{
/*
An exception occurred when decompiling this method (0600AD8C)
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: 0x04007223 RID: 29219
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007223")]
private Asn1SequenceParser seq;
// Token: 0x04007224 RID: 29220
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007224")]
private DerInteger version;
// Token: 0x04007225 RID: 29221
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007225")]
private IAsn1Convertible nextObject;
// Token: 0x04007226 RID: 29222
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4007226")]
private bool originatorInfoCalled;
}
}