Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Cms/RecipientInfo.cs
T
2026-04-10 22:50:51 +02:00

224 lines
10 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
{
// Token: 0x02001F3B RID: 7995
[Token(Token = "0x2001F3B")]
public class RecipientInfo : Asn1Encodable, IAsn1Choice
{
// Token: 0x0600CA2C RID: 51756 RVA: 0x002E4D00 File Offset: 0x002E2F00
[Token(Token = "0x600CA2C")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
public RecipientInfo(KeyTransRecipientInfo info)
{
this.info = info;
}
// Token: 0x0600CA2D RID: 51757 RVA: 0x002E4D1C File Offset: 0x002E2F1C
[Token(Token = "0x600CA2D")]
[Address(RVA = "0x2AE2DC0", Offset = "0x2AE1BC0", VA = "0x182AE2DC0")]
public RecipientInfo(KeyAgreeRecipientInfo info)
{
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 1, info);
num = 0;
this.info = derTaggedObject;
}
// Token: 0x0600CA2E RID: 51758 RVA: 0x002E4D44 File Offset: 0x002E2F44
[Token(Token = "0x600CA2E")]
[Address(RVA = "0x2AE2D40", Offset = "0x2AE1B40", VA = "0x182AE2D40")]
public RecipientInfo(KekRecipientInfo info)
{
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 2, info);
num = 0;
this.info = derTaggedObject;
}
// Token: 0x0600CA2F RID: 51759 RVA: 0x002E4D6C File Offset: 0x002E2F6C
[Token(Token = "0x600CA2F")]
[Address(RVA = "0x2AE2C40", Offset = "0x2AE1A40", VA = "0x182AE2C40")]
public RecipientInfo(PasswordRecipientInfo info)
{
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 3, info);
num = 0;
this.info = derTaggedObject;
}
// Token: 0x0600CA30 RID: 51760 RVA: 0x002E4D94 File Offset: 0x002E2F94
[Token(Token = "0x600CA30")]
[Address(RVA = "0x2AE2CC0", Offset = "0x2AE1AC0", VA = "0x182AE2CC0")]
public RecipientInfo(OtherRecipientInfo info)
{
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, 4, info);
num = 0;
this.info = derTaggedObject;
}
// Token: 0x0600CA31 RID: 51761 RVA: 0x002E4DBC File Offset: 0x002E2FBC
[Token(Token = "0x600CA31")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
public RecipientInfo(Asn1Object info)
{
this.info = info;
}
// Token: 0x0600CA32 RID: 51762 RVA: 0x002E4DD8 File Offset: 0x002E2FD8
[Token(Token = "0x600CA32")]
[Address(RVA = "0x2AE29D0", Offset = "0x2AE17D0", VA = "0x182AE29D0")]
public static RecipientInfo GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600CA32)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientInfo::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_23:
stloc:ArgumentException(var_7_34, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6))))
}
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: 0x17001FF3 RID: 8179
// (get) Token: 0x0600CA33 RID: 51763 RVA: 0x002E4E1C File Offset: 0x002E301C
[Token(Token = "0x17001FF3")]
public DerInteger Version
{
[Token(Token = "0x600CA33")]
[Address(RVA = "0x2AE3190", Offset = "0x2AE1F90", VA = "0x182AE3190")]
get
{
Asn1Encodable asn1Encodable;
for (;;)
{
asn1Encodable = this.info;
if (asn1Encodable == 0 || asn1Encodable == 0)
{
goto IL_55;
}
if (asn1Encodable != 0)
{
if (asn1Encodable == 0)
{
goto IL_4C;
}
if (asn1Encodable == 0)
{
goto IL_43;
}
if (asn1Encodable == 0)
{
goto IL_36;
}
if (asn1Encodable == (ulong)1L)
{
break;
}
}
}
int num;
DerInteger derInteger = new DerInteger(num);
num = 0;
return derInteger;
IL_36:
Asn1Sequence asn1Sequence;
return PasswordRecipientInfo.GetInstance(asn1Sequence).version;
IL_43:
Asn1Sequence asn1Sequence2;
KekRecipientInfo instance = KekRecipientInfo.GetInstance(asn1Sequence2);
IL_4C:
Asn1Sequence asn1Sequence3;
KeyAgreeRecipientInfo instance2 = KeyAgreeRecipientInfo.GetInstance(asn1Sequence3);
IL_55:
KeyTransRecipientInfo instance3 = KeyTransRecipientInfo.GetInstance(asn1Encodable);
throw new NullReferenceException();
}
}
// Token: 0x17001FF4 RID: 8180
// (get) Token: 0x0600CA34 RID: 51764 RVA: 0x002E4E8C File Offset: 0x002E308C
[Token(Token = "0x17001FF4")]
public bool IsTagged
{
[Token(Token = "0x600CA34")]
[Address(RVA = "0x2AE3110", Offset = "0x2AE1F10", VA = "0x182AE3110")]
get
{
Asn1Encodable asn1Encodable = this.info;
if (asn1Encodable == 0)
{
return 0 != 0;
}
return asn1Encodable != 0;
}
}
// Token: 0x17001FF5 RID: 8181
// (get) Token: 0x0600CA35 RID: 51765 RVA: 0x002E4EB8 File Offset: 0x002E30B8
[Token(Token = "0x17001FF5")]
public Asn1Encodable Info
{
[Token(Token = "0x600CA35")]
[Address(RVA = "0x2AE2E40", Offset = "0x2AE1C40", VA = "0x182AE2E40")]
get
{
/*
An exception occurred when decompiling this method (0600CA35)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientInfo::get_Info()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_8E:
stloc:InvalidOperationException(var_18_98, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("unknown tag")))
}
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: 0x0600CA36 RID: 51766 RVA: 0x002E4F60 File Offset: 0x002E3160
[Token(Token = "0x600CA36")]
[Address(RVA = "0x2AE2C10", Offset = "0x2AE1A10", VA = "0x182AE2C10")]
private KekRecipientInfo GetKekInfo(Asn1TaggedObject o)
{
bool explicitly = o.explicitly;
return KekRecipientInfo.GetInstance(Asn1Sequence.GetInstance(o, explicitly));
}
// Token: 0x0600CA37 RID: 51767 RVA: 0x002E4F88 File Offset: 0x002E3188
[Token(Token = "0x600CA37")]
[Address(RVA = "0x53BA50", Offset = "0x53A850", VA = "0x18053BA50", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
return this.info.ToAsn1Object();
}
// Token: 0x040080C3 RID: 32963
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40080C3")]
internal Asn1Encodable info;
}
}