using System; using System.Text; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto { // Token: 0x02001BCD RID: 7117 [Token(Token = "0x2001BCD")] public abstract class PbeParametersGenerator { // Token: 0x0600AEE6 RID: 44774 RVA: 0x0025E0B0 File Offset: 0x0025C2B0 [Token(Token = "0x600AEE6")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] protected PbeParametersGenerator() { } // Token: 0x0600AEE7 RID: 44775 RVA: 0x0025E0C4 File Offset: 0x0025C2C4 [Token(Token = "0x600AEE7")] [Address(RVA = "0x2362480", Offset = "0x2361480", VA = "0x182362480", Slot = "4")] public virtual void Init(byte[] password, byte[] salt, int iterationCount) { /* An exception occurred when decompiling this method (0600AEE7) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.PbeParametersGenerator::Init(System.Byte[],System.Byte[],System.Int32) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_37: stloc:ArgumentNullException(var_3_41, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("salt"))) } 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: 0x17001BCA RID: 7114 // (get) Token: 0x0600AEE8 RID: 44776 RVA: 0x0025E114 File Offset: 0x0025C314 [Token(Token = "0x17001BCA")] public virtual byte[] Password { [Token(Token = "0x600AEE8")] [Address(RVA = "0x2362880", Offset = "0x2361880", VA = "0x182362880", Slot = "5")] get { return Arrays.Clone(this.mPassword); } } // Token: 0x0600AEE9 RID: 44777 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x600AEE9")] [Address(RVA = "0x67A0A0", Offset = "0x6790A0", VA = "0x18067A0A0")] [Obsolete] public byte[] GetPassword() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x17001BCB RID: 7115 // (get) Token: 0x0600AEEA RID: 44778 RVA: 0x0025E12C File Offset: 0x0025C32C [Token(Token = "0x17001BCB")] public virtual byte[] Salt { [Token(Token = "0x600AEEA")] [Address(RVA = "0x23628E0", Offset = "0x23618E0", VA = "0x1823628E0", Slot = "6")] get { return Arrays.Clone(this.mSalt); } } // Token: 0x0600AEEB RID: 44779 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x600AEEB")] [Address(RVA = "0x4B3050", Offset = "0x4B2050", VA = "0x1804B3050")] [Obsolete] public byte[] GetSalt() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x17001BCC RID: 7116 // (get) Token: 0x0600AEEC RID: 44780 RVA: 0x0025E144 File Offset: 0x0025C344 [Token(Token = "0x17001BCC")] public virtual int IterationCount { [Token(Token = "0x600AEEC")] [Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70", Slot = "7")] get { return this.mIterationCount; } } // Token: 0x0600AEED RID: 44781 [Token(Token = "0x600AEED")] [Address(Slot = "8")] [Obsolete] public abstract ICipherParameters GenerateDerivedParameters(int keySize); // Token: 0x0600AEEE RID: 44782 [Token(Token = "0x600AEEE")] [Address(Slot = "9")] public abstract ICipherParameters GenerateDerivedParameters(string algorithm, int keySize); // Token: 0x0600AEEF RID: 44783 [Token(Token = "0x600AEEF")] [Address(Slot = "10")] [Obsolete] public abstract ICipherParameters GenerateDerivedParameters(int keySize, int ivSize); // Token: 0x0600AEF0 RID: 44784 [Token(Token = "0x600AEF0")] [Address(Slot = "11")] public abstract ICipherParameters GenerateDerivedParameters(string algorithm, int keySize, int ivSize); // Token: 0x0600AEF1 RID: 44785 [Token(Token = "0x600AEF1")] [Address(Slot = "12")] public abstract ICipherParameters GenerateDerivedMacParameters(int keySize); // Token: 0x0600AEF2 RID: 44786 RVA: 0x0025E158 File Offset: 0x0025C358 [Token(Token = "0x600AEF2")] [Address(RVA = "0x2362750", Offset = "0x2361750", VA = "0x182362750")] public static byte[] Pkcs5PasswordToBytes(char[] password) { while (password == 0) { } return Strings.ToByteArray(password); } // Token: 0x0600AEF3 RID: 44787 RVA: 0x0025E170 File Offset: 0x0025C370 [Token(Token = "0x600AEF3")] [Address(RVA = "0x2362700", Offset = "0x2361700", VA = "0x182362700")] [Obsolete] public static byte[] Pkcs5PasswordToBytes(string password) { while (password == 0) { } return Strings.ToByteArray(password); } // Token: 0x0600AEF4 RID: 44788 RVA: 0x0025E188 File Offset: 0x0025C388 [Token(Token = "0x600AEF4")] [Address(RVA = "0x23627A0", Offset = "0x23617A0", VA = "0x1823627A0")] public static byte[] Pkcs5PasswordToUtf8Bytes(char[] password) { if (password != 0) { Encoding utf = Encoding.UTF8; } throw new NullReferenceException(); } // Token: 0x0600AEF5 RID: 44789 RVA: 0x0025E1A8 File Offset: 0x0025C3A8 [Token(Token = "0x600AEF5")] [Address(RVA = "0x2362810", Offset = "0x2361810", VA = "0x182362810")] [Obsolete] public static byte[] Pkcs5PasswordToUtf8Bytes(string password) { if (password != 0) { Encoding utf = Encoding.UTF8; } throw new NullReferenceException(); } // Token: 0x0600AEF6 RID: 44790 RVA: 0x0025E1C8 File Offset: 0x0025C3C8 [Token(Token = "0x600AEF6")] [Address(RVA = "0x2362580", Offset = "0x2361580", VA = "0x182362580")] public static byte[] Pkcs12PasswordToBytes(char[] password) { if (password != 0) { byte[] array = new byte[password.Length]; Encoding bigEndianUnicode = Encoding.BigEndianUnicode; int num = 0; int length = password.Length; byte[] bytes = bigEndianUnicode.GetBytes(password, num, length); return array; } return new byte[0]; } // Token: 0x0600AEF7 RID: 44791 RVA: 0x0025E214 File Offset: 0x0025C414 [Token(Token = "0x600AEF7")] [Address(RVA = "0x2362640", Offset = "0x2361640", VA = "0x182362640")] public static byte[] Pkcs12PasswordToBytes(char[] password, bool wrongPkcs12Zero) { if (password != 0) { byte[] array = new byte[password.Length]; Encoding bigEndianUnicode = Encoding.BigEndianUnicode; int num = 0; int length = password.Length; byte[] bytes = bigEndianUnicode.GetBytes(password, num, length); return array; } throw new NullReferenceException(); } // Token: 0x04006E62 RID: 28258 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4006E62")] protected byte[] mPassword; // Token: 0x04006E63 RID: 28259 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4006E63")] protected byte[] mSalt; // Token: 0x04006E64 RID: 28260 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4006E64")] protected int mIterationCount; } }