208 lines
11 KiB
C#
208 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02001FFC RID: 8188
|
|
[Token(Token = "0x2001FFC")]
|
|
public class AuthEnvelopedDataParser
|
|
{
|
|
// Token: 0x0600CD14 RID: 52500 RVA: 0x002EA1E4 File Offset: 0x002E83E4
|
|
[Token(Token = "0x600CD14")]
|
|
[Address(RVA = "0x2FDBEF0", Offset = "0x2FDAEF0", VA = "0x182FDBEF0")]
|
|
public AuthEnvelopedDataParser(Asn1SequenceParser seq)
|
|
{
|
|
this.seq = seq;
|
|
}
|
|
|
|
// Token: 0x1700203F RID: 8255
|
|
// (get) Token: 0x0600CD15 RID: 52501 RVA: 0x002EA214 File Offset: 0x002E8414
|
|
[Token(Token = "0x1700203F")]
|
|
public DerInteger Version
|
|
{
|
|
[Token(Token = "0x600CD15")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.version;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CD16 RID: 52502 RVA: 0x002EA228 File Offset: 0x002E8428
|
|
[Token(Token = "0x600CD16")]
|
|
[Address(RVA = "0x2FDBB30", Offset = "0x2FDAB30", VA = "0x182FDBB30")]
|
|
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: 0x0600CD17 RID: 52503 RVA: 0x002EA294 File Offset: 0x002E8494
|
|
[Token(Token = "0x600CD17")]
|
|
[Address(RVA = "0x2FDBD30", Offset = "0x2FDAD30", VA = "0x182FDBD30")]
|
|
public Asn1SetParser GetRecipientInfos()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CD17)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedDataParser::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: 0x0600CD18 RID: 52504 RVA: 0x002EA2D4 File Offset: 0x002E84D4
|
|
[Token(Token = "0x600CD18")]
|
|
[Address(RVA = "0x2FDB9E0", Offset = "0x2FDA9E0", VA = "0x182FDB9E0")]
|
|
public EncryptedContentInfoParser GetAuthEncryptedContentInfo()
|
|
{
|
|
EncryptedContentInfoParser encryptedContentInfoParser;
|
|
do
|
|
{
|
|
if (this.nextObject == 0)
|
|
{
|
|
Asn1SequenceParser asn1SequenceParser = this.seq;
|
|
}
|
|
this.nextObject = (ulong)0L;
|
|
}
|
|
while (encryptedContentInfoParser == 0);
|
|
return encryptedContentInfoParser;
|
|
}
|
|
|
|
// Token: 0x0600CD19 RID: 52505 RVA: 0x002EA300 File Offset: 0x002E8500
|
|
[Token(Token = "0x600CD19")]
|
|
[Address(RVA = "0x2FDB8A0", Offset = "0x2FDA8A0", VA = "0x182FDB8A0")]
|
|
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: 0x0600CD1A RID: 52506 RVA: 0x002EA350 File Offset: 0x002E8550
|
|
[Token(Token = "0x600CD1A")]
|
|
[Address(RVA = "0x2FDBAB0", Offset = "0x2FDAAB0", VA = "0x182FDBAB0")]
|
|
public Asn1OctetString GetMac()
|
|
{
|
|
if (this.nextObject == 0)
|
|
{
|
|
Asn1SequenceParser asn1SequenceParser = this.seq;
|
|
}
|
|
this.nextObject = (ulong)0L;
|
|
Asn1OctetString asn1OctetString;
|
|
return asn1OctetString;
|
|
}
|
|
|
|
// Token: 0x0600CD1B RID: 52507 RVA: 0x002EA380 File Offset: 0x002E8580
|
|
[Token(Token = "0x600CD1B")]
|
|
[Address(RVA = "0x2FDBDD0", Offset = "0x2FDADD0", VA = "0x182FDBDD0")]
|
|
public Asn1SetParser GetUnauthAttrs()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CD1B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.AuthEnvelopedDataParser::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(AuthEnvelopedDataParser::nextObject, ldloc:AuthEnvelopedDataParser(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: 0x04008212 RID: 33298
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008212")]
|
|
private Asn1SequenceParser seq;
|
|
|
|
// Token: 0x04008213 RID: 33299
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008213")]
|
|
private DerInteger version;
|
|
|
|
// Token: 0x04008214 RID: 33300
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008214")]
|
|
private IAsn1Convertible nextObject;
|
|
|
|
// Token: 0x04008215 RID: 33301
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4008215")]
|
|
private bool originatorInfoCalled;
|
|
}
|
|
}
|