139 lines
6.2 KiB
C#
139 lines
6.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02002019 RID: 8217
|
|
[Token(Token = "0x2002019")]
|
|
public class RecipientEncryptedKey : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CDEC RID: 52716 RVA: 0x002ED214 File Offset: 0x002EB414
|
|
[Token(Token = "0x600CDEC")]
|
|
[Address(RVA = "0x2FF0C40", Offset = "0x2FEFC40", VA = "0x182FF0C40")]
|
|
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: 0x0600CDED RID: 52717 RVA: 0x002ED25C File Offset: 0x002EB45C
|
|
[Token(Token = "0x600CDED")]
|
|
[Address(RVA = "0x2FF0B10", Offset = "0x2FEFB10", VA = "0x182FF0B10")]
|
|
public static RecipientEncryptedKey GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return RecipientEncryptedKey.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600CDEE RID: 52718 RVA: 0x002ED278 File Offset: 0x002EB478
|
|
[Token(Token = "0x600CDEE")]
|
|
[Address(RVA = "0x2FF0860", Offset = "0x2FEF860", VA = "0x182FF0860")]
|
|
public static RecipientEncryptedKey GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CDEE)
|
|
|
|
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: 0x0600CDEF RID: 52719 RVA: 0x002ED2D8 File Offset: 0x002EB4D8
|
|
[Token(Token = "0x600CDEF")]
|
|
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
|
public RecipientEncryptedKey(KeyAgreeRecipientIdentifier id, Asn1OctetString encryptedKey)
|
|
{
|
|
this.identifier = id;
|
|
this.encryptedKey = encryptedKey;
|
|
}
|
|
|
|
// Token: 0x1700208C RID: 8332
|
|
// (get) Token: 0x0600CDF0 RID: 52720 RVA: 0x002ED2FC File Offset: 0x002EB4FC
|
|
[Token(Token = "0x1700208C")]
|
|
public KeyAgreeRecipientIdentifier Identifier
|
|
{
|
|
[Token(Token = "0x600CDF0")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.identifier;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700208D RID: 8333
|
|
// (get) Token: 0x0600CDF1 RID: 52721 RVA: 0x002ED310 File Offset: 0x002EB510
|
|
[Token(Token = "0x1700208D")]
|
|
public Asn1OctetString EncryptedKey
|
|
{
|
|
[Token(Token = "0x600CDF1")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.encryptedKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CDF2 RID: 52722 RVA: 0x002ED324 File Offset: 0x002EB524
|
|
[Token(Token = "0x600CDF2")]
|
|
[Address(RVA = "0x2FF0B30", Offset = "0x2FEFB30", VA = "0x182FF0B30", 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: 0x04008279 RID: 33401
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008279")]
|
|
private readonly KeyAgreeRecipientIdentifier identifier;
|
|
|
|
// Token: 0x0400827A RID: 33402
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400827A")]
|
|
private readonly Asn1OctetString encryptedKey;
|
|
}
|
|
}
|