Re: Unix/Windows bit arrangments

From: Matthew S. Hamrick (mhamrickat_private)
Date: Mon May 07 2001 - 21:00:16 PDT

  • Next message: Oliver Friedrichs: "Repost"

    -----BEGIN PGP SIGNED MESSAGE-----
    
    Also,
        If you're using the 'od -x' command to look at binary data, it's often
    times byte reversed within 16 bit values on x86 architectures. This always
    throws me on Linux systems. I beleive that there's an option to od that
    tells it you want to deal with byte values rather than byte reversed 16 bit
    words.
    
    - -Matt H.
    - ----- Original Message -----
    From: "Adam Berent" <adminat_private>
    To: <SECPROGat_private>
    Sent: Sunday, May 06, 2001 10:00 AM
    Subject: Unix/Windows bit arrangments
    
    
    > Hi, I have been playing with the blowfish encryption algorithm for some
    time now.  I feel I understand it fairly well.
    >
    > My only problem is the incompatibilty between the executables I compiled
    under Windows and Unix.  As far as I can tell the order of the encrypted
    bytes is reversed.  For example in Windows the bytes would be 1234 5678
    while in Unix they are 4321 8765.  Eaach of the for bytes are represented by
    unsigned longs
    >
    > I do remember from my C++ class that Unix has a different way of maping
    bits (reverse to Windows)  The specfics escape me.  However I would like to
    know why this is happening and how do I correct it.
    >
    > Thanks for all your help
    >
    > P.S. I wraped the lines at 72 chars, please let me know if its ok now
    >
    >
    >
    >
    >
    >
    > Adam Berent
    > www.abisoft.net
    > www.ideveloperonline.com
    >
    > Get your free email @ www.ideveloperonline.com
    >
    -----BEGIN PGP SIGNATURE-----
    Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
    
    iQEVAwUBOvdvS+krkgM9eER9AQEh1wf+Pmto4YjGmo2lRJm9Gw95MIKBVIuTFMim
    lKLRjHPlMMOd/0JDrRWG78mwZp1RnvZRGIBsSXfEd5pibGmQJKbH3abjIrVXQv+l
    VLBTumApjP0Yr0Frkg6xVotKFHmlpcuu4usdOFrE0CUsXei2Z18p3Ibtk8GfY7Cd
    ya+RoRTLKc8q/FcgzDqSvAuc2vd2ETn5O+eQMTlvu+Rq0Xrr0ZOwBRubXUOquwWa
    v40RKmpsXzRd6dRxQ3WD0WkiXxQYGSCQInC1RxGDUJkjMrwFUVqRrF/sR+MjmxaI
    FFmZjGftrocXnBvCVoSfhIUysD+pVo+Ml+U0X+9l0zkjoD99h5UOhA==
    =Uucq
    -----END PGP SIGNATURE-----
    



    This archive was generated by hypermail 2b30 : Fri May 11 2001 - 03:16:40 PDT