X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Ftiger.c;h=c113aa7fdc79bc51e36370388a655a27933c327f;hb=695aa5297743cd2c564be551f2659a7f58d0e437;hp=6465dbb4b4b66fe3bd52522529b83b335b78fb67;hpb=668d96ab81d447fe8d08115c5c03e47d225b3f56;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;