scripts
This commit is contained in:
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001944 RID: 6468
|
||||
[Token(Token = "0x2001944")]
|
||||
[StructLayout(3)]
|
||||
public class CompressedData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AD91 RID: 44433 RVA: 0x00289F24 File Offset: 0x00288124
|
||||
[Token(Token = "0x600AD91")]
|
||||
[Address(RVA = "0x28ECFE0", Offset = "0x28EB9E0", VA = "0x1828ECFE0")]
|
||||
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: 0x0600AD92 RID: 44434 RVA: 0x00289F58 File Offset: 0x00288158
|
||||
[Token(Token = "0x600AD92")]
|
||||
[Address(RVA = "0x28ED060", Offset = "0x28EBA60", VA = "0x1828ED060")]
|
||||
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: 0x0600AD93 RID: 44435 RVA: 0x00289FA8 File Offset: 0x002881A8
|
||||
[Token(Token = "0x600AD93")]
|
||||
[Address(RVA = "0x28ECB80", Offset = "0x28EB580", VA = "0x1828ECB80")]
|
||||
public static CompressedData GetInstance(Asn1TaggedObject ato, bool explicitly)
|
||||
{
|
||||
return CompressedData.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600AD94 RID: 44436 RVA: 0x00289FC4 File Offset: 0x002881C4
|
||||
[Token(Token = "0x600AD94")]
|
||||
[Address(RVA = "0x28ECBA0", Offset = "0x28EB5A0", VA = "0x1828ECBA0")]
|
||||
public static CompressedData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AD94)
|
||||
|
||||
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: 0x17001BAC RID: 7084
|
||||
// (get) Token: 0x0600AD95 RID: 44437 RVA: 0x0028A028 File Offset: 0x00288228
|
||||
[Token(Token = "0x17001BAC")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600AD95")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BAD RID: 7085
|
||||
// (get) Token: 0x0600AD96 RID: 44438 RVA: 0x0028A03C File Offset: 0x0028823C
|
||||
[Token(Token = "0x17001BAD")]
|
||||
public AlgorithmIdentifier CompressionAlgorithmIdentifier
|
||||
{
|
||||
[Token(Token = "0x600AD96")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.compressionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001BAE RID: 7086
|
||||
// (get) Token: 0x0600AD97 RID: 44439 RVA: 0x0028A050 File Offset: 0x00288250
|
||||
[Token(Token = "0x17001BAE")]
|
||||
public ContentInfo EncapContentInfo
|
||||
{
|
||||
[Token(Token = "0x600AD97")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.encapContentInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AD98 RID: 44440 RVA: 0x0028A064 File Offset: 0x00288264
|
||||
[Token(Token = "0x600AD98")]
|
||||
[Address(RVA = "0x28ECE70", Offset = "0x28EB870", VA = "0x1828ECE70", 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: 0x04007239 RID: 29241
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007239")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x0400723A RID: 29242
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400723A")]
|
||||
private AlgorithmIdentifier compressionAlgorithm;
|
||||
|
||||
// Token: 0x0400723B RID: 29243
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400723B")]
|
||||
private ContentInfo encapContentInfo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user