fix sha512 hash length