Files
2026-04-08 23:40:05 +02:00

119 lines
5.3 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
{
// Token: 0x020018B5 RID: 6325
[Token(Token = "0x20018B5")]
[StructLayout(3)]
public class PbeS2Parameters : Asn1Encodable
{
// Token: 0x0600A9E2 RID: 43490 RVA: 0x00279EC4 File Offset: 0x002780C4
[Token(Token = "0x600A9E2")]
[Address(RVA = "0x27D5440", Offset = "0x27D3E40", VA = "0x1827D5440")]
public static PbeS2Parameters GetInstance(object obj)
{
while (obj != 0)
{
if (obj == 0)
{
return new PbeS2Parameters(Asn1Sequence.GetInstance(obj));
}
}
}
// Token: 0x0600A9E3 RID: 43491 RVA: 0x00279EE8 File Offset: 0x002780E8
[Token(Token = "0x600A9E3")]
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
public PbeS2Parameters(KeyDerivationFunc keyDevFunc, EncryptionScheme encScheme)
{
this.func = keyDevFunc;
this.scheme = encScheme;
}
// Token: 0x0600A9E4 RID: 43492 RVA: 0x00279F0C File Offset: 0x0027810C
[Token(Token = "0x600A9E4")]
[Address(RVA = "0x27D5600", Offset = "0x27D4000", VA = "0x1827D5600")]
[Obsolete]
public PbeS2Parameters(Asn1Sequence seq)
{
/*
An exception occurred when decompiling this method (0600A9E4)
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: 0x17001AAE RID: 6830
// (get) Token: 0x0600A9E5 RID: 43493 RVA: 0x00279F74 File Offset: 0x00278174
[Token(Token = "0x17001AAE")]
public KeyDerivationFunc KeyDerivationFunc
{
[Token(Token = "0x600A9E5")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.func;
}
}
// Token: 0x17001AAF RID: 6831
// (get) Token: 0x0600A9E6 RID: 43494 RVA: 0x00279F88 File Offset: 0x00278188
[Token(Token = "0x17001AAF")]
public EncryptionScheme EncryptionScheme
{
[Token(Token = "0x600A9E6")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.scheme;
}
}
// Token: 0x0600A9E7 RID: 43495 RVA: 0x00279F9C File Offset: 0x0027819C
[Token(Token = "0x600A9E7")]
[Address(RVA = "0x27D54F0", Offset = "0x27D3EF0", VA = "0x1827D54F0", 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: 0x04006ED0 RID: 28368
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006ED0")]
private readonly KeyDerivationFunc func;
// Token: 0x04006ED1 RID: 28369
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006ED1")]
private readonly EncryptionScheme scheme;
}
}