'The SHA1 object that is the name of this object.'

def sha(self):

    if ((self._sha is None) or self._needs_serialization):
        new_sha = sha1()
        new_sha.update(self._header())
        for chunk in self.as_raw_chunks():
            new_sha.update(chunk)
        self._sha = new_sha
    return self._sha
