Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Cms/RecipientKeyIdentifier.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

187 lines
9.9 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
{
// Token: 0x0200201C RID: 8220
[Token(Token = "0x200201C")]
public class RecipientKeyIdentifier : Asn1Encodable
{
// Token: 0x0600CE06 RID: 52742 RVA: 0x002ED748 File Offset: 0x002EB948
[Token(Token = "0x600CE06")]
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
public RecipientKeyIdentifier(Asn1OctetString subjectKeyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
{
this.subjectKeyIdentifier = subjectKeyIdentifier;
this.date = date;
this.other = other;
}
// Token: 0x0600CE07 RID: 52743 RVA: 0x002ED770 File Offset: 0x002EB970
[Token(Token = "0x600CE07")]
[Address(RVA = "0x2FF1F30", Offset = "0x2FF0F30", VA = "0x182FF1F30")]
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier)
{
DerOctetString derOctetString = new DerOctetString(subjectKeyIdentifier);
int num = 0;
this.subjectKeyIdentifier = derOctetString;
this.date = num;
this.other = num;
}
// Token: 0x0600CE08 RID: 52744 RVA: 0x002ED7A4 File Offset: 0x002EB9A4
[Token(Token = "0x600CE08")]
[Address(RVA = "0x2FF1FB0", Offset = "0x2FF0FB0", VA = "0x182FF1FB0")]
public RecipientKeyIdentifier(byte[] subjectKeyIdentifier, DerGeneralizedTime date, OtherKeyAttribute other)
{
DerOctetString derOctetString = new DerOctetString(subjectKeyIdentifier);
this.subjectKeyIdentifier = derOctetString;
this.date = date;
this.other = other;
}
// Token: 0x0600CE09 RID: 52745 RVA: 0x002ED7D4 File Offset: 0x002EB9D4
[Token(Token = "0x600CE09")]
[Address(RVA = "0x2FF2040", Offset = "0x2FF1040", VA = "0x182FF2040")]
public RecipientKeyIdentifier(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600CE09)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientKeyIdentifier::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_65:
stloc:ArgumentException(var_9_6F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Invalid RecipientKeyIdentifier")))
}
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: 0x0600CE0A RID: 52746 RVA: 0x002ED854 File Offset: 0x002EBA54
[Token(Token = "0x600CE0A")]
[Address(RVA = "0x2FF1D40", Offset = "0x2FF0D40", VA = "0x182FF1D40")]
public static RecipientKeyIdentifier GetInstance(Asn1TaggedObject ato, bool explicitly)
{
return RecipientKeyIdentifier.GetInstance(Asn1Sequence.GetInstance(ato, explicitly));
}
// Token: 0x0600CE0B RID: 52747 RVA: 0x002ED870 File Offset: 0x002EBA70
[Token(Token = "0x600CE0B")]
[Address(RVA = "0x2FF1B50", Offset = "0x2FF0B50", VA = "0x182FF1B50")]
public static RecipientKeyIdentifier GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600CE0B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientKeyIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.RecipientKeyIdentifier::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("Invalid RecipientKeyIdentifier: "), 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: 0x17002093 RID: 8339
// (get) Token: 0x0600CE0C RID: 52748 RVA: 0x002ED8C0 File Offset: 0x002EBAC0
[Token(Token = "0x17002093")]
public Asn1OctetString SubjectKeyIdentifier
{
[Token(Token = "0x600CE0C")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.subjectKeyIdentifier;
}
}
// Token: 0x17002094 RID: 8340
// (get) Token: 0x0600CE0D RID: 52749 RVA: 0x002ED8D4 File Offset: 0x002EBAD4
[Token(Token = "0x17002094")]
public DerGeneralizedTime Date
{
[Token(Token = "0x600CE0D")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.date;
}
}
// Token: 0x17002095 RID: 8341
// (get) Token: 0x0600CE0E RID: 52750 RVA: 0x002ED8E8 File Offset: 0x002EBAE8
[Token(Token = "0x17002095")]
public OtherKeyAttribute OtherKeyAttribute
{
[Token(Token = "0x600CE0E")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
get
{
return this.other;
}
}
// Token: 0x0600CE0F RID: 52751 RVA: 0x002ED8FC File Offset: 0x002EBAFC
[Token(Token = "0x600CE0F")]
[Address(RVA = "0x2FF1D60", Offset = "0x2FF0D60", VA = "0x182FF1D60", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
Asn1OctetString asn1OctetString = this.subjectKeyIdentifier;
if (asn1OctetString != 0)
{
}
array[0] = asn1OctetString;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
Asn1Encodable[] array2 = new Asn1Encodable[2];
DerGeneralizedTime derGeneralizedTime = this.date;
if (derGeneralizedTime != 0)
{
}
array2[0] = derGeneralizedTime;
OtherKeyAttribute otherKeyAttribute = this.other;
if (otherKeyAttribute != 0)
{
}
array2[1] = otherKeyAttribute;
asn1EncodableVector.AddOptional(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0400827D RID: 33405
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400827D")]
private Asn1OctetString subjectKeyIdentifier;
// Token: 0x0400827E RID: 33406
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400827E")]
private DerGeneralizedTime date;
// Token: 0x0400827F RID: 33407
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400827F")]
private OtherKeyAttribute other;
}
}