Fix Keccak undefined behavior on exotic platforms.

Bug reported and diagnosed in:
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975977

Fixes bug #40210.
7 jobs for bug40210_035 in 34 minutes and 45 seconds (queued for 34 seconds)
latest