search for: sumresidu

Displaying 6 results from an estimated 6 matches for "sumresidu".

Did you mean: sumresidue
2002 Jan 13
0
rsynd-2.5.1 / checksum.c patches
...ile_checksum(char *fname,char *sum,OFF_T size) +void file_checksum(const char *fname, void *sum,OFF_T size) { OFF_T i; struct map_struct *buf; @@ -133,15 +134,17 @@ void sum_init(void) { - char s[4]; + unsigned char s[4]; mdfour_begin(&md); sumresidue=0; SIVAL(s,0,checksum_seed); sum_update(s,4); } -void sum_update(char *p,int len) +void sum_update(void *p1,int len) { +unsigned char * p; + p = (unsigned char *)p1; int i; if (len + sumresidue < CSUM_CHUNK) { memcpy(sumrbuf+sumres...
2003 Oct 05
2
Possible security hole
Maybe security related mails should be sent elsewhere? I didn't notice any so here it goes: sender.c:receive_sums() s->count = read_int(f); .. s->sums = (struct sum_buf *)malloc(sizeof(s->sums[0])*s->count); if (!s->sums) out_of_memory("receive_sums"); for (i=0; i < (int) s->count;i++) { s->sums[i].sum1 = read_int(f);
2003 May 08
5
MD4 bug-fix for protocol version 27
...================================================================== RCS file: /cvsroot/rsync/checksum.c,v retrieving revision 1.25 diff -u -r1.25 checksum.c --- checksum.c 10 Apr 2003 01:50:12 -0000 1.25 +++ checksum.c 7 May 2003 14:27:06 -0000 @@ -184,7 +184,7 @@ void sum_end(char *sum) { - if (sumresidue) { + if (sumresidue || remote_version >= 27) { mdfour_update(&md, (uchar *)sumrbuf, sumresidue); }
2003 Mar 22
2
[RFC] protocol version
I'm in the midst of coding a patch set for consideration that will bump the protocol version and have a couple of observations. The current minimum backwards-compatible protocol is 15 but we have code that checks for protocol versions as old as 12. If someone else doesn't beat me to it i'm considering cleaning out the pre-15 compatibility code. A backwards compatibility patch could
2002 Aug 05
5
[patch] read-devices
...change! + It would be better to allow checksum lengths to differ between files. #ET# XXX */ + else + csum_length = 2; + } else + csum_length = SUM_LENGTH; + rprintf(FINFO, "#ET# csum_length=%d\n", csum_length); } @@ -171,9 +176,9 @@ } void sum_end(char *sum) { - if (sumresidue) { + if (sumresidue) { /* remove the test to address http://lists.samba.org/pipermail/rsync/2002-August/008011.html */ mdfour_update(&md, (uchar *)sumrbuf, sumresidue); } mdfour_result(&md, (uchar *)sum); Only in rsync-patched: config.h diff -r -u4 rsync-2.5.5/fileio.c rsync-patch...
2020 Feb 09
2
[RFC PATCH] Add SHA1 support
..._update(&m, (uchar *)map_ptr(buf, i, remainder), remainder); - - md5_result(&m, (uchar *)sum); + compute_lib_hash(buf, len, sum); break; case CSUM_MD4: case CSUM_MD4_OLD: @@ -254,6 +314,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum) static int32 sumresidue; static md_context md; static int cursum_type; +static MDLIB_MD_CTX *md_sum; void sum_init(int csum_type, int seed) { @@ -264,8 +325,21 @@ void sum_init(int csum_type, int seed) cursum_type = csum_type; switch (csum_type) { + case CSUM_SHA1: case CSUM_MD5: - md5_begin(&md);...