Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/libbb/md5.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/libbb/md5.c
r821 r1770 1 /* vi: set sw=4 ts=4: */ 1 2 /* 2 3 * md5.c - Compute MD5 checksum of strings according to the … … 12 13 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 13 14 */ 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>21 15 22 16 #include "libbb.h" 23 17 24 # 18 #if CONFIG_MD5_SIZE_VS_SPEED < 0 || CONFIG_MD5_SIZE_VS_SPEED > 3 25 19 # define MD5_SIZE_VS_SPEED 2 26 # 20 #else 27 21 # define MD5_SIZE_VS_SPEED CONFIG_MD5_SIZE_VS_SPEED 28 # 22 #endif 29 23 30 24 /* Initialize structure containing state of computation. … … 82 76 }; 83 77 84 static const char P_array[] = {78 static const char P_array[] ALIGN1 = { 85 79 # if MD5_SIZE_VS_SPEED > 1 86 80 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, /* 1 */ … … 92 86 93 87 # if MD5_SIZE_VS_SPEED > 1 94 static const char S_array[] = {88 static const char S_array[] ALIGN1 = { 95 89 7, 12, 17, 22, 96 90 5, 9, 14, 20, … … 439 433 if (buf != ctx->buffer) md5_hash_block(ctx->buffer, ctx); 440 434 md5_hash_block(buf, ctx); 441 435 442 436 /* Put result from CTX in first 16 bytes following RESBUF. The result is 443 437 * always in little endian byte order, so that a byte-wise output yields
Note:
See TracChangeset
for help on using the changeset viewer.