148 lines
5.8 KiB
C#
148 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: 0x02001790 RID: 6032
|
|
[Token(Token = "0x2001790")]
|
|
[StructLayout(3)]
|
|
public class SignerInformationStore
|
|
{
|
|
// Token: 0x0600A2F0 RID: 41712 RVA: 0x0025F590 File Offset: 0x0025D790
|
|
[Token(Token = "0x600A2F0")]
|
|
[Address(RVA = "0x665D20", Offset = "0x664720", VA = "0x180665D20")]
|
|
public SignerInformationStore(SignerInformation signerInfo)
|
|
{
|
|
IDictionary dictionary = Platform.CreateHashtable();
|
|
this.table = dictionary;
|
|
base..ctor();
|
|
IList list = Platform.CreateArrayList(1);
|
|
this.all = list;
|
|
IDictionary dictionary2 = this.table;
|
|
IList list2 = this.all;
|
|
}
|
|
|
|
// Token: 0x0600A2F1 RID: 41713 RVA: 0x0025F5D8 File Offset: 0x0025D7D8
|
|
[Token(Token = "0x600A2F1")]
|
|
[Address(RVA = "0x665A20", Offset = "0x664420", VA = "0x180665A20")]
|
|
public SignerInformationStore(ICollection signerInfos)
|
|
{
|
|
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: 0x0600A2F2 RID: 41714 RVA: 0x0025F664 File Offset: 0x0025D864
|
|
[Token(Token = "0x600A2F2")]
|
|
[Address(RVA = "0x6657E0", Offset = "0x6641E0", VA = "0x1806657E0")]
|
|
public SignerInformation GetFirstSigner(SignerID selector)
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.table;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001992 RID: 6546
|
|
// (get) Token: 0x0600A2F3 RID: 41715 RVA: 0x0025F688 File Offset: 0x0025D888
|
|
[Token(Token = "0x17001992")]
|
|
public int Count
|
|
{
|
|
[Token(Token = "0x600A2F3")]
|
|
[Address(RVA = "0x665DF0", Offset = "0x6647F0", VA = "0x180665DF0")]
|
|
get
|
|
{
|
|
IList list = this.all;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A2F4 RID: 41716 RVA: 0x0025F6A4 File Offset: 0x0025D8A4
|
|
[Token(Token = "0x600A2F4")]
|
|
[Address(RVA = "0x6658D0", Offset = "0x6642D0", VA = "0x1806658D0")]
|
|
public ICollection GetSigners()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A2F4)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ICollection BestHTTP.SecureProtocol.Org.BouncyCastle.Cms.SignerInformationStore::GetSigners()
|
|
|
|
---> 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](SignerInformationStore::all, ldloc:SignerInformationStore(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: 0x0600A2F5 RID: 41717 RVA: 0x0025F6BC File Offset: 0x0025D8BC
|
|
[Token(Token = "0x600A2F5")]
|
|
[Address(RVA = "0x665930", Offset = "0x664330", VA = "0x180665930")]
|
|
public ICollection GetSigners(SignerID selector)
|
|
{
|
|
IDictionary dictionary = this.table;
|
|
IList list = Platform.CreateArrayList();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04006B0D RID: 27405
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006B0D")]
|
|
private readonly IList all;
|
|
|
|
// Token: 0x04006B0E RID: 27406
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006B0E")]
|
|
private readonly IDictionary table;
|
|
}
|
|
}
|