diff options
Diffstat (limited to 'coreutils/md5sum.c')
-rw-r--r-- | coreutils/md5sum.c | 10 |
1 files changed, 5 insertions, 5 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 | } |