Fix big endian version of ripemd.

The upper bound of the array index is obviously wrong.