134 lines
6.1 KiB
C#
134 lines
6.1 KiB
C#
using System;
|
|
using System.IO;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
|
{
|
|
// Token: 0x02001ED9 RID: 7897
|
|
[Token(Token = "0x2001ED9")]
|
|
public class EssCertID : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C777 RID: 51063 RVA: 0x002DA1AC File Offset: 0x002D83AC
|
|
[Token(Token = "0x600C777")]
|
|
[Address(RVA = "0x28377D0", Offset = "0x28365D0", VA = "0x1828377D0")]
|
|
public static EssCertID GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C777)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.EssCertID BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.EssCertID::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_39:
|
|
stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(o)))
|
|
stloc:ArgumentException(var_10_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'EssCertID' factory : "), ldloc:string(var_9_3F), ldstr:string("."))))
|
|
}
|
|
|
|
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: 0x0600C778 RID: 51064 RVA: 0x002DA214 File Offset: 0x002D8414
|
|
[Token(Token = "0x600C778")]
|
|
[Address(RVA = "0x2837D40", Offset = "0x2836B40", VA = "0x182837D40")]
|
|
public EssCertID(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
Asn1OctetString asn1OctetString;
|
|
this.certHash = asn1OctetString;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)1L)
|
|
{
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
IssuerSerial issuerSerial;
|
|
this.issuerSerial = issuerSerial;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C779 RID: 51065 RVA: 0x002DA254 File Offset: 0x002D8454
|
|
[Token(Token = "0x600C779")]
|
|
[Address(RVA = "0x2837CD0", Offset = "0x2836AD0", VA = "0x182837CD0")]
|
|
public EssCertID(byte[] hash)
|
|
{
|
|
DerOctetString derOctetString = new DerOctetString(hash);
|
|
this.certHash = derOctetString;
|
|
}
|
|
|
|
// Token: 0x0600C77A RID: 51066 RVA: 0x002DA278 File Offset: 0x002D8478
|
|
[Token(Token = "0x600C77A")]
|
|
[Address(RVA = "0x2837C50", Offset = "0x2836A50", VA = "0x182837C50")]
|
|
public EssCertID(byte[] hash, IssuerSerial issuerSerial)
|
|
{
|
|
DerOctetString derOctetString = new DerOctetString(hash);
|
|
this.certHash = derOctetString;
|
|
this.issuerSerial = issuerSerial;
|
|
}
|
|
|
|
// Token: 0x0600C77B RID: 51067 RVA: 0x002DA2A0 File Offset: 0x002D84A0
|
|
[Token(Token = "0x600C77B")]
|
|
[Address(RVA = "0x5F5F00", Offset = "0x5F4D00", VA = "0x1805F5F00")]
|
|
public byte[] GetCertHash()
|
|
{
|
|
Stream octetStream = ((Asn1OctetStringParser)this.certHash).GetOctetStream();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001F30 RID: 7984
|
|
// (get) Token: 0x0600C77C RID: 51068 RVA: 0x002DA2C0 File Offset: 0x002D84C0
|
|
[Token(Token = "0x17001F30")]
|
|
public IssuerSerial IssuerSerial
|
|
{
|
|
[Token(Token = "0x600C77C")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.issuerSerial;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C77D RID: 51069 RVA: 0x002DA2D4 File Offset: 0x002D84D4
|
|
[Token(Token = "0x600C77D")]
|
|
[Address(RVA = "0x2837AE0", Offset = "0x28368E0", VA = "0x182837AE0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
Asn1OctetString asn1OctetString = this.certHash;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array[0] = asn1OctetString;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.issuerSerial != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
IssuerSerial issuerSerial = this.issuerSerial;
|
|
if (issuerSerial != 0)
|
|
{
|
|
}
|
|
array2[0] = issuerSerial;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007F60 RID: 32608
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007F60")]
|
|
private Asn1OctetString certHash;
|
|
|
|
// Token: 0x04007F61 RID: 32609
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007F61")]
|
|
private IssuerSerial issuerSerial;
|
|
}
|
|
}
|