def GetUploadHashAlgs():
  check_hashes_config = config.get(
      'GSUtil', 'check_hashes', CHECK_HASH_IF_FAST_ELSE_FAIL)
  if check_hashes_config == 'never':
    return {}
  return {'md5': md5}
Returns a dict of hash algorithms for validating an uploaded object.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/hashing_helper.py/GetUploadHashAlgs