Throw exception if decryption/encryption fails