Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Ocsp/Signature.cs
T
2026-04-10 22:50:51 +02:00

230 lines
13 KiB
C#

using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
{
// Token: 0x02001EAF RID: 7855
[Token(Token = "0x2001EAF")]
public class Signature : Asn1Encodable
{
// Token: 0x0600C69B RID: 50843 RVA: 0x002D5F28 File Offset: 0x002D4128
[Token(Token = "0x600C69B")]
[Address(RVA = "0x2BD3380", Offset = "0x2BD2180", VA = "0x182BD3380")]
public static Signature GetInstance(Asn1TaggedObject obj, bool explicitly)
{
return Signature.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
}
// Token: 0x0600C69C RID: 50844 RVA: 0x002D5F44 File Offset: 0x002D4144
[Token(Token = "0x600C69C")]
[Address(RVA = "0x2BD33A0", Offset = "0x2BD21A0", VA = "0x182BD33A0")]
public static Signature GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C69C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.Signature BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.Signature::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_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), 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: 0x0600C69D RID: 50845 RVA: 0x002D5F98 File Offset: 0x002D4198
[Token(Token = "0x600C69D")]
[Address(RVA = "0x2BD3A30", Offset = "0x2BD2830", VA = "0x182BD3A30")]
public Signature(AlgorithmIdentifier signatureAlgorithm, DerBitString signatureValue)
{
/*
An exception occurred when decompiling this method (0600C69D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.Signature::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerBitString)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_31:
stloc:ArgumentException(var_1_3B, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("signatureValue")))
}
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: 0x0600C69E RID: 50846 RVA: 0x002D5FE0 File Offset: 0x002D41E0
[Token(Token = "0x600C69E")]
[Address(RVA = "0x2BD37D0", Offset = "0x2BD25D0", VA = "0x182BD37D0")]
public Signature(AlgorithmIdentifier signatureAlgorithm, DerBitString signatureValue, Asn1Sequence certs)
{
/*
An exception occurred when decompiling this method (0600C69E)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.Signature::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerBitString,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2F:
stloc:ArgumentException(var_1_39, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("signatureValue")))
}
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: 0x0600C69F RID: 50847 RVA: 0x002D6028 File Offset: 0x002D4228
[Token(Token = "0x600C69F")]
[Address(RVA = "0x2BD38B0", Offset = "0x2BD26B0", VA = "0x182BD38B0")]
private Signature(Asn1Sequence seq)
{
for (;;)
{
base..ctor();
Asn1SequenceParser parser = seq.Parser;
AlgorithmIdentifier algorithmIdentifier;
this.signatureAlgorithm = algorithmIdentifier;
Asn1SequenceParser parser2 = seq.Parser;
if (parser2 == 0)
{
}
if (parser2 != 0)
{
this.signatureValue = parser2;
Asn1Encodable asn1Encodable;
if (asn1Encodable != (ulong)3L)
{
return;
}
Asn1SequenceParser parser3 = seq.Parser;
if (parser3 == 0 || parser3 != 0)
{
break;
}
}
}
Asn1Sequence asn1Sequence;
this.certs = asn1Sequence;
}
// Token: 0x17001EFD RID: 7933
// (get) Token: 0x0600C6A0 RID: 50848 RVA: 0x002D608C File Offset: 0x002D428C
[Token(Token = "0x17001EFD")]
public AlgorithmIdentifier SignatureAlgorithm
{
[Token(Token = "0x600C6A0")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.signatureAlgorithm;
}
}
// Token: 0x17001EFE RID: 7934
// (get) Token: 0x0600C6A1 RID: 50849 RVA: 0x002D60A0 File Offset: 0x002D42A0
[Token(Token = "0x17001EFE")]
public DerBitString SignatureValue
{
[Token(Token = "0x600C6A1")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.signatureValue;
}
}
// Token: 0x0600C6A2 RID: 50850 RVA: 0x002D60B4 File Offset: 0x002D42B4
[Token(Token = "0x600C6A2")]
[Address(RVA = "0x2BD35A0", Offset = "0x2BD23A0", VA = "0x182BD35A0")]
public byte[] GetSignatureOctets()
{
Asn1Object asn1Object = this.signatureValue.ToAsn1Object();
throw new NullReferenceException();
}
// Token: 0x17001EFF RID: 7935
// (get) Token: 0x0600C6A3 RID: 50851 RVA: 0x002D60D4 File Offset: 0x002D42D4
[Token(Token = "0x17001EFF")]
public Asn1Sequence Certs
{
[Token(Token = "0x600C6A3")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.certs;
}
}
// Token: 0x0600C6A4 RID: 50852 RVA: 0x002D60E8 File Offset: 0x002D42E8
[Token(Token = "0x600C6A4")]
[Address(RVA = "0x2BD35D0", Offset = "0x2BD23D0", VA = "0x182BD35D0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
AlgorithmIdentifier algorithmIdentifier = this.signatureAlgorithm;
if (algorithmIdentifier != 0)
{
}
array[0] = algorithmIdentifier;
DerBitString derBitString = this.signatureValue;
if (derBitString != 0)
{
}
array[1] = derBitString;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.certs != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
Asn1Sequence asn1Sequence = this.certs;
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, asn1Sequence);
num = 0;
if (derTaggedObject != 0)
{
}
array2[0] = derTaggedObject;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007E19 RID: 32281
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007E19")]
internal AlgorithmIdentifier signatureAlgorithm;
// Token: 0x04007E1A RID: 32282
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007E1A")]
internal DerBitString signatureValue;
// Token: 0x04007E1B RID: 32283
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007E1B")]
internal Asn1Sequence certs;
}
}