Fixed missing crypto initialization in delete function