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

Safely elide bounds checks #11

Closed rphmeier closed 7 years ago

rphmeier commented 7 years ago

Contains merged version of #8

Now the only remaining unsafety is two pretty trivial transmutes. It benches a little faster than master on my computer, but we should expect that rustc will be able to optimize safe code better and better than unsafe.

debris commented 7 years ago

thanks @rphmeier and @burdges ! I've published new version - 1.2.1 to crates.io