Generate the SHA1 object ID for a given data buffer.
the resulting object ID.
data to hash
size of the data
of the data to hash
0 or an error code