m
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: 0x02001FEF RID: 8175
|
||||
[Token(Token = "0x2001FEF")]
|
||||
public class PkiArchiveOptions : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CCB3 RID: 52403 RVA: 0x002E8A20 File Offset: 0x002E6C20
|
||||
[Token(Token = "0x600CCB3")]
|
||||
[Address(RVA = "0x23B84F0", Offset = "0x23B74F0", VA = "0x1823B84F0")]
|
||||
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: 0x0600CCB4 RID: 52404 RVA: 0x002E8ABC File Offset: 0x002E6CBC
|
||||
[Token(Token = "0x600CCB4")]
|
||||
[Address(RVA = "0x23B89F0", Offset = "0x23B79F0", VA = "0x1823B89F0")]
|
||||
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: 0x0600CCB5 RID: 52405 RVA: 0x002E8B4C File Offset: 0x002E6D4C
|
||||
[Token(Token = "0x600CCB5")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public PkiArchiveOptions(EncryptedKey encKey)
|
||||
{
|
||||
this.value = encKey;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB6 RID: 52406 RVA: 0x002E8B68 File Offset: 0x002E6D68
|
||||
[Token(Token = "0x600CCB6")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
public PkiArchiveOptions(Asn1OctetString keyGenParameters)
|
||||
{
|
||||
this.value = keyGenParameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600CCB7 RID: 52407 RVA: 0x002E8B84 File Offset: 0x002E6D84
|
||||
[Token(Token = "0x600CCB7")]
|
||||
[Address(RVA = "0x23B88F0", Offset = "0x23B78F0", VA = "0x1823B88F0")]
|
||||
public PkiArchiveOptions(bool archiveRemGenPrivKey)
|
||||
{
|
||||
if (archiveRemGenPrivKey)
|
||||
{
|
||||
DerBoolean @true = DerBoolean.True;
|
||||
this.value = @true;
|
||||
return;
|
||||
}
|
||||
DerBoolean @false = DerBoolean.False;
|
||||
this.value = @false;
|
||||
}
|
||||
|
||||
// Token: 0x17002024 RID: 8228
|
||||
// (get) Token: 0x0600CCB8 RID: 52408 RVA: 0x002E8BB8 File Offset: 0x002E6DB8
|
||||
[Token(Token = "0x17002024")]
|
||||
public virtual int Type
|
||||
{
|
||||
[Token(Token = "0x600CCB8")]
|
||||
[Address(RVA = "0x23B8B30", Offset = "0x23B7B30", VA = "0x1823B8B30", Slot = "6")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.value;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (asn1Encodable == 0 || asn1Encodable == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002025 RID: 8229
|
||||
// (get) Token: 0x0600CCB9 RID: 52409 RVA: 0x002E8BE4 File Offset: 0x002E6DE4
|
||||
[Token(Token = "0x17002025")]
|
||||
public virtual Asn1Encodable Value
|
||||
{
|
||||
[Token(Token = "0x600CCB9")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CCBA RID: 52410 RVA: 0x002E8BF8 File Offset: 0x002E6DF8
|
||||
[Token(Token = "0x600CCBA")]
|
||||
[Address(RVA = "0x23B87D0", Offset = "0x23B77D0", VA = "0x1823B87D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CCBA)
|
||||
|
||||
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: 0x040081E8 RID: 33256
|
||||
[Token(Token = "0x40081E8")]
|
||||
public const int encryptedPrivKey = 0;
|
||||
|
||||
// Token: 0x040081E9 RID: 33257
|
||||
[Token(Token = "0x40081E9")]
|
||||
public const int keyGenParameters = 1;
|
||||
|
||||
// Token: 0x040081EA RID: 33258
|
||||
[Token(Token = "0x40081EA")]
|
||||
public const int archiveRemGenPrivKey = 2;
|
||||
|
||||
// Token: 0x040081EB RID: 33259
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081EB")]
|
||||
private readonly Asn1Encodable value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user