Cryptography Efficient C implementation of Keccak for Big Endian platforms? |
Efficient C implementation of Keccak for Big Endian platforms? Posted: 30 Mar 2018 11:24 AM PDT Hi. Just wondering if anyone has a good reference implementation of Keccak (SHA3 or other) for big endian processors? I've been able to get something working to the test vectors, but excessive calls to endian-swap functions have killed its performance (two orders of magnitude slower than without). Specifically, my implementation is based off this one, but replaces ROL calls with (essentially) BigEndian(ROL(BigEndian(a), offset)). This gives the right answer, but slowly. I'm not good enough with low-level bit trickery to wrap my mind around endian and bit-order swapping to figure out the more efficient method here. Thanks. Edit: FWIW, I'm using the SHA3-256 test vectors from here: https://www.di-mgt.com.au/sha_testvectors.html [link] [comments] |
You are subscribed to email updates from Cryptography news and discussions. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment