117 lines
5.2 KiB
C#
117 lines
5.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
|
{
|
|
// Token: 0x02001F72 RID: 8050
|
|
[Token(Token = "0x2001F72")]
|
|
public class PbeS2Parameters : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C98A RID: 51594 RVA: 0x002DAC44 File Offset: 0x002D8E44
|
|
[Token(Token = "0x600C98A")]
|
|
[Address(RVA = "0x2F86D40", Offset = "0x2F85D40", VA = "0x182F86D40")]
|
|
public static PbeS2Parameters GetInstance(object obj)
|
|
{
|
|
while (obj != 0)
|
|
{
|
|
if (obj == 0)
|
|
{
|
|
return new PbeS2Parameters(Asn1Sequence.GetInstance(obj));
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C98B RID: 51595 RVA: 0x002DAC68 File Offset: 0x002D8E68
|
|
[Token(Token = "0x600C98B")]
|
|
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
|
public PbeS2Parameters(KeyDerivationFunc keyDevFunc, EncryptionScheme encScheme)
|
|
{
|
|
this.func = keyDevFunc;
|
|
this.scheme = encScheme;
|
|
}
|
|
|
|
// Token: 0x0600C98C RID: 51596 RVA: 0x002DAC8C File Offset: 0x002D8E8C
|
|
[Token(Token = "0x600C98C")]
|
|
[Address(RVA = "0x2F86F00", Offset = "0x2F85F00", VA = "0x182F86F00")]
|
|
[Obsolete]
|
|
public PbeS2Parameters(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C98C)
|
|
|
|
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: 0x17001F4C RID: 8012
|
|
// (get) Token: 0x0600C98D RID: 51597 RVA: 0x002DACF4 File Offset: 0x002D8EF4
|
|
[Token(Token = "0x17001F4C")]
|
|
public KeyDerivationFunc KeyDerivationFunc
|
|
{
|
|
[Token(Token = "0x600C98D")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.func;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F4D RID: 8013
|
|
// (get) Token: 0x0600C98E RID: 51598 RVA: 0x002DAD08 File Offset: 0x002D8F08
|
|
[Token(Token = "0x17001F4D")]
|
|
public EncryptionScheme EncryptionScheme
|
|
{
|
|
[Token(Token = "0x600C98E")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.scheme;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C98F RID: 51599 RVA: 0x002DAD1C File Offset: 0x002D8F1C
|
|
[Token(Token = "0x600C98F")]
|
|
[Address(RVA = "0x2F86DF0", Offset = "0x2F85DF0", VA = "0x182F86DF0", 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: 0x04007ECC RID: 32460
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007ECC")]
|
|
private readonly KeyDerivationFunc func;
|
|
|
|
// Token: 0x04007ECD RID: 32461
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007ECD")]
|
|
private readonly EncryptionScheme scheme;
|
|
}
|
|
}
|