Big Endian problem for ixp435 found.

Gunter Burchardt gbur
Fri Sep 24 00:31:21 PDT 2004


> That's confusing.. Could you please give me a bit more detailed
> explanation? Did you try running the SHA-1 tests that I mentioned? If
> SHA1Init() does not work at all on the board, those should fail..
> However, interestingly, I cannot reproduce this on the ixp425 board I
> used in testing. Kernel crypto code is not used at all in hostapd..
> 
> As far as I know, sha1.c works on both little and big endian systems.
> SHA1Init() is only using 32-bit variables. Which functions do you mean
> with u8/u16 pointers? There are no u16 processing in sha1.c and u8 is
> used only in arguments to memcpy()..

sha1.c compiled with -DTEST_MAIN fails!

with -DVERBOSE it returns on my ixp425:

PRF-SHA1 test cases:
before (0,0) 67452301 efcdab89 98badcfe 10325476 c3d2e1f0
after  (512,0) 4df4a024 82182f0f 2891a3b7 9baf80db 6534f2c7
...

on x86:

PRF-SHA1 test cases:
before (0,0) 67452301 efcdab89 98badcfe 10325476 c3d2e1f0
after  (512,0) 64c662a cc6ed1b0 6cfa9ab0 42f137f cea570eb

regards
gunter




More information about the Hostap mailing list