diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/md5sum.c | 10 | ||||
-rw-r--r-- | coreutils/uuencode.c | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c index 83c769ef2..f5be4486c 100644 --- a/coreutils/md5sum.c +++ b/coreutils/md5sum.c | |||
@@ -434,7 +434,7 @@ static void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ct | |||
434 | temp += FI(B,C,D); | 434 | temp += FI(B,C,D); |
435 | } | 435 | } |
436 | temp += cwp[(int)(*pp++)] + *pc++; | 436 | temp += cwp[(int)(*pp++)] + *pc++; |
437 | temp = CYCLIC (temp, ps[i&3]); | 437 | CYCLIC (temp, ps[i&3]); |
438 | temp += B; | 438 | temp += B; |
439 | A = D; D = C; C = B; B = temp; | 439 | A = D; D = C; C = B; B = temp; |
440 | } | 440 | } |
@@ -443,7 +443,7 @@ static void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ct | |||
443 | 443 | ||
444 | for ( i = 0 ; i < 16 ; i++ ) { | 444 | for ( i = 0 ; i < 16 ; i++ ) { |
445 | temp = A + FF(B,C,D) + cwp[(int)(*pp++)] + *pc++; | 445 | temp = A + FF(B,C,D) + cwp[(int)(*pp++)] + *pc++; |
446 | temp = CYCLIC (temp, ps[i&3]); | 446 | CYCLIC (temp, ps[i&3]); |
447 | temp += B; | 447 | temp += B; |
448 | A = D; D = C; C = B; B = temp; | 448 | A = D; D = C; C = B; B = temp; |
449 | } | 449 | } |
@@ -451,21 +451,21 @@ static void md5_process_block(const void *buffer, size_t len, struct md5_ctx *ct | |||
451 | ps += 4; | 451 | ps += 4; |
452 | for ( i = 0 ; i < 16 ; i++ ) { | 452 | for ( i = 0 ; i < 16 ; i++ ) { |
453 | temp = A + FG(B,C,D) + cwp[(int)(*pp++)] + *pc++; | 453 | temp = A + FG(B,C,D) + cwp[(int)(*pp++)] + *pc++; |
454 | temp = CYCLIC (temp, ps[i&3]); | 454 | CYCLIC (temp, ps[i&3]); |
455 | temp += B; | 455 | temp += B; |
456 | A = D; D = C; C = B; B = temp; | 456 | A = D; D = C; C = B; B = temp; |
457 | } | 457 | } |
458 | ps += 4; | 458 | ps += 4; |
459 | for ( i = 0 ; i < 16 ; i++ ) { | 459 | for ( i = 0 ; i < 16 ; i++ ) { |
460 | temp = A + FH(B,C,D) + cwp[(int)(*pp++)] + *pc++; | 460 | temp = A + FH(B,C,D) + cwp[(int)(*pp++)] + *pc++; |
461 | temp = CYCLIC (temp, ps[i&3]); | 461 | CYCLIC (temp, ps[i&3]); |
462 | temp += B; | 462 | temp += B; |
463 | A = D; D = C; C = B; B = temp; | 463 | A = D; D = C; C = B; B = temp; |
464 | } | 464 | } |
465 | ps += 4; | 465 | ps += 4; |
466 | for ( i = 0 ; i < 16 ; i++ ) { | 466 | for ( i = 0 ; i < 16 ; i++ ) { |
467 | temp = A + FI(B,C,D) + cwp[(int)(*pp++)] + *pc++; | 467 | temp = A + FI(B,C,D) + cwp[(int)(*pp++)] + *pc++; |
468 | temp = CYCLIC (temp, ps[i&3]); | 468 | CYCLIC (temp, ps[i&3]); |
469 | temp += B; | 469 | temp += B; |
470 | A = D; D = C; C = B; B = temp; | 470 | A = D; D = C; C = B; B = temp; |
471 | } | 471 | } |
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 24b9f1c6a..1d42494fd 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c | |||
@@ -21,6 +21,7 @@ | |||
21 | */ | 21 | */ |
22 | #include <getopt.h> | 22 | #include <getopt.h> |
23 | #include <stdio.h> | 23 | #include <stdio.h> |
24 | #include <string.h> | ||
24 | #include <stdlib.h> | 25 | #include <stdlib.h> |
25 | #include <sys/types.h> | 26 | #include <sys/types.h> |
26 | #include <sys/stat.h> | 27 | #include <sys/stat.h> |
@@ -49,7 +50,7 @@ static char tbl_std[65] = { | |||
49 | 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', | 50 | 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', |
50 | 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', | 51 | 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', |
51 | 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', | 52 | 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', |
52 | '\`' /* termination character */ | 53 | '`' /* termination character */ |
53 | }; | 54 | }; |
54 | 55 | ||
55 | /* | 56 | /* |