Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/X509/PrivateKeyUsagePeriod.cs
T
2026-04-08 23:40:05 +02:00

167 lines
6.4 KiB
C#

using System;
using System.Collections;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001837 RID: 6199
[Token(Token = "0x2001837")]
[StructLayout(3)]
public class PrivateKeyUsagePeriod : Asn1Encodable
{
// Token: 0x0600A716 RID: 42774 RVA: 0x0026E18C File Offset: 0x0026C38C
[Token(Token = "0x600A716")]
[Address(RVA = "0x2B0F690", Offset = "0x2B0E090", VA = "0x182B0F690")]
public static PrivateKeyUsagePeriod GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600A716)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PrivateKeyUsagePeriod BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PrivateKeyUsagePeriod::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3C:
stloc:string(var_9_42, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_10_5A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_9_42)), 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: 0x0600A717 RID: 42775 RVA: 0x0026E1F4 File Offset: 0x0026C3F4
[Token(Token = "0x600A717")]
[Address(RVA = "0x2B0FB30", Offset = "0x2B0E530", VA = "0x182B0FB30")]
private PrivateKeyUsagePeriod(Asn1Sequence seq)
{
int num;
do
{
num = 0;
base..ctor();
IEnumerator enumerator = seq.GetEnumerator();
DerGeneralizedTime instance2;
if (enumerator != 0)
{
if (num < enumerator)
{
num += num;
num++;
}
ulong num2;
num2 += (ulong)1L;
int num3 = 0;
if (num == 0)
{
goto IL_6B;
}
if (num3 != 0)
{
while (num3 != 1)
{
}
int num4 = 0;
DerGeneralizedTime instance = DerGeneralizedTime.GetInstance(num, num4 != 0);
this._notAfter = instance;
}
int num5 = 0;
instance2 = DerGeneralizedTime.GetInstance(num, num5 != 0);
this._notBefore = instance2;
}
if (instance2 != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return;
IL_6B:
throw new NullReferenceException();
}
// Token: 0x17001A28 RID: 6696
// (get) Token: 0x0600A718 RID: 42776 RVA: 0x0026E278 File Offset: 0x0026C478
[Token(Token = "0x17001A28")]
public DerGeneralizedTime NotBefore
{
[Token(Token = "0x600A718")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this._notBefore;
}
}
// Token: 0x17001A29 RID: 6697
// (get) Token: 0x0600A719 RID: 42777 RVA: 0x0026E28C File Offset: 0x0026C48C
[Token(Token = "0x17001A29")]
public DerGeneralizedTime NotAfter
{
[Token(Token = "0x600A719")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this._notAfter;
}
}
// Token: 0x0600A71A RID: 42778 RVA: 0x0026E2A0 File Offset: 0x0026C4A0
[Token(Token = "0x600A71A")]
[Address(RVA = "0x2B0F920", Offset = "0x2B0E320", VA = "0x182B0F920", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1EncodableVector asn1EncodableVector;
if (this._notBefore != (ulong)0L)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DerGeneralizedTime notBefore = this._notBefore;
int num;
int num2;
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, notBefore);
num2 = 0;
num = 0;
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
asn1EncodableVector.Add(array);
}
if (this._notAfter != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
DerGeneralizedTime notAfter = this._notAfter;
int num3;
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, notAfter);
num3 = 0;
if (derTaggedObject2 != 0)
{
}
array2[0] = derTaggedObject2;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04006CA0 RID: 27808
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006CA0")]
private DerGeneralizedTime _notBefore;
// Token: 0x04006CA1 RID: 27809
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006CA1")]
private DerGeneralizedTime _notAfter;
}
}