137 lines
6.3 KiB
C#
137 lines
6.3 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
|
{
|
|
// Token: 0x02001FF1 RID: 8177
|
|
[Token(Token = "0x2001FF1")]
|
|
public class PKMacValue : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CCC0 RID: 52416 RVA: 0x002E8D88 File Offset: 0x002E6F88
|
|
[Token(Token = "0x600CCC0")]
|
|
[Address(RVA = "0x23B8430", Offset = "0x23B7430", VA = "0x1823B8430")]
|
|
private PKMacValue(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
this.algID = algorithmIdentifier;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
DerBitString derBitString;
|
|
this.macValue = derBitString;
|
|
}
|
|
|
|
// Token: 0x0600CCC1 RID: 52417 RVA: 0x002E8DC0 File Offset: 0x002E6FC0
|
|
[Token(Token = "0x600CCC1")]
|
|
[Address(RVA = "0x23B7FF0", Offset = "0x23B6FF0", VA = "0x1823B7FF0")]
|
|
public static PKMacValue GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CCC1)
|
|
|
|
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: 0x0600CCC2 RID: 52418 RVA: 0x002E8E1C File Offset: 0x002E701C
|
|
[Token(Token = "0x600CCC2")]
|
|
[Address(RVA = "0x23B7FD0", Offset = "0x23B6FD0", VA = "0x1823B7FD0")]
|
|
public static PKMacValue GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return PKMacValue.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600CCC3 RID: 52419 RVA: 0x002E8E38 File Offset: 0x002E7038
|
|
[Token(Token = "0x600CCC3")]
|
|
[Address(RVA = "0x23B8370", Offset = "0x23B7370", VA = "0x1823B8370")]
|
|
public PKMacValue(PbmParameter pbmParams, DerBitString macValue)
|
|
{
|
|
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(CmpObjectIdentifiers.passwordBasedMac, pbmParams);
|
|
base..ctor();
|
|
this.algID = algorithmIdentifier;
|
|
this.macValue = macValue;
|
|
}
|
|
|
|
// Token: 0x0600CCC4 RID: 52420 RVA: 0x002E8E68 File Offset: 0x002E7068
|
|
[Token(Token = "0x600CCC4")]
|
|
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
|
public PKMacValue(AlgorithmIdentifier algID, DerBitString macValue)
|
|
{
|
|
this.algID = algID;
|
|
this.macValue = macValue;
|
|
}
|
|
|
|
// Token: 0x17002027 RID: 8231
|
|
// (get) Token: 0x0600CCC5 RID: 52421 RVA: 0x002E8E8C File Offset: 0x002E708C
|
|
[Token(Token = "0x17002027")]
|
|
public virtual AlgorithmIdentifier AlgID
|
|
{
|
|
[Token(Token = "0x600CCC5")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.algID;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002028 RID: 8232
|
|
// (get) Token: 0x0600CCC6 RID: 52422 RVA: 0x002E8EA0 File Offset: 0x002E70A0
|
|
[Token(Token = "0x17002028")]
|
|
public virtual DerBitString MacValue
|
|
{
|
|
[Token(Token = "0x600CCC6")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.macValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CCC7 RID: 52423 RVA: 0x002E8EB4 File Offset: 0x002E70B4
|
|
[Token(Token = "0x600CCC7")]
|
|
[Address(RVA = "0x23B8260", Offset = "0x23B7260", VA = "0x1823B8260", 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: 0x040081EE RID: 33262
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40081EE")]
|
|
private readonly AlgorithmIdentifier algID;
|
|
|
|
// Token: 0x040081EF RID: 33263
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40081EF")]
|
|
private readonly DerBitString macValue;
|
|
}
|
|
}
|