oh dear
This commit is contained in:
+193
@@ -0,0 +1,193 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
||||
{
|
||||
// Token: 0x02001F0F RID: 7951
|
||||
[Token(Token = "0x2001F0F")]
|
||||
public class PkiArchiveOptions : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C8E5 RID: 51429 RVA: 0x002E022C File Offset: 0x002DE42C
|
||||
[Token(Token = "0x600C8E5")]
|
||||
[Address(RVA = "0x188BA90", Offset = "0x188A890", VA = "0x18188BA90")]
|
||||
public static PkiArchiveOptions GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (obj != 0)
|
||||
{
|
||||
PkiArchiveOptions pkiArchiveOptions;
|
||||
if (pkiArchiveOptions != 0)
|
||||
{
|
||||
if (pkiArchiveOptions != 0 && pkiArchiveOptions != (ulong)1L)
|
||||
{
|
||||
IL_68:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
Asn1Object asn1Object;
|
||||
EncryptedKey instance = EncryptedKey.GetInstance(asn1Object);
|
||||
pkiArchiveOptions.value = instance;
|
||||
return pkiArchiveOptions;
|
||||
}
|
||||
}
|
||||
else if (obj != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
string typeName = Platform.GetTypeName(obj);
|
||||
string text = "Invalid object: " + typeName;
|
||||
ArgumentException ex = new ArgumentException(text, "obj");
|
||||
goto IL_68;
|
||||
}
|
||||
|
||||
// Token: 0x0600C8E6 RID: 51430 RVA: 0x002E02C8 File Offset: 0x002DE4C8
|
||||
[Token(Token = "0x600C8E6")]
|
||||
[Address(RVA = "0x188BF90", Offset = "0x188AD90", VA = "0x18188BF90")]
|
||||
private PkiArchiveOptions(Asn1TaggedObject tagged)
|
||||
{
|
||||
int tagNo = tagged.tagNo;
|
||||
if (tagNo == 0)
|
||||
{
|
||||
EncryptedKey instance = EncryptedKey.GetInstance(tagged.GetObject());
|
||||
this.value = instance;
|
||||
return;
|
||||
}
|
||||
if (tagNo == 0)
|
||||
{
|
||||
int num = 0;
|
||||
Asn1OctetString instance2 = Asn1OctetString.GetInstance(tagged, num != 0);
|
||||
this.value = instance2;
|
||||
return;
|
||||
}
|
||||
if (tagNo == 1)
|
||||
{
|
||||
int num2 = 0;
|
||||
DerBoolean instance3 = DerBoolean.GetInstance(tagged, num2 != 0);
|
||||
this.value = instance3;
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C8E7 RID: 51431 RVA: 0x002E0358 File Offset: 0x002DE558
|
||||
[Token(Token = "0x600C8E7")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public PkiArchiveOptions(EncryptedKey encKey)
|
||||
{
|
||||
this.value = encKey;
|
||||
}
|
||||
|
||||
// Token: 0x0600C8E8 RID: 51432 RVA: 0x002E0374 File Offset: 0x002DE574
|
||||
[Token(Token = "0x600C8E8")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public PkiArchiveOptions(Asn1OctetString keyGenParameters)
|
||||
{
|
||||
this.value = keyGenParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600C8E9 RID: 51433 RVA: 0x002E0390 File Offset: 0x002DE590
|
||||
[Token(Token = "0x600C8E9")]
|
||||
[Address(RVA = "0x188BE90", Offset = "0x188AC90", VA = "0x18188BE90")]
|
||||
public PkiArchiveOptions(bool archiveRemGenPrivKey)
|
||||
{
|
||||
if (archiveRemGenPrivKey)
|
||||
{
|
||||
DerBoolean @true = DerBoolean.True;
|
||||
this.value = @true;
|
||||
return;
|
||||
}
|
||||
DerBoolean @false = DerBoolean.False;
|
||||
this.value = @false;
|
||||
}
|
||||
|
||||
// Token: 0x17001F87 RID: 8071
|
||||
// (get) Token: 0x0600C8EA RID: 51434 RVA: 0x002E03C4 File Offset: 0x002DE5C4
|
||||
[Token(Token = "0x17001F87")]
|
||||
public virtual int Type
|
||||
{
|
||||
[Token(Token = "0x600C8EA")]
|
||||
[Address(RVA = "0x188C0D0", Offset = "0x188AED0", VA = "0x18188C0D0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.value;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (asn1Encodable == 0 || asn1Encodable == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F88 RID: 8072
|
||||
// (get) Token: 0x0600C8EB RID: 51435 RVA: 0x002E03F0 File Offset: 0x002DE5F0
|
||||
[Token(Token = "0x17001F88")]
|
||||
public virtual Asn1Encodable Value
|
||||
{
|
||||
[Token(Token = "0x600C8EB")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C8EC RID: 51436 RVA: 0x002E0404 File Offset: 0x002DE604
|
||||
[Token(Token = "0x600C8EC")]
|
||||
[Address(RVA = "0x188BD70", Offset = "0x188AB70", VA = "0x18188BD70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C8EC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PkiArchiveOptions::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:DerTaggedObject(var_5_39, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldloc:int32[exp:bool](var_6), ldc.i4:int32(2), ldloc:Asn1Encodable(var_0_06)))
|
||||
stloc:int32(var_6, ldc.i4:int32(0))
|
||||
}
|
||||
|
||||
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: 0x0400802F RID: 32815
|
||||
[Token(Token = "0x400802F")]
|
||||
public const int encryptedPrivKey = 0;
|
||||
|
||||
// Token: 0x04008030 RID: 32816
|
||||
[Token(Token = "0x4008030")]
|
||||
public const int keyGenParameters = 1;
|
||||
|
||||
// Token: 0x04008031 RID: 32817
|
||||
[Token(Token = "0x4008031")]
|
||||
public const int archiveRemGenPrivKey = 2;
|
||||
|
||||
// Token: 0x04008032 RID: 32818
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008032")]
|
||||
private readonly Asn1Encodable value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user