185 lines
7.5 KiB
C#
185 lines
7.5 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02002044 RID: 8260
|
|
[Token(Token = "0x2002044")]
|
|
public class PbmParameter : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CF2E RID: 53038 RVA: 0x002F1ECC File Offset: 0x002F00CC
|
|
[Token(Token = "0x600CF2E")]
|
|
[Address(RVA = "0x2FEB590", Offset = "0x2FEA590", VA = "0x182FEB590")]
|
|
private PbmParameter(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
Asn1OctetString asn1OctetString;
|
|
this.salt = asn1OctetString;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
AlgorithmIdentifier algorithmIdentifier;
|
|
this.owf = algorithmIdentifier;
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
DerInteger derInteger;
|
|
this.iterationCount = derInteger;
|
|
Asn1SequenceParser parser4 = seq.Parser;
|
|
AlgorithmIdentifier algorithmIdentifier2;
|
|
this.mac = algorithmIdentifier2;
|
|
}
|
|
|
|
// Token: 0x0600CF2F RID: 53039 RVA: 0x002F1F24 File Offset: 0x002F0124
|
|
[Token(Token = "0x600CF2F")]
|
|
[Address(RVA = "0x2FEB150", Offset = "0x2FEA150", VA = "0x182FEB150")]
|
|
public static PbmParameter GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CF2F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PbmParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PbmParameter::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_42:
|
|
stloc:string(var_10_48, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_11_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_10_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: 0x0600CF30 RID: 53040 RVA: 0x002F1F94 File Offset: 0x002F0194
|
|
[Token(Token = "0x600CF30")]
|
|
[Address(RVA = "0x2FEB660", Offset = "0x2FEA660", VA = "0x182FEB660")]
|
|
public PbmParameter(byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)
|
|
{
|
|
DerOctetString derOctetString = new DerOctetString(salt);
|
|
DerInteger derInteger = new DerInteger(iterationCount);
|
|
base..ctor();
|
|
this.salt = derOctetString;
|
|
this.iterationCount = derInteger;
|
|
this.mac = 0;
|
|
this.owf = owf;
|
|
}
|
|
|
|
// Token: 0x0600CF31 RID: 53041 RVA: 0x002F1FD4 File Offset: 0x002F01D4
|
|
[Token(Token = "0x600CF31")]
|
|
[Address(RVA = "0xC5DB60", Offset = "0xC5CB60", VA = "0x180C5DB60")]
|
|
public PbmParameter(Asn1OctetString salt, AlgorithmIdentifier owf, DerInteger iterationCount, AlgorithmIdentifier mac)
|
|
{
|
|
this.salt = salt;
|
|
this.iterationCount = iterationCount;
|
|
this.mac = 0;
|
|
this.owf = owf;
|
|
}
|
|
|
|
// Token: 0x170020E7 RID: 8423
|
|
// (get) Token: 0x0600CF32 RID: 53042 RVA: 0x002F2004 File Offset: 0x002F0204
|
|
[Token(Token = "0x170020E7")]
|
|
public virtual Asn1OctetString Salt
|
|
{
|
|
[Token(Token = "0x600CF32")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.salt;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020E8 RID: 8424
|
|
// (get) Token: 0x0600CF33 RID: 53043 RVA: 0x002F2018 File Offset: 0x002F0218
|
|
[Token(Token = "0x170020E8")]
|
|
public virtual AlgorithmIdentifier Owf
|
|
{
|
|
[Token(Token = "0x600CF33")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.owf;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020E9 RID: 8425
|
|
// (get) Token: 0x0600CF34 RID: 53044 RVA: 0x002F202C File Offset: 0x002F022C
|
|
[Token(Token = "0x170020E9")]
|
|
public virtual DerInteger IterationCount
|
|
{
|
|
[Token(Token = "0x600CF34")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.iterationCount;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020EA RID: 8426
|
|
// (get) Token: 0x0600CF35 RID: 53045 RVA: 0x002F2040 File Offset: 0x002F0240
|
|
[Token(Token = "0x170020EA")]
|
|
public virtual AlgorithmIdentifier Mac
|
|
{
|
|
[Token(Token = "0x600CF35")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
|
get
|
|
{
|
|
return this.mac;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF36 RID: 53046 RVA: 0x002F2054 File Offset: 0x002F0254
|
|
[Token(Token = "0x600CF36")]
|
|
[Address(RVA = "0x2FEB3D0", Offset = "0x2FEA3D0", VA = "0x182FEB3D0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[4];
|
|
Asn1OctetString asn1OctetString = this.salt;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array[0] = asn1OctetString;
|
|
AlgorithmIdentifier algorithmIdentifier = this.owf;
|
|
if (algorithmIdentifier != 0)
|
|
{
|
|
}
|
|
array[1] = algorithmIdentifier;
|
|
DerInteger derInteger = this.iterationCount;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[2] = derInteger;
|
|
AlgorithmIdentifier algorithmIdentifier2 = this.mac;
|
|
if (algorithmIdentifier2 != 0)
|
|
{
|
|
}
|
|
array[3] = algorithmIdentifier2;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008358 RID: 33624
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008358")]
|
|
private Asn1OctetString salt;
|
|
|
|
// Token: 0x04008359 RID: 33625
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008359")]
|
|
private AlgorithmIdentifier owf;
|
|
|
|
// Token: 0x0400835A RID: 33626
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400835A")]
|
|
private DerInteger iterationCount;
|
|
|
|
// Token: 0x0400835B RID: 33627
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400835B")]
|
|
private AlgorithmIdentifier mac;
|
|
}
|
|
}
|