oh dear
This commit is contained in:
@@ -0,0 +1,144 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
||||
{
|
||||
// Token: 0x02001F0C RID: 7948
|
||||
[Token(Token = "0x2001F0C")]
|
||||
public class EncryptedKey : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C8CF RID: 51407 RVA: 0x002DFD58 File Offset: 0x002DDF58
|
||||
[Token(Token = "0x600C8CF")]
|
||||
[Address(RVA = "0x1888A70", Offset = "0x1887870", VA = "0x181888A70")]
|
||||
public static EncryptedKey GetInstance(object o)
|
||||
{
|
||||
while (o != 0)
|
||||
{
|
||||
if (o != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (o != 0)
|
||||
{
|
||||
EncryptedKey encryptedKey;
|
||||
EnvelopedData envelopedData;
|
||||
encryptedKey.envelopedData = envelopedData;
|
||||
return encryptedKey;
|
||||
}
|
||||
if (o == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (o != 0)
|
||||
{
|
||||
EncryptedKey encryptedKey2;
|
||||
encryptedKey2.encryptedValue = o;
|
||||
return encryptedKey2;
|
||||
}
|
||||
}
|
||||
EncryptedValue encryptedValue;
|
||||
if (o != 0)
|
||||
{
|
||||
if (o == 0)
|
||||
{
|
||||
encryptedValue = new EncryptedValue(Asn1Sequence.GetInstance(o));
|
||||
}
|
||||
}
|
||||
EncryptedKey encryptedKey3;
|
||||
encryptedKey3.encryptedValue = encryptedValue;
|
||||
return encryptedKey3;
|
||||
}
|
||||
|
||||
// Token: 0x0600C8D0 RID: 51408 RVA: 0x002DFDD0 File Offset: 0x002DDFD0
|
||||
[Token(Token = "0x600C8D0")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public EncryptedKey(EnvelopedData envelopedData)
|
||||
{
|
||||
this.envelopedData = envelopedData;
|
||||
}
|
||||
|
||||
// Token: 0x0600C8D1 RID: 51409 RVA: 0x002DFDEC File Offset: 0x002DDFEC
|
||||
[Token(Token = "0x600C8D1")]
|
||||
[Address(RVA = "0x4F28D0", Offset = "0x4F16D0", VA = "0x1804F28D0")]
|
||||
public EncryptedKey(EncryptedValue encryptedValue)
|
||||
{
|
||||
this.encryptedValue = encryptedValue;
|
||||
}
|
||||
|
||||
// Token: 0x17001F7D RID: 8061
|
||||
// (get) Token: 0x0600C8D2 RID: 51410 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17001F7D")]
|
||||
public virtual bool IsEncryptedValue
|
||||
{
|
||||
[Token(Token = "0x600C8D2")]
|
||||
[Address(RVA = "0x1227D50", Offset = "0x1226B50", VA = "0x181227D50", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F7E RID: 8062
|
||||
// (get) Token: 0x0600C8D3 RID: 51411 RVA: 0x002DFE08 File Offset: 0x002DE008
|
||||
[Token(Token = "0x17001F7E")]
|
||||
public virtual Asn1Encodable Value
|
||||
{
|
||||
[Token(Token = "0x600C8D3")]
|
||||
[Address(RVA = "0x1888E30", Offset = "0x1887C30", VA = "0x181888E30", Slot = "7")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C8D3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.EncryptedKey::get_Value()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_00:
|
||||
brtrue(IL_00, cne:bool(ldfld:EncryptedValue(EncryptedKey::encryptedValue, ldloc:EncryptedKey(this)), ldc.i4:int32[exp:EncryptedValue](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.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: 0x0600C8D4 RID: 51412 RVA: 0x002DFE20 File Offset: 0x002DE020
|
||||
[Token(Token = "0x600C8D4")]
|
||||
[Address(RVA = "0x1888DA0", Offset = "0x1887BA0", VA = "0x181888DA0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
EncryptedValue encryptedValue = this.encryptedValue;
|
||||
if (encryptedValue == 0)
|
||||
{
|
||||
EnvelopedData envelopedData = this.envelopedData;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, envelopedData);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
}
|
||||
return encryptedValue.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x04008025 RID: 32805
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008025")]
|
||||
private readonly EnvelopedData envelopedData;
|
||||
|
||||
// Token: 0x04008026 RID: 32806
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008026")]
|
||||
private readonly EncryptedValue encryptedValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user