X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Ftiger.c;h=c113aa7fdc79bc51e36370388a655a27933c327f;hb=ff19b3d86bebbcf6443ca33c5f3bf2bd7d487fdd;hp=6465dbb4b4b66fe3bd52522529b83b335b78fb67;hpb=d3372da97568d5e1f35fa19787c8ec8af93a0435;p=doldaconnect.git diff --git a/daemon/tiger.c b/daemon/tiger.c index 6465dbb..c113aa7 100644 --- a/daemon/tiger.c +++ b/daemon/tiger.c @@ -187,6 +187,15 @@ static void combine(struct tigertreehash *tth) restiger(&th, tth->stack[tth->depth - 1]); } +void pushtigertree(struct tigertreehash *tth, char *buf) +{ + int nb; + + memcpy(tth->stack[tth->depth++], buf, 24); + for(nb = ++tth->blocks; !(nb & 1); nb >>= 1) + combine(tth); +} + static void dotreeblock(struct tigertreehash *tth) { struct tigerhash th;