Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Crmf/PKMacValue.cs
T
2026-04-08 23:40:05 +02:00

139 lines
6.4 KiB
C#

using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
{
// Token: 0x02001934 RID: 6452
[Token(Token = "0x2001934")]
[StructLayout(3)]
public class PKMacValue : Asn1Encodable
{
// Token: 0x0600AD18 RID: 44312 RVA: 0x002880B4 File Offset: 0x002862B4
[Token(Token = "0x600AD18")]
[Address(RVA = "0x1EDECA0", Offset = "0x1EDD6A0", VA = "0x181EDECA0")]
private PKMacValue(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
AlgorithmIdentifier algorithmIdentifier;
this.algID = algorithmIdentifier;
Asn1SequenceParser parser2 = seq.Parser;
DerBitString derBitString;
this.macValue = derBitString;
}
// Token: 0x0600AD19 RID: 44313 RVA: 0x002880EC File Offset: 0x002862EC
[Token(Token = "0x600AD19")]
[Address(RVA = "0x1EDE860", Offset = "0x1EDD260", VA = "0x181EDE860")]
public static PKMacValue GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600AD19)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PKMacValue BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PKMacValue::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2E:
stloc:string(var_8_34, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_9_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_8_34)), 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: 0x0600AD1A RID: 44314 RVA: 0x00288148 File Offset: 0x00286348
[Token(Token = "0x600AD1A")]
[Address(RVA = "0x1EDE840", Offset = "0x1EDD240", VA = "0x181EDE840")]
public static PKMacValue GetInstance(Asn1TaggedObject obj, bool isExplicit)
{
return PKMacValue.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
}
// Token: 0x0600AD1B RID: 44315 RVA: 0x00288164 File Offset: 0x00286364
[Token(Token = "0x600AD1B")]
[Address(RVA = "0x1EDEBE0", Offset = "0x1EDD5E0", VA = "0x181EDEBE0")]
public PKMacValue(PbmParameter pbmParams, DerBitString macValue)
{
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(CmpObjectIdentifiers.passwordBasedMac, pbmParams);
base..ctor();
this.algID = algorithmIdentifier;
this.macValue = macValue;
}
// Token: 0x0600AD1C RID: 44316 RVA: 0x00288194 File Offset: 0x00286394
[Token(Token = "0x600AD1C")]
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
public PKMacValue(AlgorithmIdentifier algID, DerBitString macValue)
{
this.algID = algID;
this.macValue = macValue;
}
// Token: 0x17001B89 RID: 7049
// (get) Token: 0x0600AD1D RID: 44317 RVA: 0x002881B8 File Offset: 0x002863B8
[Token(Token = "0x17001B89")]
public virtual AlgorithmIdentifier AlgID
{
[Token(Token = "0x600AD1D")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
get
{
return this.algID;
}
}
// Token: 0x17001B8A RID: 7050
// (get) Token: 0x0600AD1E RID: 44318 RVA: 0x002881CC File Offset: 0x002863CC
[Token(Token = "0x17001B8A")]
public virtual DerBitString MacValue
{
[Token(Token = "0x600AD1E")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
get
{
return this.macValue;
}
}
// Token: 0x0600AD1F RID: 44319 RVA: 0x002881E0 File Offset: 0x002863E0
[Token(Token = "0x600AD1F")]
[Address(RVA = "0x1EDEAD0", Offset = "0x1EDD4D0", VA = "0x181EDEAD0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[2];
AlgorithmIdentifier algorithmIdentifier = this.algID;
if (algorithmIdentifier != 0)
{
}
array[0] = algorithmIdentifier;
DerBitString derBitString = this.macValue;
if (derBitString != 0)
{
}
array[1] = derBitString;
DerSequence derSequence = new DerSequence(array);
throw new NullReferenceException();
}
// Token: 0x040071F2 RID: 29170
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x40071F2")]
private readonly AlgorithmIdentifier algID;
// Token: 0x040071F3 RID: 29171
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x40071F3")]
private readonly DerBitString macValue;
}
}