passing as pointer to decrypt function makes things easier