173 lines
7.1 KiB
C#
173 lines
7.1 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02002005 RID: 8197
|
|
[Token(Token = "0x2002005")]
|
|
public class EncryptedContentInfo : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CD4F RID: 52559 RVA: 0x002EAFE0 File Offset: 0x002E91E0
|
|
[Token(Token = "0x600CD4F")]
|
|
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
|
public EncryptedContentInfo(DerObjectIdentifier contentType, AlgorithmIdentifier contentEncryptionAlgorithm, Asn1OctetString encryptedContent)
|
|
{
|
|
this.contentType = contentType;
|
|
this.contentEncryptionAlgorithm = contentEncryptionAlgorithm;
|
|
this.encryptedContent = encryptedContent;
|
|
}
|
|
|
|
// Token: 0x0600CD50 RID: 52560 RVA: 0x002EB008 File Offset: 0x002E9208
|
|
[Token(Token = "0x600CD50")]
|
|
[Address(RVA = "0x2FE1B50", Offset = "0x2FE0B50", VA = "0x182FE1B50")]
|
|
public EncryptedContentInfo(Asn1Sequence seq)
|
|
{
|
|
for (;;)
|
|
{
|
|
base..ctor();
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
if (parser == 0)
|
|
{
|
|
}
|
|
if (parser != 0)
|
|
{
|
|
this.contentType = parser;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
this.contentEncryptionAlgorithm = algorithmIdentifier;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable <= (ulong)2L)
|
|
{
|
|
return;
|
|
}
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
if (parser3 == 0 || parser3 != 0)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
Asn1OctetString asn1OctetString;
|
|
this.encryptedContent = asn1OctetString;
|
|
}
|
|
|
|
// Token: 0x0600CD51 RID: 52561 RVA: 0x002EB06C File Offset: 0x002E926C
|
|
[Token(Token = "0x600CD51")]
|
|
[Address(RVA = "0x2FE1760", Offset = "0x2FE0760", VA = "0x182FE1760")]
|
|
public static EncryptedContentInfo GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CD51)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.EncryptedContentInfo::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("Invalid EncryptedContentInfo: "), 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: 0x17002052 RID: 8274
|
|
// (get) Token: 0x0600CD52 RID: 52562 RVA: 0x002EB0BC File Offset: 0x002E92BC
|
|
[Token(Token = "0x17002052")]
|
|
public DerObjectIdentifier ContentType
|
|
{
|
|
[Token(Token = "0x600CD52")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.contentType;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002053 RID: 8275
|
|
// (get) Token: 0x0600CD53 RID: 52563 RVA: 0x002EB0D0 File Offset: 0x002E92D0
|
|
[Token(Token = "0x17002053")]
|
|
public AlgorithmIdentifier ContentEncryptionAlgorithm
|
|
{
|
|
[Token(Token = "0x600CD53")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.contentEncryptionAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002054 RID: 8276
|
|
// (get) Token: 0x0600CD54 RID: 52564 RVA: 0x002EB0E4 File Offset: 0x002E92E4
|
|
[Token(Token = "0x17002054")]
|
|
public Asn1OctetString EncryptedContent
|
|
{
|
|
[Token(Token = "0x600CD54")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.encryptedContent;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CD55 RID: 52565 RVA: 0x002EB0F8 File Offset: 0x002E92F8
|
|
[Token(Token = "0x600CD55")]
|
|
[Address(RVA = "0x2FE1950", Offset = "0x2FE0950", VA = "0x182FE1950", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
|
if (derObjectIdentifier != 0)
|
|
{
|
|
}
|
|
array[0] = derObjectIdentifier;
|
|
AlgorithmIdentifier algorithmIdentifier = this.contentEncryptionAlgorithm;
|
|
if (algorithmIdentifier != 0)
|
|
{
|
|
}
|
|
array[1] = algorithmIdentifier;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.encryptedContent != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1OctetString asn1OctetString = this.encryptedContent;
|
|
int num;
|
|
int num2;
|
|
BerTaggedObject berTaggedObject = new BerTaggedObject(num != 0, num2, asn1OctetString);
|
|
num2 = 0;
|
|
num = 0;
|
|
if (berTaggedObject != 0)
|
|
{
|
|
}
|
|
array2[0] = berTaggedObject;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400823F RID: 33343
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400823F")]
|
|
private DerObjectIdentifier contentType;
|
|
|
|
// Token: 0x04008240 RID: 33344
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008240")]
|
|
private AlgorithmIdentifier contentEncryptionAlgorithm;
|
|
|
|
// Token: 0x04008241 RID: 33345
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008241")]
|
|
private Asn1OctetString encryptedContent;
|
|
}
|
|
}
|