152 lines
5.8 KiB
C#
152 lines
5.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
|
|
{
|
|
// Token: 0x0200178A RID: 6026
|
|
[Token(Token = "0x200178A")]
|
|
[StructLayout(3)]
|
|
public class RecipientInformationStore
|
|
{
|
|
// Token: 0x0600A2BD RID: 41661 RVA: 0x0025E800 File Offset: 0x0025CA00
|
|
[Token(Token = "0x600A2BD")]
|
|
[Address(RVA = "0x662D10", Offset = "0x661710", VA = "0x180662D10")]
|
|
public RecipientInformationStore(ICollection recipientInfos)
|
|
{
|
|
int num2;
|
|
do
|
|
{
|
|
IDictionary dictionary = Platform.CreateHashtable();
|
|
this.table = dictionary;
|
|
base..ctor();
|
|
IList list;
|
|
if (dictionary != 0)
|
|
{
|
|
int num = 0;
|
|
if (dictionary == 0)
|
|
{
|
|
goto IL_74;
|
|
}
|
|
IDictionary dictionary2 = this.table;
|
|
if (num != 0 && num == 0)
|
|
{
|
|
goto IL_62;
|
|
}
|
|
IDictionary dictionary3 = this.table;
|
|
list = Platform.CreateArrayList(1);
|
|
num2 = 0;
|
|
}
|
|
if (list != 0)
|
|
{
|
|
}
|
|
if (num2 != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num2 != 0);
|
|
IList list2;
|
|
this.all = list2;
|
|
return;
|
|
IL_62:
|
|
throw new NullReferenceException();
|
|
IL_74:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001984 RID: 6532
|
|
[Token(Token = "0x17001984")]
|
|
public RecipientInformation this[RecipientID selector]
|
|
{
|
|
[Token(Token = "0x600A2BE")]
|
|
[Address(RVA = "0x662AD0", Offset = "0x6614D0", VA = "0x180662AD0")]
|
|
get
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.table;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A2BF RID: 41663 RVA: 0x0025E8B0 File Offset: 0x0025CAB0
|
|
[Token(Token = "0x600A2BF")]
|
|
[Address(RVA = "0x662AD0", Offset = "0x6614D0", VA = "0x180662AD0")]
|
|
public RecipientInformation GetFirstRecipient(RecipientID selector)
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.table;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001985 RID: 6533
|
|
// (get) Token: 0x0600A2C0 RID: 41664 RVA: 0x0025E8D4 File Offset: 0x0025CAD4
|
|
[Token(Token = "0x17001985")]
|
|
public int Count
|
|
{
|
|
[Token(Token = "0x600A2C0")]
|
|
[Address(RVA = "0x663010", Offset = "0x661A10", VA = "0x180663010")]
|
|
get
|
|
{
|
|
IList list = this.all;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A2C1 RID: 41665 RVA: 0x0025E8F0 File Offset: 0x0025CAF0
|
|
[Token(Token = "0x600A2C1")]
|
|
[Address(RVA = "0x662CB0", Offset = "0x6616B0", VA = "0x180662CB0")]
|
|
public ICollection GetRecipients()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A2C1)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ICollection BestHTTP.SecureProtocol.Org.BouncyCastle.Cms.RecipientInformationStore::GetRecipients()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:IList(var_0_0B, call:IList(Platform::CreateArrayList, ldfld:IList[exp:ICollection](RecipientInformationStore::all, ldloc:RecipientInformationStore(this))))
|
|
}
|
|
|
|
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: 0x0600A2C2 RID: 41666 RVA: 0x0025E908 File Offset: 0x0025CB08
|
|
[Token(Token = "0x600A2C2")]
|
|
[Address(RVA = "0x662BC0", Offset = "0x6615C0", VA = "0x180662BC0")]
|
|
public ICollection GetRecipients(RecipientID selector)
|
|
{
|
|
IDictionary dictionary = this.table;
|
|
IList list = Platform.CreateArrayList();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04006AF3 RID: 27379
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006AF3")]
|
|
private readonly IList all;
|
|
|
|
// Token: 0x04006AF4 RID: 27380
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006AF4")]
|
|
private readonly IDictionary table;
|
|
}
|
|
}
|