code: func MakeFileSha512Func(baseDir string) function.Function {
  	return makeFileHashFunction(baseDir, sha512.New, hex.EncodeToString)
  }
docs: // MakeFileSha512Func constructs a function that is like Sha512Func but reads the
  // contents of a file rather than hashing a given literal string.