(racoon 744) Endian-ness in sha1.c?
[email protected] Wed, 15 Sep 2004 17:34:30 +0000
| Newsgroups | gmane.network.ipv6.kame.racoon |
|---|---|
| Message-ID | <091520041734.1577.41487D26000666FE000006292160281302020E060E080E03D2029A9D0E@att.net> |
Hello all and Jun-ichiro itojun Itoh,
Still trying to resolve an inter-op problem for SHA1 when using RACOON
between a little-endian (Pentium) machine and a big-endian (PowerPC)
machine. It works for MD5.
Looking at the SHA1 code (sha1.c), I see this line in sha1_step(),
#if BYTE_ORDER == LITTLE_ENDIAN and in that routine at least,
nothing for BIG_ENDIAN, so I am assuming that the default case always
works for BIG_ENDIAN and fixes need to be done only for LITTLE_E.
Is this assumption right? Does anybody have any suggestions about
the sha1 code and it's ability to deal with both the endian-s?
I would appreciate any help! Thanks.
.arun