Changeset 1765 in MondoRescue for branches/2.2.5/mindi-busybox/libbb/md5.c


Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (16 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/libbb/md5.c

    r821 r1765  
     1/* vi: set sw=4 ts=4: */
    12/*
    23 *  md5.c - Compute MD5 checksum of strings according to the
     
    1213 *  Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
    1314 */
    14 #include <fcntl.h>
    15 #include <limits.h>
    16 #include <stdio.h>
    17 #include <stdint.h>
    18 #include <stdlib.h>
    19 #include <string.h>
    20 #include <unistd.h>
    2115
    2216#include "libbb.h"
    2317
    24 # if CONFIG_MD5_SIZE_VS_SPEED < 0 || CONFIG_MD5_SIZE_VS_SPEED > 3
     18#if CONFIG_MD5_SIZE_VS_SPEED < 0 || CONFIG_MD5_SIZE_VS_SPEED > 3
    2519# define MD5_SIZE_VS_SPEED 2
    26 # else
     20#else
    2721# define MD5_SIZE_VS_SPEED CONFIG_MD5_SIZE_VS_SPEED
    28 # endif
     22#endif
    2923
    3024/* Initialize structure containing state of computation.
     
    8276    };
    8377
    84     static const char P_array[] = {
     78    static const char P_array[] ALIGN1 = {
    8579#  if MD5_SIZE_VS_SPEED > 1
    8680        0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,   /* 1 */
     
    9286
    9387#  if MD5_SIZE_VS_SPEED > 1
    94     static const char S_array[] = {
     88    static const char S_array[] ALIGN1 = {
    9589        7, 12, 17, 22,
    9690        5, 9, 14, 20,
     
    439433    if (buf != ctx->buffer) md5_hash_block(ctx->buffer, ctx);
    440434    md5_hash_block(buf, ctx);
    441    
     435
    442436    /* Put result from CTX in first 16 bytes following RESBUF.  The result is
    443437     * always in little endian byte order, so that a byte-wise output yields
Note: See TracChangeset for help on using the changeset viewer.