Build a similarity signature for a buffer
If you have passed a whitespace-ignoring buffer, then the whitespace will be removed from the buffer while it is being processed, modifying the buffer in place. Sorry about that!
This will return an error if the buffer doesn't contain enough data to compute a valid signature.
The contents of the file to hash
The length of the data at buf