a
This commit is contained in:
+138
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F39 RID: 7993
|
||||
[Token(Token = "0x2001F39")]
|
||||
public class RecipientEncryptedKey : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA1E RID: 51742 RVA: 0x002E4A74 File Offset: 0x002E2C74
|
||||
[Token(Token = "0x600CA1E")]
|
||||
[Address(RVA = "0x2AE2420", Offset = "0x2AE1220", VA = "0x182AE2420")]
|
||||
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: 0x0600CA1F RID: 51743 RVA: 0x002E4ABC File Offset: 0x002E2CBC
|
||||
[Token(Token = "0x600CA1F")]
|
||||
[Address(RVA = "0x2AE22F0", Offset = "0x2AE10F0", VA = "0x182AE22F0")]
|
||||
public static RecipientEncryptedKey GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return RecipientEncryptedKey.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA20 RID: 51744 RVA: 0x002E4AD8 File Offset: 0x002E2CD8
|
||||
[Token(Token = "0x600CA20")]
|
||||
[Address(RVA = "0x2AE2040", Offset = "0x2AE0E40", VA = "0x182AE2040")]
|
||||
public static RecipientEncryptedKey GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA20)
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA21 RID: 51745 RVA: 0x002E4B38 File Offset: 0x002E2D38
|
||||
[Token(Token = "0x600CA21")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public RecipientEncryptedKey(KeyAgreeRecipientIdentifier id, Asn1OctetString encryptedKey)
|
||||
{
|
||||
this.identifier = id;
|
||||
this.encryptedKey = encryptedKey;
|
||||
}
|
||||
|
||||
// Token: 0x17001FEF RID: 8175
|
||||
// (get) Token: 0x0600CA22 RID: 51746 RVA: 0x002E4B5C File Offset: 0x002E2D5C
|
||||
[Token(Token = "0x17001FEF")]
|
||||
public KeyAgreeRecipientIdentifier Identifier
|
||||
{
|
||||
[Token(Token = "0x600CA22")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.identifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FF0 RID: 8176
|
||||
// (get) Token: 0x0600CA23 RID: 51747 RVA: 0x002E4B70 File Offset: 0x002E2D70
|
||||
[Token(Token = "0x17001FF0")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600CA23")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA24 RID: 51748 RVA: 0x002E4B84 File Offset: 0x002E2D84
|
||||
[Token(Token = "0x600CA24")]
|
||||
[Address(RVA = "0x2AE2310", Offset = "0x2AE1110", VA = "0x182AE2310", 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: 0x040080C0 RID: 32960
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080C0")]
|
||||
private readonly KeyAgreeRecipientIdentifier identifier;
|
||||
|
||||
// Token: 0x040080C1 RID: 32961
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080C1")]
|
||||
private readonly Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user