Privacy-Aware Quadratic Optimization Using Partially Homomorphic Encryption