[PATCH] sha3sum: New applet, v3

Baruch Siach baruch at tkos.co.il
Tue Jan 8 15:05:57 UTC 2013


Hi Lauri,

On Tue, Jan 08, 2013 at 04:40:04PM +0200, Lauri Kasanen wrote:
> This patch should no longer crash @ ppc. But I think it will still have
> wrong results on big-endian, and I'm not sure it's something I can fix
> without access to such.

This version doesn't crash anymore, but the results on PowerPC are not in-line 
with x86_64 and the samples of http://en.wikipedia.org/wiki/Sha3:

# echo -n "The quick brown fox jumps over the lazy dog" |./busybox sha3sum 
a753cd80313d095c37641af35cf24fa2ea1e4f94200fb82676c24faa5abdbe6e2626bfff79014a882fc7ad55319b3e6894dfc1f5f4672de365957ff428944355  -

The x86_64 build correctly gives me:

$ echo -n "The quick brown fox jumps over the lazy dog" |./busybox sha3sum
d135bb84d0439dbac432247ee573a23ea7d3c9deb2a968eb31d47c4fb45f1ef4422d6c531b5b9bd6f449ebcc449ea94d0a8f05f62130fda612da53c79659f609  -

You can send me a debug prints augmented version of your patch to run on my 
PowerPC board if you like.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the busybox mailing list