142 lines
6.2 KiB
C#
142 lines
6.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02001F23 RID: 7971
|
|
[Token(Token = "0x2001F23")]
|
|
public class ContentInfo : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C977 RID: 51575 RVA: 0x002E25FC File Offset: 0x002E07FC
|
|
[Token(Token = "0x600C977")]
|
|
[Address(RVA = "0x2AD5BD0", Offset = "0x2AD49D0", VA = "0x182AD5BD0")]
|
|
public static ContentInfo GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C977)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.ContentInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.ContentInfo::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_26:
|
|
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C))))
|
|
}
|
|
|
|
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: 0x0600C978 RID: 51576 RVA: 0x002E264C File Offset: 0x002E084C
|
|
[Token(Token = "0x600C978")]
|
|
[Address(RVA = "0x2AD5BB0", Offset = "0x2AD49B0", VA = "0x182AD5BB0")]
|
|
public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return ContentInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600C979 RID: 51577 RVA: 0x002E2668 File Offset: 0x002E0868
|
|
[Token(Token = "0x600C979")]
|
|
[Address(RVA = "0x2AD5F60", Offset = "0x2AD4D60", VA = "0x182AD5F60")]
|
|
private ContentInfo(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser;
|
|
do
|
|
{
|
|
base..ctor();
|
|
parser = seq.Parser;
|
|
}
|
|
while (parser != 0 && parser == 0);
|
|
this.contentType = parser;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)1L)
|
|
{
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
Asn1Object asn1Object;
|
|
this.content = asn1Object;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C97A RID: 51578 RVA: 0x002E26C4 File Offset: 0x002E08C4
|
|
[Token(Token = "0x600C97A")]
|
|
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
|
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
|
|
{
|
|
this.contentType = contentType;
|
|
this.content = content;
|
|
}
|
|
|
|
// Token: 0x17001FB2 RID: 8114
|
|
// (get) Token: 0x0600C97B RID: 51579 RVA: 0x002E26E8 File Offset: 0x002E08E8
|
|
[Token(Token = "0x17001FB2")]
|
|
public DerObjectIdentifier ContentType
|
|
{
|
|
[Token(Token = "0x600C97B")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.contentType;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001FB3 RID: 8115
|
|
// (get) Token: 0x0600C97C RID: 51580 RVA: 0x002E26FC File Offset: 0x002E08FC
|
|
[Token(Token = "0x17001FB3")]
|
|
public Asn1Encodable Content
|
|
{
|
|
[Token(Token = "0x600C97C")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.content;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C97D RID: 51581 RVA: 0x002E2710 File Offset: 0x002E0910
|
|
[Token(Token = "0x600C97D")]
|
|
[Address(RVA = "0x2AD5DC0", Offset = "0x2AD4BC0", VA = "0x182AD5DC0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
|
if (derObjectIdentifier != 0)
|
|
{
|
|
}
|
|
array[0] = derObjectIdentifier;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.content != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1Encodable asn1Encodable = this.content;
|
|
int num;
|
|
BerTaggedObject berTaggedObject = new BerTaggedObject(num, asn1Encodable);
|
|
num = 0;
|
|
if (berTaggedObject != 0)
|
|
{
|
|
}
|
|
array2[0] = berTaggedObject;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008082 RID: 32898
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008082")]
|
|
private readonly DerObjectIdentifier contentType;
|
|
|
|
// Token: 0x04008083 RID: 32899
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008083")]
|
|
private readonly Asn1Encodable content;
|
|
}
|
|
}
|