117 lines
5.2 KiB
C#
117 lines
5.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
|
{
|
|
// Token: 0x02001E92 RID: 7826
|
|
[Token(Token = "0x2001E92")]
|
|
public class PbeS2Parameters : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C5BC RID: 50620 RVA: 0x002D23D0 File Offset: 0x002D05D0
|
|
[Token(Token = "0x600C5BC")]
|
|
[Address(RVA = "0x2BC3C90", Offset = "0x2BC2A90", VA = "0x182BC3C90")]
|
|
public static PbeS2Parameters GetInstance(object obj)
|
|
{
|
|
while (obj != 0)
|
|
{
|
|
if (obj == 0)
|
|
{
|
|
return new PbeS2Parameters(Asn1Sequence.GetInstance(obj));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C5BD RID: 50621 RVA: 0x002D23F4 File Offset: 0x002D05F4
|
|
[Token(Token = "0x600C5BD")]
|
|
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
|
public PbeS2Parameters(KeyDerivationFunc keyDevFunc, EncryptionScheme encScheme)
|
|
{
|
|
this.func = keyDevFunc;
|
|
this.scheme = encScheme;
|
|
}
|
|
|
|
// Token: 0x0600C5BE RID: 50622 RVA: 0x002D2418 File Offset: 0x002D0618
|
|
[Token(Token = "0x600C5BE")]
|
|
[Address(RVA = "0x2BC3E50", Offset = "0x2BC2C50", VA = "0x182BC3E50")]
|
|
[Obsolete]
|
|
public PbeS2Parameters(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C5BE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.PbeS2Parameters::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_48:
|
|
stloc:ArgumentException(var_9_57, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
|
}
|
|
|
|
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: 0x17001EAF RID: 7855
|
|
// (get) Token: 0x0600C5BF RID: 50623 RVA: 0x002D2480 File Offset: 0x002D0680
|
|
[Token(Token = "0x17001EAF")]
|
|
public KeyDerivationFunc KeyDerivationFunc
|
|
{
|
|
[Token(Token = "0x600C5BF")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.func;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001EB0 RID: 7856
|
|
// (get) Token: 0x0600C5C0 RID: 50624 RVA: 0x002D2494 File Offset: 0x002D0694
|
|
[Token(Token = "0x17001EB0")]
|
|
public EncryptionScheme EncryptionScheme
|
|
{
|
|
[Token(Token = "0x600C5C0")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.scheme;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C5C1 RID: 50625 RVA: 0x002D24A8 File Offset: 0x002D06A8
|
|
[Token(Token = "0x600C5C1")]
|
|
[Address(RVA = "0x2BC3D40", Offset = "0x2BC2B40", VA = "0x182BC3D40", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
KeyDerivationFunc keyDerivationFunc = this.func;
|
|
if (keyDerivationFunc != 0)
|
|
{
|
|
}
|
|
array[0] = keyDerivationFunc;
|
|
EncryptionScheme encryptionScheme = this.scheme;
|
|
if (encryptionScheme != 0)
|
|
{
|
|
}
|
|
array[1] = encryptionScheme;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007D13 RID: 32019
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007D13")]
|
|
private readonly KeyDerivationFunc func;
|
|
|
|
// Token: 0x04007D14 RID: 32020
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007D14")]
|
|
private readonly EncryptionScheme scheme;
|
|
}
|
|
}
|