Edited init_crypt_ctx to account for GCM mode