scripts
This commit is contained in:
@@ -0,0 +1,146 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
||||
{
|
||||
// Token: 0x0200192F RID: 6447
|
||||
[Token(Token = "0x200192F")]
|
||||
[StructLayout(3)]
|
||||
public class EncryptedKey : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600ACF5 RID: 44277 RVA: 0x00287874 File Offset: 0x00285A74
|
||||
[Token(Token = "0x600ACF5")]
|
||||
[Address(RVA = "0x1EDBD10", Offset = "0x1EDA710", VA = "0x181EDBD10")]
|
||||
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: 0x0600ACF6 RID: 44278 RVA: 0x002878EC File Offset: 0x00285AEC
|
||||
[Token(Token = "0x600ACF6")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public EncryptedKey(EnvelopedData envelopedData)
|
||||
{
|
||||
this.envelopedData = envelopedData;
|
||||
}
|
||||
|
||||
// Token: 0x0600ACF7 RID: 44279 RVA: 0x00287908 File Offset: 0x00285B08
|
||||
[Token(Token = "0x600ACF7")]
|
||||
[Address(RVA = "0x9BBBE0", Offset = "0x9BA5E0", VA = "0x1809BBBE0")]
|
||||
public EncryptedKey(EncryptedValue encryptedValue)
|
||||
{
|
||||
this.encryptedValue = encryptedValue;
|
||||
}
|
||||
|
||||
// Token: 0x17001B7C RID: 7036
|
||||
// (get) Token: 0x0600ACF8 RID: 44280 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17001B7C")]
|
||||
public virtual bool IsEncryptedValue
|
||||
{
|
||||
[Token(Token = "0x600ACF8")]
|
||||
[Address(RVA = "0x71D270", Offset = "0x71BC70", VA = "0x18071D270", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001B7D RID: 7037
|
||||
// (get) Token: 0x0600ACF9 RID: 44281 RVA: 0x00287924 File Offset: 0x00285B24
|
||||
[Token(Token = "0x17001B7D")]
|
||||
public virtual Asn1Encodable Value
|
||||
{
|
||||
[Token(Token = "0x600ACF9")]
|
||||
[Address(RVA = "0x1EDC0D0", Offset = "0x1EDAAD0", VA = "0x181EDC0D0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ACF9)
|
||||
|
||||
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: 0x0600ACFA RID: 44282 RVA: 0x0028793C File Offset: 0x00285B3C
|
||||
[Token(Token = "0x600ACFA")]
|
||||
[Address(RVA = "0x1EDC040", Offset = "0x1EDAA40", VA = "0x181EDC040", 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: 0x040071E2 RID: 29154
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40071E2")]
|
||||
private readonly EnvelopedData envelopedData;
|
||||
|
||||
// Token: 0x040071E3 RID: 29155
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40071E3")]
|
||||
private readonly EncryptedValue encryptedValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user