VirtualBox

Changeset 2418 in kBuild


Ignore:
Timestamp:
Sep 15, 2010 10:56:04 PM (14 years ago)
Author:
bird
Message:

md5sum: Fixed misbehavior on big endian boxes. Fixes #97.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/md5.c

    r1000 r2418  
    2020#define uint32 uint32_t
    2121
    22 #if 0 /* don't need 100% correct md5, just fast md5. */
    23 #ifdef sgi
    24 #define HIGHFIRST
    25 #endif
    26 
    27 #ifdef sun
    28 #define HIGHFIRST
    29 #endif
    30 #endif /* skip this */
    31 
    32 #ifndef HIGHFIRST
    33 #define byteReverse(buf, len)   /* Nothing */
     22#include "k/kDefs.h"
     23
     24#if K_ENDIAN == K_ENDIAN_LITTLE
     25# define byteReverse(buf, len)  do { /* Nothing */ } while (0)
    3426#else
    3527/*
     
    112104
    113105/*
    114  * Final wrapup - pad to 64-byte boundary with the bit pattern 
     106 * Final wrapup - pad to 64-byte boundary with the bit pattern
    115107 * 1 0* (64-bit count of bits processed, MSB-first)
    116108 */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette