Fast syndrome-based hash