[6582] in Kerberos

home help back first fref pref prev next nref lref last post

Re: DES Encryption with Kerberos.

daemon@ATHENA.MIT.EDU (Jeff Makey)
Fri Feb 2 19:15:24 1996

To: kerberos@MIT.EDU
Date: 2 Feb 1996 18:05:53 GMT
From: jeff@sdsc.edu (Jeff Makey)

In article <199601300246.NAA09538@phaeton.rais.nabaus.com.au>,
Darren Reed <darrenr@nabaus.com.au> wrote:
>DES's operation is endian dependant,
>so that compiling the same code (which is ignorant of byte order) on intel box
>(ie pc) and a Sun sparc will not decrypt/encrypt correctly.

This may be true for some specific implementations of DES, but it need
not be.  For example, I believe the ufc-crypt implementation of DES
works correctly without the aid of endian-based #ifdef's or other such
accommodations.  This is definitely true of a DES implementation I
once wrote myself.

Perhaps your difficulty lies in the transmission of the encrypted data
between the two architectures.  This was solved long ago at the TCP/IP
layers by the specification of of a standard byte order for
transmitted data.  You might start with the htonl(3) man page for more
information.

                             :: Jeff Makey
                                jeff@sdsc.edu

Department of Tautological Pleonasms and Superfluous Redundancies Department

home help back first fref pref prev next nref lref last post