private void CreateDecryptor(XmlElement connectionsRootElement = null) { if (_confVersion >= 2.6) { BlockCipherEngines engine; Enum.TryParse(connectionsRootElement?.Attributes["EncryptionEngine"].Value, out engine); BlockCipherModes mode; Enum.TryParse(connectionsRootElement?.Attributes["BlockCipherMode"].Value, out mode); int keyDerivationIterations; int.TryParse(connectionsRootElement?.Attributes["KdfIterations"].Value, out keyDerivationIterations); _decryptor = new ConnectionsDecryptor(engine, mode) { AuthenticationRequestor = AuthenticationRequestor, KeyDerivationIterations = keyDerivationIterations }; } else { _decryptor = new ConnectionsDecryptor { AuthenticationRequestor = AuthenticationRequestor }; } }