git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0e10163
)
We must use the CSUM_CHUNK size in the non-openssl MD4 code.
author
Wayne Davison
<wayne@opencoder.net>
Sun, 14 Aug 2022 21:03:02 +0000
(14:03 -0700)
committer
Wayne Davison
<wayne@opencoder.net>
Sun, 14 Aug 2022 21:03:02 +0000
(14:03 -0700)
checksum.c
patch
|
blob
|
history
diff --git
a/checksum.c
b/checksum.c
index fb8c0a099e7f7752c1eba8c061e775a956ba397f..758b489db6ae8b4a6dde818e51f12af2b63289e7 100644
(file)
--- a/
checksum.c
+++ b/
checksum.c
@@
-418,8
+418,8
@@
void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum)
mdfour_begin(&m);
- for (i = 0; i + C
HUNK_SIZE <= len; i += CHUNK_SIZE
)
- mdfour_update(&m, (uchar *)map_ptr(buf, i, C
HUNK_SIZE), CHUNK_SIZE
);
+ for (i = 0; i + C
SUM_CHUNK <= len; i += CSUM_CHUNK
)
+ mdfour_update(&m, (uchar *)map_ptr(buf, i, C
SUM_CHUNK), CSUM_CHUNK
);
/* Prior to version 27 an incorrect MD4 checksum was computed
* by failing to call mdfour_tail() for block sizes that