Fix 'sha' function for iButton