160 lines
6.8 KiB
C#
160 lines
6.8 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02002001 RID: 8193
|
|
[Token(Token = "0x2002001")]
|
|
public class CompressedData : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CD39 RID: 52537 RVA: 0x002EABD8 File Offset: 0x002E8DD8
|
|
[Token(Token = "0x600CD39")]
|
|
[Address(RVA = "0x2FE09E0", Offset = "0x2FDF9E0", VA = "0x182FE09E0")]
|
|
public CompressedData(AlgorithmIdentifier compressionAlgorithm, ContentInfo encapContentInfo)
|
|
{
|
|
int num;
|
|
DerInteger derInteger = new DerInteger(num);
|
|
num = 0;
|
|
this.version = derInteger;
|
|
this.compressionAlgorithm = compressionAlgorithm;
|
|
this.encapContentInfo = encapContentInfo;
|
|
}
|
|
|
|
// Token: 0x0600CD3A RID: 52538 RVA: 0x002EAC0C File Offset: 0x002E8E0C
|
|
[Token(Token = "0x600CD3A")]
|
|
[Address(RVA = "0x2FE0A60", Offset = "0x2FDFA60", VA = "0x182FE0A60")]
|
|
public CompressedData(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser;
|
|
do
|
|
{
|
|
base..ctor();
|
|
parser = seq.Parser;
|
|
}
|
|
while (parser != 0 && parser == 0);
|
|
this.version = parser;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
this.compressionAlgorithm = algorithmIdentifier;
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
ContentInfo contentInfo;
|
|
this.encapContentInfo = contentInfo;
|
|
}
|
|
|
|
// Token: 0x0600CD3B RID: 52539 RVA: 0x002EAC5C File Offset: 0x002E8E5C
|
|
[Token(Token = "0x600CD3B")]
|
|
[Address(RVA = "0x2FE0580", Offset = "0x2FDF580", VA = "0x182FE0580")]
|
|
public static CompressedData GetInstance(Asn1TaggedObject ato, bool explicitly)
|
|
{
|
|
return CompressedData.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
|
}
|
|
|
|
// Token: 0x0600CD3C RID: 52540 RVA: 0x002EAC78 File Offset: 0x002E8E78
|
|
[Token(Token = "0x600CD3C")]
|
|
[Address(RVA = "0x2FE05A0", Offset = "0x2FDF5A0", VA = "0x182FE05A0")]
|
|
public static CompressedData GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CD3C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.CompressedData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.CompressedData::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_3C:
|
|
stloc:string(var_10_42, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_11_55, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid CompressedData: "), ldloc:string(var_10_42))))
|
|
}
|
|
|
|
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: 0x1700204A RID: 8266
|
|
// (get) Token: 0x0600CD3D RID: 52541 RVA: 0x002EACDC File Offset: 0x002E8EDC
|
|
[Token(Token = "0x1700204A")]
|
|
public DerInteger Version
|
|
{
|
|
[Token(Token = "0x600CD3D")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.version;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700204B RID: 8267
|
|
// (get) Token: 0x0600CD3E RID: 52542 RVA: 0x002EACF0 File Offset: 0x002E8EF0
|
|
[Token(Token = "0x1700204B")]
|
|
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
|
{
|
|
[Token(Token = "0x600CD3E")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.compressionAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700204C RID: 8268
|
|
// (get) Token: 0x0600CD3F RID: 52543 RVA: 0x002EAD04 File Offset: 0x002E8F04
|
|
[Token(Token = "0x1700204C")]
|
|
public ContentInfo EncapContentInfo
|
|
{
|
|
[Token(Token = "0x600CD3F")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.encapContentInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CD40 RID: 52544 RVA: 0x002EAD18 File Offset: 0x002E8F18
|
|
[Token(Token = "0x600CD40")]
|
|
[Address(RVA = "0x2FE0870", Offset = "0x2FDF870", VA = "0x182FE0870", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[3];
|
|
DerInteger derInteger = this.version;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[0] = derInteger;
|
|
AlgorithmIdentifier algorithmIdentifier = this.compressionAlgorithm;
|
|
if (algorithmIdentifier != 0)
|
|
{
|
|
}
|
|
array[1] = algorithmIdentifier;
|
|
ContentInfo contentInfo = this.encapContentInfo;
|
|
if (contentInfo != 0)
|
|
{
|
|
}
|
|
array[2] = contentInfo;
|
|
BerSequence berSequence = new BerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008235 RID: 33333
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008235")]
|
|
private DerInteger version;
|
|
|
|
// Token: 0x04008236 RID: 33334
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008236")]
|
|
private AlgorithmIdentifier compressionAlgorithm;
|
|
|
|
// Token: 0x04008237 RID: 33335
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008237")]
|
|
private ContentInfo encapContentInfo;
|
|
}
|
|
}
|