Efficient Instantiation of LWE-based Public-Key Encryption and Commitment Schemes