181 lines
10 KiB
C#
181 lines
10 KiB
C#
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: 0x02001E5A RID: 7770
|
|
[Token(Token = "0x2001E5A")]
|
|
public class SmimeCapabilities : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C4D0 RID: 50384 RVA: 0x002CEBB0 File Offset: 0x002CCDB0
|
|
[Token(Token = "0x600C4D0")]
|
|
[Address(RVA = "0x272ECE0", Offset = "0x272DAE0", VA = "0x18272ECE0")]
|
|
public static SmimeCapabilities GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C4D0)
|
|
|
|
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: 0x0600C4D1 RID: 50385 RVA: 0x002CEC08 File Offset: 0x002CCE08
|
|
[Token(Token = "0x600C4D1")]
|
|
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
|
public SmimeCapabilities(Asn1Sequence seq)
|
|
{
|
|
this.capabilities = seq;
|
|
}
|
|
|
|
// Token: 0x0600C4D2 RID: 50386 RVA: 0x002CEC24 File Offset: 0x002CCE24
|
|
[Token(Token = "0x600C4D2")]
|
|
[Address(RVA = "0x272EC70", Offset = "0x272DA70", VA = "0x18272EC70")]
|
|
[Obsolete]
|
|
public ArrayList GetCapabilities(DerObjectIdentifier capability)
|
|
{
|
|
ArrayList arrayList = new ArrayList();
|
|
this.DoGetCapabilitiesForOid(capability, arrayList);
|
|
return arrayList;
|
|
}
|
|
|
|
// Token: 0x0600C4D3 RID: 50387 RVA: 0x002CEC40 File Offset: 0x002CCE40
|
|
[Token(Token = "0x600C4D3")]
|
|
[Address(RVA = "0x272EBF0", Offset = "0x272D9F0", VA = "0x18272EBF0")]
|
|
public IList GetCapabilitiesForOid(DerObjectIdentifier capability)
|
|
{
|
|
IList list = Platform.CreateArrayList();
|
|
this.DoGetCapabilitiesForOid(capability, list);
|
|
return list;
|
|
}
|
|
|
|
// Token: 0x0600C4D4 RID: 50388 RVA: 0x002CEC60 File Offset: 0x002CCE60
|
|
[Token(Token = "0x600C4D4")]
|
|
[Address(RVA = "0x272E8C0", Offset = "0x272D6C0", VA = "0x18272E8C0")]
|
|
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: 0x0600C4D5 RID: 50389 RVA: 0x002CECAC File Offset: 0x002CCEAC
|
|
[Token(Token = "0x600C4D5")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C4D5)
|
|
|
|
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: 0x04007C52 RID: 31826
|
|
[Token(Token = "0x4007C52")]
|
|
public static readonly DerObjectIdentifier PreferSignedData = PkcsObjectIdentifiers.PreferSignedData;
|
|
|
|
// Token: 0x04007C53 RID: 31827
|
|
[Token(Token = "0x4007C53")]
|
|
public static readonly DerObjectIdentifier CannotDecryptAny = PkcsObjectIdentifiers.CannotDecryptAny;
|
|
|
|
// Token: 0x04007C54 RID: 31828
|
|
[Token(Token = "0x4007C54")]
|
|
public static readonly DerObjectIdentifier SmimeCapabilitesVersions = PkcsObjectIdentifiers.SmimeCapabilitiesVersions;
|
|
|
|
// Token: 0x04007C55 RID: 31829
|
|
[Token(Token = "0x4007C55")]
|
|
public static readonly DerObjectIdentifier Aes256Cbc = NistObjectIdentifiers.IdAes256Cbc;
|
|
|
|
// Token: 0x04007C56 RID: 31830
|
|
[Token(Token = "0x4007C56")]
|
|
public static readonly DerObjectIdentifier Aes192Cbc = NistObjectIdentifiers.IdAes192Cbc;
|
|
|
|
// Token: 0x04007C57 RID: 31831
|
|
[Token(Token = "0x4007C57")]
|
|
public static readonly DerObjectIdentifier Aes128Cbc = NistObjectIdentifiers.IdAes128Cbc;
|
|
|
|
// Token: 0x04007C58 RID: 31832
|
|
[Token(Token = "0x4007C58")]
|
|
public static readonly DerObjectIdentifier IdeaCbc = new DerObjectIdentifier("1.3.6.1.4.1.188.7.1.1.2");
|
|
|
|
// Token: 0x04007C59 RID: 31833
|
|
[Token(Token = "0x4007C59")]
|
|
public static readonly DerObjectIdentifier Cast5Cbc = new DerObjectIdentifier("1.2.840.113533.7.66.10");
|
|
|
|
// Token: 0x04007C5A RID: 31834
|
|
[Token(Token = "0x4007C5A")]
|
|
public static readonly DerObjectIdentifier DesCbc = new DerObjectIdentifier("1.3.14.3.2.7");
|
|
|
|
// Token: 0x04007C5B RID: 31835
|
|
[Token(Token = "0x4007C5B")]
|
|
public static readonly DerObjectIdentifier DesEde3Cbc = PkcsObjectIdentifiers.DesEde3Cbc;
|
|
|
|
// Token: 0x04007C5C RID: 31836
|
|
[Token(Token = "0x4007C5C")]
|
|
public static readonly DerObjectIdentifier RC2Cbc = PkcsObjectIdentifiers.RC2Cbc;
|
|
|
|
// Token: 0x04007C5D RID: 31837
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007C5D")]
|
|
private Asn1Sequence capabilities;
|
|
}
|
|
}
|