a
This commit is contained in:
@@ -0,0 +1,159 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F21 RID: 7969
|
||||
[Token(Token = "0x2001F21")]
|
||||
public class CompressedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C96B RID: 51563 RVA: 0x002E23E4 File Offset: 0x002E05E4
|
||||
[Token(Token = "0x600C96B")]
|
||||
[Address(RVA = "0x2AD5450", Offset = "0x2AD4250", VA = "0x182AD5450")]
|
||||
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: 0x0600C96C RID: 51564 RVA: 0x002E2418 File Offset: 0x002E0618
|
||||
[Token(Token = "0x600C96C")]
|
||||
[Address(RVA = "0x2AD54D0", Offset = "0x2AD42D0", VA = "0x182AD54D0")]
|
||||
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: 0x0600C96D RID: 51565 RVA: 0x002E2468 File Offset: 0x002E0668
|
||||
[Token(Token = "0x600C96D")]
|
||||
[Address(RVA = "0x2AD4FF0", Offset = "0x2AD3DF0", VA = "0x182AD4FF0")]
|
||||
public static CompressedData GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return CompressedData.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C96E RID: 51566 RVA: 0x002E2484 File Offset: 0x002E0684
|
||||
[Token(Token = "0x600C96E")]
|
||||
[Address(RVA = "0x2AD5010", Offset = "0x2AD3E10", VA = "0x182AD5010")]
|
||||
public static CompressedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C96E)
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17001FAD RID: 8109
|
||||
// (get) Token: 0x0600C96F RID: 51567 RVA: 0x002E24E8 File Offset: 0x002E06E8
|
||||
[Token(Token = "0x17001FAD")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C96F")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAE RID: 8110
|
||||
// (get) Token: 0x0600C970 RID: 51568 RVA: 0x002E24FC File Offset: 0x002E06FC
|
||||
[Token(Token = "0x17001FAE")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C970")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FAF RID: 8111
|
||||
// (get) Token: 0x0600C971 RID: 51569 RVA: 0x002E2510 File Offset: 0x002E0710
|
||||
[Token(Token = "0x17001FAF")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600C971")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.encapContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C972 RID: 51570 RVA: 0x002E2524 File Offset: 0x002E0724
|
||||
[Token(Token = "0x600C972")]
|
||||
[Address(RVA = "0x2AD52E0", Offset = "0x2AD40E0", VA = "0x182AD52E0", 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: 0x0400807C RID: 32892
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400807C")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400807D RID: 32893
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400807D")]
|
||||
private AlgorithmIdentifier compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400807E RID: 32894
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400807E")]
|
||||
private ContentInfo encapContentInfo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user