Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Cms/RecipientEncryptedKey.cs
T
2026-04-08 23:40:05 +02:00

141 lines
6.3 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
{
// Token: 0x0200195C RID: 6492
[Token(Token = "0x200195C")]
[StructLayout(3)]
public class RecipientEncryptedKey : Asn1Encodable
{
// Token: 0x0600AE44 RID: 44612 RVA: 0x0028C574 File Offset: 0x0028A774
[Token(Token = "0x600AE44")]
[Address(RVA = "0x28FBCA0", Offset = "0x28FA6A0", VA = "0x1828FBCA0")]
private RecipientEncryptedKey(Asn1Sequence seq)
{
Asn1SequenceParser parser2;
for (;;)
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
KeyAgreeRecipientIdentifier keyAgreeRecipientIdentifier;
this.identifier = keyAgreeRecipientIdentifier;
parser2 = seq.Parser;
if (parser2 == 0)
{
break;
}
if (parser2 != 0)
{
goto Block_1;
}
}
this.encryptedKey = parser2;
return;
Block_1:
this.encryptedKey = parser2;
}
// Token: 0x0600AE45 RID: 44613 RVA: 0x0028C5BC File Offset: 0x0028A7BC
[Token(Token = "0x600AE45")]
[Address(RVA = "0x28FBB70", Offset = "0x28FA570", VA = "0x1828FBB70")]
public static RecipientEncryptedKey GetInstance(Asn1TaggedObject obj, bool isExplicit)
{
return RecipientEncryptedKey.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
}
// Token: 0x0600AE46 RID: 44614 RVA: 0x0028C5D8 File Offset: 0x0028A7D8
[Token(Token = "0x600AE46")]
[Address(RVA = "0x28FB8C0", Offset = "0x28FA2C0", VA = "0x1828FB8C0")]
public static RecipientEncryptedKey GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600AE46)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientEncryptedKey BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientEncryptedKey::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_31:
stloc:string(var_8_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_9_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid RecipientEncryptedKey: "), ldloc:string(var_8_37)), ldstr:string("obj")))
}
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: 0x0600AE47 RID: 44615 RVA: 0x0028C638 File Offset: 0x0028A838
[Token(Token = "0x600AE47")]
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
public RecipientEncryptedKey(KeyAgreeRecipientIdentifier id, Asn1OctetString encryptedKey)
{
this.identifier = id;
this.encryptedKey = encryptedKey;
}
// Token: 0x17001BEE RID: 7150
// (get) Token: 0x0600AE48 RID: 44616 RVA: 0x0028C65C File Offset: 0x0028A85C
[Token(Token = "0x17001BEE")]
public KeyAgreeRecipientIdentifier Identifier
{
[Token(Token = "0x600AE48")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.identifier;
}
}
// Token: 0x17001BEF RID: 7151
// (get) Token: 0x0600AE49 RID: 44617 RVA: 0x0028C670 File Offset: 0x0028A870
[Token(Token = "0x17001BEF")]
public Asn1OctetString EncryptedKey
{
[Token(Token = "0x600AE49")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.encryptedKey;
}
}
// Token: 0x0600AE4A RID: 44618 RVA: 0x0028C684 File Offset: 0x0028A884
[Token(Token = "0x600AE4A")]
[Address(RVA = "0x28FBB90", Offset = "0x28FA590", VA = "0x1828FBB90", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
KeyAgreeRecipientIdentifier keyAgreeRecipientIdentifier = this.identifier;
if (keyAgreeRecipientIdentifier != 0)
{
}
array[0] = keyAgreeRecipientIdentifier;
Asn1OctetString asn1OctetString = this.encryptedKey;
if (asn1OctetString != 0)
{
}
array[1] = asn1OctetString;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x0400727D RID: 29309
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x400727D")]
private readonly KeyAgreeRecipientIdentifier identifier;
// Token: 0x0400727E RID: 29310
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400727E")]
private readonly Asn1OctetString encryptedKey;
}
}