[PATCH] sha3sum: New applet, v4

Baruch Siach baruch at tkos.co.il
Thu Jan 10 11:35:13 UTC 2013


Hi Lauri,

On Thu, Jan 10, 2013 at 01:20:40PM +0200, Baruch Siach wrote:
> On Thu, Jan 10, 2013 at 12:50:41PM +0200, Lauri Kasanen wrote:
> > Running Rob Landley's mips image in qemu, this cut seems to give correct
> > results on big-endian in all cases.
> 
> This version works correctly on my PowerPC e500v2 based 32bit system. I only 
> tested against the pre-computed values in http://en.wikipedia.org/wiki/Sha3.

I just wanted to note the this SHA3 implementation is considerably slower than 
MD5 and SHA1 of Busybox, when run on my system. Sample results:

# ls -l busybox 
-rwxr-xr-x 1 root root 1296692 Jan 10 11:17 busybox

# time ./busybox sha3sum busybox 
95756158fff5a75e2c3b4826fba4bf0b88d33c3157c2ae3e209aa0e76354759bc14fef25a017a1b6340aeb4e8df6201534e31b2287364f5227ae40789c3b1e97  busybox

real    0m4.085s
user    0m1.584s
sys 0m0.060s

# time ./busybox md5sum busybox 
892a46b7d153b54f48c53815fd785d74  busybox

real    0m0.099s
user    0m0.028s
sys 0m0.008s

# time ./busybox sha1sum busybox 
20ad89fd2476b0e6dbbe637455b7db4dde506ea1  busybox

real    0m0.101s
user    0m0.096s
sys 0m0.004s

Is this expected?

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