122 lines
5.6 KiB
C#
122 lines
5.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02001958 RID: 6488
|
|
[Token(Token = "0x2001958")]
|
|
[StructLayout(3)]
|
|
public class OtherKeyAttribute : Asn1Encodable
|
|
{
|
|
// Token: 0x0600AE26 RID: 44582 RVA: 0x0028BF10 File Offset: 0x0028A110
|
|
[Token(Token = "0x600AE26")]
|
|
[Address(RVA = "0x28F4C50", Offset = "0x28F3650", VA = "0x1828F4C50")]
|
|
public static OtherKeyAttribute GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AE26)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OtherKeyAttribute BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OtherKeyAttribute::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_29:
|
|
stloc:string(var_7_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_8_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_7_2F)), 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.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: 0x0600AE27 RID: 44583 RVA: 0x0028BF68 File Offset: 0x0028A168
|
|
[Token(Token = "0x600AE27")]
|
|
[Address(RVA = "0x28F5000", Offset = "0x28F3A00", VA = "0x1828F5000")]
|
|
public OtherKeyAttribute(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser;
|
|
do
|
|
{
|
|
base..ctor();
|
|
parser = seq.Parser;
|
|
}
|
|
while (parser != 0 && parser == 0);
|
|
this.keyAttrId = parser;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
this.keyAttr = parser2;
|
|
}
|
|
|
|
// Token: 0x0600AE28 RID: 44584 RVA: 0x0028BFA8 File Offset: 0x0028A1A8
|
|
[Token(Token = "0x600AE28")]
|
|
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
|
public OtherKeyAttribute(DerObjectIdentifier keyAttrId, Asn1Encodable keyAttr)
|
|
{
|
|
this.keyAttrId = keyAttrId;
|
|
this.keyAttr = keyAttr;
|
|
}
|
|
|
|
// Token: 0x17001BE4 RID: 7140
|
|
// (get) Token: 0x0600AE29 RID: 44585 RVA: 0x0028BFCC File Offset: 0x0028A1CC
|
|
[Token(Token = "0x17001BE4")]
|
|
public DerObjectIdentifier KeyAttrId
|
|
{
|
|
[Token(Token = "0x600AE29")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.keyAttrId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001BE5 RID: 7141
|
|
// (get) Token: 0x0600AE2A RID: 44586 RVA: 0x0028BFE0 File Offset: 0x0028A1E0
|
|
[Token(Token = "0x17001BE5")]
|
|
public Asn1Encodable KeyAttr
|
|
{
|
|
[Token(Token = "0x600AE2A")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.keyAttr;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AE2B RID: 44587 RVA: 0x0028BFF4 File Offset: 0x0028A1F4
|
|
[Token(Token = "0x600AE2B")]
|
|
[Address(RVA = "0x28F4EF0", Offset = "0x28F38F0", VA = "0x1828F4EF0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
DerObjectIdentifier derObjectIdentifier = this.keyAttrId;
|
|
if (derObjectIdentifier != 0)
|
|
{
|
|
}
|
|
array[0] = derObjectIdentifier;
|
|
Asn1Encodable asn1Encodable = this.keyAttr;
|
|
if (asn1Encodable != 0)
|
|
{
|
|
}
|
|
array[1] = asn1Encodable;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007273 RID: 29299
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007273")]
|
|
private DerObjectIdentifier keyAttrId;
|
|
|
|
// Token: 0x04007274 RID: 29300
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007274")]
|
|
private Asn1Encodable keyAttr;
|
|
}
|
|
}
|