Determine the object-ID (sha1 hash) of a data buffer
The resulting SHA-1 OID will the itentifier for the data buffer as if the data buffer it were to written to the ODB.
the resulting object-ID.
data to hash
size of the data
of the data to hash
0 on success; error code otherwise