Completed Encryption, Decryption, and KeyGen