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

Crate will not work correctly on big-endian architecture #15

Closed newpavlov closed 5 years ago

newpavlov commented 7 years ago

Usage of mem::transmute will cause your code to produce incorrect results on big-endiann architectures.

You can adopt the same approach I've used in the sha3 crate.