141 lines
6.2 KiB
C#
141 lines
6.2 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02001F58 RID: 8024
|
|
[Token(Token = "0x2001F58")]
|
|
public class OobCertHash : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CAFB RID: 51963 RVA: 0x002E824C File Offset: 0x002E644C
|
|
[Token(Token = "0x600CAFB")]
|
|
[Address(RVA = "0x2652350", Offset = "0x2651150", VA = "0x182652350")]
|
|
private OobCertHash(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser2;
|
|
do
|
|
{
|
|
base..ctor();
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
DerBitString derBitString;
|
|
this.hashVal = derBitString;
|
|
parser2 = seq.Parser;
|
|
}
|
|
while (parser2 == 0);
|
|
CertId certId;
|
|
this.certId = certId;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
this.hashAlg = algorithmIdentifier;
|
|
}
|
|
|
|
// Token: 0x0600CAFC RID: 51964 RVA: 0x002E8298 File Offset: 0x002E6498
|
|
[Token(Token = "0x600CAFC")]
|
|
[Address(RVA = "0x2651EE0", Offset = "0x2650CE0", VA = "0x182651EE0")]
|
|
public static OobCertHash GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CAFC)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.OobCertHash BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.OobCertHash::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_42:
|
|
stloc:string(var_11_48, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_12_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_48)), 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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x17002031 RID: 8241
|
|
// (get) Token: 0x0600CAFD RID: 51965 RVA: 0x002E8308 File Offset: 0x002E6508
|
|
[Token(Token = "0x17002031")]
|
|
public virtual AlgorithmIdentifier HashAlg
|
|
{
|
|
[Token(Token = "0x600CAFD")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
|
get
|
|
{
|
|
return this.hashAlg;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002032 RID: 8242
|
|
// (get) Token: 0x0600CAFE RID: 51966 RVA: 0x002E831C File Offset: 0x002E651C
|
|
[Token(Token = "0x17002032")]
|
|
public virtual CertId CertID
|
|
{
|
|
[Token(Token = "0x600CAFE")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
|
get
|
|
{
|
|
return this.certId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CAFF RID: 51967 RVA: 0x002E8330 File Offset: 0x002E6530
|
|
[Token(Token = "0x600CAFF")]
|
|
[Address(RVA = "0x2652210", Offset = "0x2651010", VA = "0x182652210", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
AlgorithmIdentifier algorithmIdentifier = this.hashAlg;
|
|
int num = 0;
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
this.AddOptional(asn1EncodableVector, num, algorithmIdentifier);
|
|
CertId certId = this.certId;
|
|
this.AddOptional(asn1EncodableVector, 1, certId);
|
|
Asn1Encodable[] array = new Asn1Encodable[0];
|
|
DerBitString derBitString = this.hashVal;
|
|
if (derBitString != 0)
|
|
{
|
|
}
|
|
array[0] = derBitString;
|
|
asn1EncodableVector.Add(array);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CB00 RID: 51968 RVA: 0x002E8398 File Offset: 0x002E6598
|
|
[Token(Token = "0x600CB00")]
|
|
[Address(RVA = "0x2651DE0", Offset = "0x2650BE0", VA = "0x182651DE0")]
|
|
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
|
{
|
|
if (obj != 0)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
v.Add(array);
|
|
}
|
|
}
|
|
|
|
// Token: 0x04008130 RID: 33072
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008130")]
|
|
private readonly AlgorithmIdentifier hashAlg;
|
|
|
|
// Token: 0x04008131 RID: 33073
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008131")]
|
|
private readonly CertId certId;
|
|
|
|
// Token: 0x04008132 RID: 33074
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008132")]
|
|
private readonly DerBitString hashVal;
|
|
}
|
|
}
|