Fix array index out of bounds in sha256d()