home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.kerberos
- Path: sparky!uunet!stanford.edu!news
- From: mit-eddie!harvard!scubed!flamingo.SanDiego.NCR.COM!donnh
- Subject: safe message problem: HP to 486
- Message-ID: <9211041932.aa01027@eddie.mit.edu>
- Sender: news@shelby.stanford.edu (USENET News System)
- Organization: Internet-USENET Gateway at Stanford University
- Date: Thu, 5 Nov 1992 00:07:44 GMT
- Lines: 50
-
-
- This is probably old news but here goes ...
-
- We're trying to inteoperate between our i486 machine running a port of
- Kerberos 4.9 and an HP-9000 system running version 4.? (don't know the
- exact version). When receiving "safe" messages sent by the HP
- system, we fail comparing the checksums and reject the message.
-
- The 4.9 source tries to account for the different machine
- architectures by invoking swap_u_16() on one of the checksums before
- comparing the received checksum with that generated by des_quad_cksum
- on our side. However, swap_u_16() swaps the ENTIRE 16 bytes as
- follows:
- original bytes: 000102030405060708090a0b0c0d0e0f
- after swap: 0f0e0d0c0b0a09080706050403020100
-
- Unfortunately des_quad checksum() on the 486 returns:
- 03020100070605040b0a09080f0d0e0c
- If one swaps the bytes in EACH long independently you get:
- 000102030405060708090a0b0c0d0e0f
- Which is the same value as the checksum sent in the message!
-
- It looks like the call to swap_u_16() should be changed to 4 calls to
- swap_u_long(), or swap_u_16() be changed to handle swapping within the
- long integers that make up the checksum. Alternatively swapping could
- be removed from rd_safe and des_quad_checksum changed to create a
- machine independent 16 or 32 byte value.
-
- If this is a known bug is there a standard fix? I also assume that
- private message handling is impacted, but I haven't looked into it
- yet.
-
- By the way the machine definitions for the 486 are:
-
- #define BITS32
- #define BIG
- #define LSBFIRST
-
- Any help would be appreciated.
-
- Thanks in advance.
-
- --
- Donn Holtzman Donn.Holtzman@SanDiegoCA.NCR.COM
- NCR LCPD-San Diego, MS 1240
- 16550 W. Bernardo Drive
- San Diego, CA 92127
-
- Telephone: (619)485-3396 FAX: (619)485-2598
- VoicePlus: 440-3396
-