code: func CalcHash(data []byte, hasher hash.Hash) []byte {
  	hasher.Write(data)
  	return hasher.Sum(nil)
  }
docs: //--------------------------------------------------------------
  // CalcHash returns the hash of data using hasher.