145 lines
6.4 KiB
C#
145 lines
6.4 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
|
{
|
|
// Token: 0x02001FEC RID: 8172
|
|
[Token(Token = "0x2001FEC")]
|
|
public class EncryptedKey : Asn1Encodable, IAsn1Choice
|
|
{
|
|
// Token: 0x0600CC9D RID: 52381 RVA: 0x002E854C File Offset: 0x002E674C
|
|
[Token(Token = "0x600CC9D")]
|
|
[Address(RVA = "0x23B54D0", Offset = "0x23B44D0", VA = "0x1823B54D0")]
|
|
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: 0x0600CC9E RID: 52382 RVA: 0x002E85C4 File Offset: 0x002E67C4
|
|
[Token(Token = "0x600CC9E")]
|
|
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
|
public EncryptedKey(EnvelopedData envelopedData)
|
|
{
|
|
this.envelopedData = envelopedData;
|
|
}
|
|
|
|
// Token: 0x0600CC9F RID: 52383 RVA: 0x002E85E0 File Offset: 0x002E67E0
|
|
[Token(Token = "0x600CC9F")]
|
|
[Address(RVA = "0xA1AEE0", Offset = "0xA19EE0", VA = "0x180A1AEE0")]
|
|
public EncryptedKey(EncryptedValue encryptedValue)
|
|
{
|
|
this.encryptedValue = encryptedValue;
|
|
}
|
|
|
|
// Token: 0x1700201A RID: 8218
|
|
// (get) Token: 0x0600CCA0 RID: 52384 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x1700201A")]
|
|
public virtual bool IsEncryptedValue
|
|
{
|
|
[Token(Token = "0x600CCA0")]
|
|
[Address(RVA = "0x5EFE20", Offset = "0x5EEE20", VA = "0x1805EFE20", Slot = "6")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700201B RID: 8219
|
|
// (get) Token: 0x0600CCA1 RID: 52385 RVA: 0x002E85FC File Offset: 0x002E67FC
|
|
[Token(Token = "0x1700201B")]
|
|
public virtual Asn1Encodable Value
|
|
{
|
|
[Token(Token = "0x600CCA1")]
|
|
[Address(RVA = "0x23B5890", Offset = "0x23B4890", VA = "0x1823B5890", Slot = "7")]
|
|
get
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CCA1)
|
|
|
|
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: 0x0600CCA2 RID: 52386 RVA: 0x002E8614 File Offset: 0x002E6814
|
|
[Token(Token = "0x600CCA2")]
|
|
[Address(RVA = "0x23B5800", Offset = "0x23B4800", VA = "0x1823B5800", 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: 0x040081DE RID: 33246
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40081DE")]
|
|
private readonly EnvelopedData envelopedData;
|
|
|
|
// Token: 0x040081DF RID: 33247
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40081DF")]
|
|
private readonly EncryptedValue encryptedValue;
|
|
}
|
|
}
|