To extend the encrypted control implementations to handle time-varying or nonlinear systems, several approaches can be considered. One option is to incorporate adaptive control techniques that can adjust the controller parameters in real-time based on the system's varying dynamics. This adaptation can be done using encrypted computations to ensure data privacy. Additionally, techniques like model predictive control (MPC) can be utilized to handle nonlinearities by formulating the control problem as an optimization task that can be solved using encrypted data. By leveraging the capabilities of homomorphic encryption, the control algorithms can be designed to accommodate time-varying and nonlinear system behaviors while maintaining data security.