debris / tiny-keccak

An implementation of Keccak derived functions specified in FIPS-202, SP800-185 and KangarooTwelve
Creative Commons Zero v1.0 Universal
193 stars 49 forks source link

Implement `Hasher` for Keccak #34

Closed eira-fransham closed 5 years ago

eira-fransham commented 6 years ago

This allows hashing any type that implements Hash.

Also, this implements BuildHasher as Clone so that you can use Keccak in a HashMap if you want to. There's not really any use for that but we might as well allow it.