192 lines
7.6 KiB
C#
192 lines
7.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02001953 RID: 6483
|
|
[Token(Token = "0x2001953")]
|
|
[StructLayout(3)]
|
|
public class KeyTransRecipientInfo : Asn1Encodable
|
|
{
|
|
// Token: 0x0600ADFA RID: 44538 RVA: 0x0028B5E4 File Offset: 0x002897E4
|
|
[Token(Token = "0x600ADFA")]
|
|
[Address(RVA = "0x28F2430", Offset = "0x28F0E30", VA = "0x1828F2430")]
|
|
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: 0x0600ADFB RID: 44539 RVA: 0x0028B638 File Offset: 0x00289838
|
|
[Token(Token = "0x600ADFB")]
|
|
[Address(RVA = "0x28F22B0", Offset = "0x28F0CB0", VA = "0x1828F22B0")]
|
|
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: 0x0600ADFC RID: 44540 RVA: 0x0028B6A4 File Offset: 0x002898A4
|
|
[Token(Token = "0x600ADFC")]
|
|
[Address(RVA = "0x28F1F00", Offset = "0x28F0900", VA = "0x1828F1F00")]
|
|
public static KeyTransRecipientInfo GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600ADFC)
|
|
|
|
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: 0x17001BD3 RID: 7123
|
|
// (get) Token: 0x0600ADFD RID: 44541 RVA: 0x0028B6F4 File Offset: 0x002898F4
|
|
[Token(Token = "0x17001BD3")]
|
|
public DerInteger Version
|
|
{
|
|
[Token(Token = "0x600ADFD")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.version;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001BD4 RID: 7124
|
|
// (get) Token: 0x0600ADFE RID: 44542 RVA: 0x0028B708 File Offset: 0x00289908
|
|
[Token(Token = "0x17001BD4")]
|
|
public RecipientIdentifier RecipientIdentifier
|
|
{
|
|
[Token(Token = "0x600ADFE")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.rid;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001BD5 RID: 7125
|
|
// (get) Token: 0x0600ADFF RID: 44543 RVA: 0x0028B71C File Offset: 0x0028991C
|
|
[Token(Token = "0x17001BD5")]
|
|
public AlgorithmIdentifier KeyEncryptionAlgorithm
|
|
{
|
|
[Token(Token = "0x600ADFF")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.keyEncryptionAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001BD6 RID: 7126
|
|
// (get) Token: 0x0600AE00 RID: 44544 RVA: 0x0028B730 File Offset: 0x00289930
|
|
[Token(Token = "0x17001BD6")]
|
|
public Asn1OctetString EncryptedKey
|
|
{
|
|
[Token(Token = "0x600AE00")]
|
|
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
|
get
|
|
{
|
|
return this.encryptedKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AE01 RID: 44545 RVA: 0x0028B744 File Offset: 0x00289944
|
|
[Token(Token = "0x600AE01")]
|
|
[Address(RVA = "0x28F20F0", Offset = "0x28F0AF0", VA = "0x1828F20F0", 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: 0x04007266 RID: 29286
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007266")]
|
|
private DerInteger version;
|
|
|
|
// Token: 0x04007267 RID: 29287
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007267")]
|
|
private RecipientIdentifier rid;
|
|
|
|
// Token: 0x04007268 RID: 29288
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007268")]
|
|
private AlgorithmIdentifier keyEncryptionAlgorithm;
|
|
|
|
// Token: 0x04007269 RID: 29289
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007269")]
|
|
private Asn1OctetString encryptedKey;
|
|
}
|
|
}
|