• Breaking News

    Saturday, March 31, 2018

    Cryptography Efficient C implementation of Keccak for Big Endian platforms?

    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

    submitted by /u/ang3c0
    [link] [comments]

    No comments:

    Post a Comment