Up to [local] / src / usr.bin / rsync
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_7_5_BASE
Revision 1.48 / (download) - annotate - [select for diffs], Tue Feb 27 11:28:30 2024 UTC (3 months, 1 week ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5
Changes since 1.47: +8 -3 lines
Diff to previous 1.47 (colored)
Split hash_file into three steps, setup, add buf and final. Setup inits the context and adds the seed. The buf function simply adds a block from the file to the hash. The final function calls MD4_Final() to close the context and generate the hash. This will help to remove the mmap in the sender and should result in a more atomic view of the file since hash_file() is now called together with the other hash_functions. OK deraadt@ tb@