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: 0x02002038 RID: 8248
|
|
[Token(Token = "0x2002038")]
|
|
public class OobCertHash : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CEC9 RID: 52937 RVA: 0x002F09B4 File Offset: 0x002EEBB4
|
|
[Token(Token = "0x600CEC9")]
|
|
[Address(RVA = "0x2FE8650", Offset = "0x2FE7650", VA = "0x182FE8650")]
|
|
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: 0x0600CECA RID: 52938 RVA: 0x002F0A00 File Offset: 0x002EEC00
|
|
[Token(Token = "0x600CECA")]
|
|
[Address(RVA = "0x2FE81E0", Offset = "0x2FE71E0", VA = "0x182FE81E0")]
|
|
public static OobCertHash GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CECA)
|
|
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x170020CE RID: 8398
|
|
// (get) Token: 0x0600CECB RID: 52939 RVA: 0x002F0A70 File Offset: 0x002EEC70
|
|
[Token(Token = "0x170020CE")]
|
|
public virtual AlgorithmIdentifier HashAlg
|
|
{
|
|
[Token(Token = "0x600CECB")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.hashAlg;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020CF RID: 8399
|
|
// (get) Token: 0x0600CECC RID: 52940 RVA: 0x002F0A84 File Offset: 0x002EEC84
|
|
[Token(Token = "0x170020CF")]
|
|
public virtual CertId CertID
|
|
{
|
|
[Token(Token = "0x600CECC")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.certId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CECD RID: 52941 RVA: 0x002F0A98 File Offset: 0x002EEC98
|
|
[Token(Token = "0x600CECD")]
|
|
[Address(RVA = "0x2FE8510", Offset = "0x2FE7510", VA = "0x182FE8510", 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: 0x0600CECE RID: 52942 RVA: 0x002F0B00 File Offset: 0x002EED00
|
|
[Token(Token = "0x600CECE")]
|
|
[Address(RVA = "0x2FE80E0", Offset = "0x2FE70E0", VA = "0x182FE80E0")]
|
|
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: 0x040082E9 RID: 33513
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40082E9")]
|
|
private readonly AlgorithmIdentifier hashAlg;
|
|
|
|
// Token: 0x040082EA RID: 33514
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40082EA")]
|
|
private readonly CertId certId;
|
|
|
|
// Token: 0x040082EB RID: 33515
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40082EB")]
|
|
private readonly DerBitString hashVal;
|
|
}
|
|
}
|