230 lines
13 KiB
C#
230 lines
13 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
|
|
{
|
|
// Token: 0x02001F8F RID: 8079
|
|
[Token(Token = "0x2001F8F")]
|
|
public class Signature : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CA69 RID: 51817 RVA: 0x002DE79C File Offset: 0x002DC99C
|
|
[Token(Token = "0x600CA69")]
|
|
[Address(RVA = "0x2F928F0", Offset = "0x2F918F0", VA = "0x182F928F0")]
|
|
public static Signature GetInstance(Asn1TaggedObject obj, bool explicitly)
|
|
{
|
|
return Signature.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
|
}
|
|
|
|
// Token: 0x0600CA6A RID: 51818 RVA: 0x002DE7B8 File Offset: 0x002DC9B8
|
|
[Token(Token = "0x600CA6A")]
|
|
[Address(RVA = "0x2F92910", Offset = "0x2F91910", VA = "0x182F92910")]
|
|
public static Signature GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CA6A)
|
|
|
|
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: 0x0600CA6B RID: 51819 RVA: 0x002DE80C File Offset: 0x002DCA0C
|
|
[Token(Token = "0x600CA6B")]
|
|
[Address(RVA = "0x2F92F70", Offset = "0x2F91F70", VA = "0x182F92F70")]
|
|
public Signature(AlgorithmIdentifier signatureAlgorithm, DerBitString signatureValue)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CA6B)
|
|
|
|
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: 0x0600CA6C RID: 51820 RVA: 0x002DE854 File Offset: 0x002DCA54
|
|
[Token(Token = "0x600CA6C")]
|
|
[Address(RVA = "0x2F92D10", Offset = "0x2F91D10", VA = "0x182F92D10")]
|
|
public Signature(AlgorithmIdentifier signatureAlgorithm, DerBitString signatureValue, Asn1Sequence certs)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CA6C)
|
|
|
|
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: 0x0600CA6D RID: 51821 RVA: 0x002DE89C File Offset: 0x002DCA9C
|
|
[Token(Token = "0x600CA6D")]
|
|
[Address(RVA = "0x2F92DF0", Offset = "0x2F91DF0", VA = "0x182F92DF0")]
|
|
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: 0x17001F9A RID: 8090
|
|
// (get) Token: 0x0600CA6E RID: 51822 RVA: 0x002DE900 File Offset: 0x002DCB00
|
|
[Token(Token = "0x17001F9A")]
|
|
public AlgorithmIdentifier SignatureAlgorithm
|
|
{
|
|
[Token(Token = "0x600CA6E")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.signatureAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F9B RID: 8091
|
|
// (get) Token: 0x0600CA6F RID: 51823 RVA: 0x002DE914 File Offset: 0x002DCB14
|
|
[Token(Token = "0x17001F9B")]
|
|
public DerBitString SignatureValue
|
|
{
|
|
[Token(Token = "0x600CA6F")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.signatureValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CA70 RID: 51824 RVA: 0x002DE928 File Offset: 0x002DCB28
|
|
[Token(Token = "0x600CA70")]
|
|
[Address(RVA = "0xA1AD00", Offset = "0xA19D00", VA = "0x180A1AD00")]
|
|
public byte[] GetSignatureOctets()
|
|
{
|
|
Asn1Object asn1Object = this.signatureValue.ToAsn1Object();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001F9C RID: 8092
|
|
// (get) Token: 0x0600CA71 RID: 51825 RVA: 0x002DE948 File Offset: 0x002DCB48
|
|
[Token(Token = "0x17001F9C")]
|
|
public Asn1Sequence Certs
|
|
{
|
|
[Token(Token = "0x600CA71")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.certs;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CA72 RID: 51826 RVA: 0x002DE95C File Offset: 0x002DCB5C
|
|
[Token(Token = "0x600CA72")]
|
|
[Address(RVA = "0x2F92B10", Offset = "0x2F91B10", VA = "0x182F92B10", 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: 0x04007FD2 RID: 32722
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007FD2")]
|
|
internal AlgorithmIdentifier signatureAlgorithm;
|
|
|
|
// Token: 0x04007FD3 RID: 32723
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007FD3")]
|
|
internal DerBitString signatureValue;
|
|
|
|
// Token: 0x04007FD4 RID: 32724
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007FD4")]
|
|
internal Asn1Sequence certs;
|
|
}
|
|
}
|