Corrected parameter passing to decrypt function.