Files
2026-04-10 22:50:51 +02:00

158 lines
7.0 KiB
C#

using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
{
// Token: 0x02001EDB RID: 7899
[Token(Token = "0x2001EDB")]
[Obsolete]
public class OtherCertID : Asn1Encodable
{
// Token: 0x0600C789 RID: 51081 RVA: 0x002DA57C File Offset: 0x002D877C
[Token(Token = "0x600C789")]
[Address(RVA = "0x2841E30", Offset = "0x2840C30", VA = "0x182841E30")]
public static OtherCertID GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600C789)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherCertID BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherCertID::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(o)))
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'OtherCertID' factory : "), ldloc:string(var_6_2C), 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: 0x0600C78A RID: 51082 RVA: 0x002DA5D0 File Offset: 0x002D87D0
[Token(Token = "0x600C78A")]
[Address(RVA = "0x28426B0", Offset = "0x28414B0", VA = "0x1828426B0")]
public OtherCertID(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
if (parser != 0 && parser != 0)
{
Asn1SequenceParser parser2 = seq.Parser;
}
Asn1SequenceParser parser3 = seq.Parser;
DigestInfo digestInfo;
this.otherCertHash = digestInfo;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)1L)
{
Asn1SequenceParser parser4 = seq.Parser;
Asn1Sequence asn1Sequence;
IssuerSerial instance = IssuerSerial.GetInstance(asn1Sequence);
this.issuerSerial = instance;
}
}
// Token: 0x0600C78B RID: 51083 RVA: 0x002DA638 File Offset: 0x002D8838
[Token(Token = "0x600C78B")]
[Address(RVA = "0x2842630", Offset = "0x2841430", VA = "0x182842630")]
public OtherCertID(AlgorithmIdentifier algId, byte[] digest)
{
DigestInfo digestInfo = new DigestInfo(algId, digest);
this.otherCertHash = digestInfo;
}
// Token: 0x0600C78C RID: 51084 RVA: 0x002DA65C File Offset: 0x002D885C
[Token(Token = "0x600C78C")]
[Address(RVA = "0x2842340", Offset = "0x2841140", VA = "0x182842340")]
public OtherCertID(AlgorithmIdentifier algId, byte[] digest, IssuerSerial issuerSerial)
{
DigestInfo digestInfo = new DigestInfo(algId, digest);
this.otherCertHash = digestInfo;
this.issuerSerial = issuerSerial;
}
// Token: 0x17001F33 RID: 7987
// (get) Token: 0x0600C78D RID: 51085 RVA: 0x002DA688 File Offset: 0x002D8888
[Token(Token = "0x17001F33")]
public AlgorithmIdentifier AlgorithmHash
{
[Token(Token = "0x600C78D")]
[Address(RVA = "0x2842940", Offset = "0x2841740", VA = "0x182842940")]
get
{
Asn1Object asn1Object = this.otherCertHash.ToAsn1Object();
if (asn1Object != 0 && asn1Object != 0)
{
return new AlgorithmIdentifier(OiwObjectIdentifiers.IdSha1);
}
return DigestInfo.GetInstance(this.otherCertHash).algID;
}
}
// Token: 0x0600C78E RID: 51086 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600C78E")]
[Address(RVA = "0x2841AB0", Offset = "0x28408B0", VA = "0x182841AB0")]
public byte[] GetCertHash()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x17001F34 RID: 7988
// (get) Token: 0x0600C78F RID: 51087 RVA: 0x002DA6CC File Offset: 0x002D88CC
[Token(Token = "0x17001F34")]
public IssuerSerial IssuerSerial
{
[Token(Token = "0x600C78F")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.issuerSerial;
}
}
// Token: 0x0600C790 RID: 51088 RVA: 0x002DA6E0 File Offset: 0x002D88E0
[Token(Token = "0x600C790")]
[Address(RVA = "0x28421D0", Offset = "0x2840FD0", VA = "0x1828421D0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
Asn1Encodable asn1Encodable = this.otherCertHash;
if (asn1Encodable != 0)
{
}
array[0] = asn1Encodable;
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: 0x04007F66 RID: 32614
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007F66")]
private Asn1Encodable otherCertHash;
// Token: 0x04007F67 RID: 32615
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007F67")]
private IssuerSerial issuerSerial;
}
}