oh dear
This commit is contained in:
+189
@@ -0,0 +1,189 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F30 RID: 7984
|
||||
[Token(Token = "0x2001F30")]
|
||||
public class KeyTransRecipientInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C9D4 RID: 51668 RVA: 0x002E3AE4 File Offset: 0x002E1CE4
|
||||
[Token(Token = "0x600C9D4")]
|
||||
[Address(RVA = "0x2ADA680", Offset = "0x2AD9480", VA = "0x182ADA680")]
|
||||
public KeyTransRecipientInfo(RecipientIdentifier rid, AlgorithmIdentifier keyEncryptionAlgorithm, Asn1OctetString encryptedKey)
|
||||
{
|
||||
Asn1Object asn1Object = rid.ToAsn1Object();
|
||||
if (asn1Object == 0 || asn1Object == 0)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(2);
|
||||
}
|
||||
DerInteger derInteger2 = new DerInteger(2);
|
||||
this.version = derInteger2;
|
||||
this.rid = rid;
|
||||
this.keyEncryptionAlgorithm = keyEncryptionAlgorithm;
|
||||
this.encryptedKey = encryptedKey;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9D5 RID: 51669 RVA: 0x002E3B38 File Offset: 0x002E1D38
|
||||
[Token(Token = "0x600C9D5")]
|
||||
[Address(RVA = "0x2ADA500", Offset = "0x2AD9300", VA = "0x182ADA500")]
|
||||
public KeyTransRecipientInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser4;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.version = parser;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
RecipientIdentifier recipientIdentifier;
|
||||
this.rid = recipientIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.keyEncryptionAlgorithm = algorithmIdentifier;
|
||||
parser4 = seq.Parser;
|
||||
if (parser4 == 0 || parser4 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.encryptedKey = parser4;
|
||||
}
|
||||
|
||||
// Token: 0x0600C9D6 RID: 51670 RVA: 0x002E3BA4 File Offset: 0x002E1DA4
|
||||
[Token(Token = "0x600C9D6")]
|
||||
[Address(RVA = "0x2ADA150", Offset = "0x2AD8F50", VA = "0x182ADA150")]
|
||||
public static KeyTransRecipientInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C9D6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyTransRecipientInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.KeyTransRecipientInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Illegal object in KeyTransRecipientInfo: "), ldloc:string(var_6_2C))))
|
||||
}
|
||||
|
||||
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: 0x17001FD4 RID: 8148
|
||||
// (get) Token: 0x0600C9D7 RID: 51671 RVA: 0x002E3BF4 File Offset: 0x002E1DF4
|
||||
[Token(Token = "0x17001FD4")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C9D7")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD5 RID: 8149
|
||||
// (get) Token: 0x0600C9D8 RID: 51672 RVA: 0x002E3C08 File Offset: 0x002E1E08
|
||||
[Token(Token = "0x17001FD5")]
|
||||
public RecipientIdentifier RecipientIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C9D8")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.rid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD6 RID: 8150
|
||||
// (get) Token: 0x0600C9D9 RID: 51673 RVA: 0x002E3C1C File Offset: 0x002E1E1C
|
||||
[Token(Token = "0x17001FD6")]
|
||||
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C9D9")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.keyEncryptionAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001FD7 RID: 8151
|
||||
// (get) Token: 0x0600C9DA RID: 51674 RVA: 0x002E3C30 File Offset: 0x002E1E30
|
||||
[Token(Token = "0x17001FD7")]
|
||||
public Asn1OctetString EncryptedKey
|
||||
{
|
||||
[Token(Token = "0x600C9DA")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.encryptedKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C9DB RID: 51675 RVA: 0x002E3C44 File Offset: 0x002E1E44
|
||||
[Token(Token = "0x600C9DB")]
|
||||
[Address(RVA = "0x2ADA340", Offset = "0x2AD9140", VA = "0x182ADA340", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[4];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
RecipientIdentifier recipientIdentifier = this.rid;
|
||||
if (recipientIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = recipientIdentifier;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.keyEncryptionAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[2] = algorithmIdentifier;
|
||||
Asn1OctetString asn1OctetString = this.encryptedKey;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[3] = asn1OctetString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040080A9 RID: 32937
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080A9")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x040080AA RID: 32938
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40080AA")]
|
||||
private RecipientIdentifier rid;
|
||||
|
||||
// Token: 0x040080AB RID: 32939
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40080AB")]
|
||||
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
||||
|
||||
// Token: 0x040080AC RID: 32940
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40080AC")]
|
||||
private Asn1OctetString encryptedKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user