m
This commit is contained in:
+180
@@ -0,0 +1,180 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
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: 0x02001F3A RID: 7994
|
||||
[Token(Token = "0x2001F3A")]
|
||||
public class SmimeCapabilities : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C89E RID: 51358 RVA: 0x002D7434 File Offset: 0x002D5634
|
||||
[Token(Token = "0x600C89E")]
|
||||
[Address(RVA = "0x2D92110", Offset = "0x2D91110", VA = "0x182D92110")]
|
||||
public static SmimeCapabilities GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C89E)
|
||||
|
||||
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: 0x0600C89F RID: 51359 RVA: 0x002D748C File Offset: 0x002D568C
|
||||
[Token(Token = "0x600C89F")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public SmimeCapabilities(Asn1Sequence seq)
|
||||
{
|
||||
this.capabilities = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600C8A0 RID: 51360 RVA: 0x002D74A8 File Offset: 0x002D56A8
|
||||
[Token(Token = "0x600C8A0")]
|
||||
[Address(RVA = "0x2D920A0", Offset = "0x2D910A0", VA = "0x182D920A0")]
|
||||
[Obsolete]
|
||||
public ArrayList GetCapabilities(DerObjectIdentifier capability)
|
||||
{
|
||||
ArrayList arrayList = new ArrayList();
|
||||
this.DoGetCapabilitiesForOid(capability, arrayList);
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
// Token: 0x0600C8A1 RID: 51361 RVA: 0x002D74C4 File Offset: 0x002D56C4
|
||||
[Token(Token = "0x600C8A1")]
|
||||
[Address(RVA = "0x2D92020", Offset = "0x2D91020", VA = "0x182D92020")]
|
||||
public IList GetCapabilitiesForOid(DerObjectIdentifier capability)
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.DoGetCapabilitiesForOid(capability, list);
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x0600C8A2 RID: 51362 RVA: 0x002D74E4 File Offset: 0x002D56E4
|
||||
[Token(Token = "0x600C8A2")]
|
||||
[Address(RVA = "0x2D91CF0", Offset = "0x2D90CF0", VA = "0x182D91CF0")]
|
||||
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 != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (this.capabilities.GetEnumerator() != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600C8A3 RID: 51363 RVA: 0x002D7530 File Offset: 0x002D5730
|
||||
[Token(Token = "0x600C8A3")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C8A3)
|
||||
|
||||
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: 0x04007E0B RID: 32267
|
||||
[Token(Token = "0x4007E0B")]
|
||||
public static readonly DerObjectIdentifier PreferSignedData = PkcsObjectIdentifiers.PreferSignedData;
|
||||
|
||||
// Token: 0x04007E0C RID: 32268
|
||||
[Token(Token = "0x4007E0C")]
|
||||
public static readonly DerObjectIdentifier CannotDecryptAny = PkcsObjectIdentifiers.CannotDecryptAny;
|
||||
|
||||
// Token: 0x04007E0D RID: 32269
|
||||
[Token(Token = "0x4007E0D")]
|
||||
public static readonly DerObjectIdentifier SmimeCapabilitesVersions = PkcsObjectIdentifiers.SmimeCapabilitiesVersions;
|
||||
|
||||
// Token: 0x04007E0E RID: 32270
|
||||
[Token(Token = "0x4007E0E")]
|
||||
public static readonly DerObjectIdentifier Aes256Cbc = NistObjectIdentifiers.IdAes256Cbc;
|
||||
|
||||
// Token: 0x04007E0F RID: 32271
|
||||
[Token(Token = "0x4007E0F")]
|
||||
public static readonly DerObjectIdentifier Aes192Cbc = NistObjectIdentifiers.IdAes192Cbc;
|
||||
|
||||
// Token: 0x04007E10 RID: 32272
|
||||
[Token(Token = "0x4007E10")]
|
||||
public static readonly DerObjectIdentifier Aes128Cbc = NistObjectIdentifiers.IdAes128Cbc;
|
||||
|
||||
// Token: 0x04007E11 RID: 32273
|
||||
[Token(Token = "0x4007E11")]
|
||||
public static readonly DerObjectIdentifier IdeaCbc = new DerObjectIdentifier("1.3.6.1.4.1.188.7.1.1.2");
|
||||
|
||||
// Token: 0x04007E12 RID: 32274
|
||||
[Token(Token = "0x4007E12")]
|
||||
public static readonly DerObjectIdentifier Cast5Cbc = new DerObjectIdentifier("1.2.840.113533.7.66.10");
|
||||
|
||||
// Token: 0x04007E13 RID: 32275
|
||||
[Token(Token = "0x4007E13")]
|
||||
public static readonly DerObjectIdentifier DesCbc = new DerObjectIdentifier("1.3.14.3.2.7");
|
||||
|
||||
// Token: 0x04007E14 RID: 32276
|
||||
[Token(Token = "0x4007E14")]
|
||||
public static readonly DerObjectIdentifier DesEde3Cbc = PkcsObjectIdentifiers.DesEde3Cbc;
|
||||
|
||||
// Token: 0x04007E15 RID: 32277
|
||||
[Token(Token = "0x4007E15")]
|
||||
public static readonly DerObjectIdentifier RC2Cbc = PkcsObjectIdentifiers.RC2Cbc;
|
||||
|
||||
// Token: 0x04007E16 RID: 32278
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007E16")]
|
||||
private Asn1Sequence capabilities;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user