sha512.Sum512 is not avaiable in go1.1 so rewritten old style.