zeebo / xxh3

XXH3 algorithm in Go
BSD 2-Clause "Simplified" License
406 stars 20 forks source link

hash.Hash writer implementation #7

Closed tareksha closed 3 years ago

tareksha commented 3 years ago

Hi,

Hash algorithms commonly implement the standard go interface hash.Hash which allows hashing arbitrary streams of data by extending io.Writer. Is such implementation planned in this library?

zeebo commented 3 years ago

FYI, if you manually upgraded to a pre-release tag that contains this code before v1.0.0-rc3, then it has a bug where incorrect results are returned for sizes 1089 or greater (see #14). I'd recommend updating if so. Sorry!