scripts
This commit is contained in:
+188
@@ -0,0 +1,188 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Smime
|
||||
{
|
||||
// Token: 0x0200187D RID: 6269
|
||||
[Token(Token = "0x200187D")]
|
||||
[StructLayout(3)]
|
||||
public class SmimeCapabilities : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600A8F6 RID: 43254 RVA: 0x002766B0 File Offset: 0x002748B0
|
||||
[Token(Token = "0x600A8F6")]
|
||||
[Address(RVA = "0x26353F0", Offset = "0x2633DF0", VA = "0x1826353F0")]
|
||||
public static SmimeCapabilities GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A8F6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Smime.SmimeCapabilities BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Smime.SmimeCapabilities::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_31:
|
||||
stloc:ArgumentException(var_9_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600A8F7 RID: 43255 RVA: 0x00276708 File Offset: 0x00274908
|
||||
[Token(Token = "0x600A8F7")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public SmimeCapabilities(Asn1Sequence seq)
|
||||
{
|
||||
this.capabilities = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600A8F8 RID: 43256 RVA: 0x00276724 File Offset: 0x00274924
|
||||
[Token(Token = "0x600A8F8")]
|
||||
[Address(RVA = "0x2635380", Offset = "0x2633D80", VA = "0x182635380")]
|
||||
[Obsolete]
|
||||
public ArrayList GetCapabilities(DerObjectIdentifier capability)
|
||||
{
|
||||
ArrayList arrayList = new ArrayList();
|
||||
this.DoGetCapabilitiesForOid(capability, arrayList);
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
// Token: 0x0600A8F9 RID: 43257 RVA: 0x00276740 File Offset: 0x00274940
|
||||
[Token(Token = "0x600A8F9")]
|
||||
[Address(RVA = "0x2635300", Offset = "0x2633D00", VA = "0x182635300")]
|
||||
public IList GetCapabilitiesForOid(DerObjectIdentifier capability)
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.DoGetCapabilitiesForOid(capability, list);
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x0600A8FA RID: 43258 RVA: 0x00276760 File Offset: 0x00274960
|
||||
[Token(Token = "0x600A8FA")]
|
||||
[Address(RVA = "0x2634FC0", Offset = "0x26339C0", VA = "0x182634FC0")]
|
||||
private void DoGetCapabilitiesForOid(DerObjectIdentifier capability, IList list)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (capability == 0)
|
||||
{
|
||||
if (this.capabilities.GetEnumerator() != 0)
|
||||
{
|
||||
}
|
||||
SmimeCapability smimeCapability;
|
||||
if (smimeCapability != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (this.capabilities.GetEnumerator() != 0)
|
||||
{
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600A8FB RID: 43259 RVA: 0x002767B8 File Offset: 0x002749B8
|
||||
[Token(Token = "0x600A8FB")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A8FB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Smime.SmimeCapabilities::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(SmimeCapabilities::capabilities, ldloc:SmimeCapabilities(this)))
|
||||
}
|
||||
|
||||
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: 0x04006E0F RID: 28175
|
||||
[Token(Token = "0x4006E0F")]
|
||||
public static readonly DerObjectIdentifier PreferSignedData = PkcsObjectIdentifiers.PreferSignedData;
|
||||
|
||||
// Token: 0x04006E10 RID: 28176
|
||||
[Token(Token = "0x4006E10")]
|
||||
public static readonly DerObjectIdentifier CannotDecryptAny = PkcsObjectIdentifiers.CannotDecryptAny;
|
||||
|
||||
// Token: 0x04006E11 RID: 28177
|
||||
[Token(Token = "0x4006E11")]
|
||||
public static readonly DerObjectIdentifier SmimeCapabilitesVersions = PkcsObjectIdentifiers.SmimeCapabilitiesVersions;
|
||||
|
||||
// Token: 0x04006E12 RID: 28178
|
||||
[Token(Token = "0x4006E12")]
|
||||
public static readonly DerObjectIdentifier Aes256Cbc = NistObjectIdentifiers.IdAes256Cbc;
|
||||
|
||||
// Token: 0x04006E13 RID: 28179
|
||||
[Token(Token = "0x4006E13")]
|
||||
public static readonly DerObjectIdentifier Aes192Cbc = NistObjectIdentifiers.IdAes192Cbc;
|
||||
|
||||
// Token: 0x04006E14 RID: 28180
|
||||
[Token(Token = "0x4006E14")]
|
||||
public static readonly DerObjectIdentifier Aes128Cbc = NistObjectIdentifiers.IdAes128Cbc;
|
||||
|
||||
// Token: 0x04006E15 RID: 28181
|
||||
[Token(Token = "0x4006E15")]
|
||||
public static readonly DerObjectIdentifier IdeaCbc = new DerObjectIdentifier("1.3.6.1.4.1.188.7.1.1.2");
|
||||
|
||||
// Token: 0x04006E16 RID: 28182
|
||||
[Token(Token = "0x4006E16")]
|
||||
public static readonly DerObjectIdentifier Cast5Cbc = new DerObjectIdentifier("1.2.840.113533.7.66.10");
|
||||
|
||||
// Token: 0x04006E17 RID: 28183
|
||||
[Token(Token = "0x4006E17")]
|
||||
public static readonly DerObjectIdentifier DesCbc = new DerObjectIdentifier("1.3.14.3.2.7");
|
||||
|
||||
// Token: 0x04006E18 RID: 28184
|
||||
[Token(Token = "0x4006E18")]
|
||||
public static readonly DerObjectIdentifier DesEde3Cbc = PkcsObjectIdentifiers.DesEde3Cbc;
|
||||
|
||||
// Token: 0x04006E19 RID: 28185
|
||||
[Token(Token = "0x4006E19")]
|
||||
public static readonly DerObjectIdentifier RC2Cbc = PkcsObjectIdentifiers.RC2Cbc;
|
||||
|
||||
// Token: 0x04006E1A RID: 28186
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006E1A")]
|
||||
private Asn1Sequence capabilities;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user