X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=include%2Ftiger.h;fp=include%2Ftiger.h;h=1d16f518584fdb97010510bc80986800e29ab9fd;hb=8b17e919cee63400e6de2c5f699c0a88d226b7e6;hp=0000000000000000000000000000000000000000;hpb=f5602a3d7f8dcce406609b43e413d99bce4afc49;p=doldaconnect.git diff --git a/include/tiger.h b/include/tiger.h new file mode 100644 index 0000000..1d16f51 --- /dev/null +++ b/include/tiger.h @@ -0,0 +1,29 @@ +#ifndef _TIGER_H +#define _TIGER_H + +struct tigerhash { + unsigned long long a, b, c; + unsigned char block[64]; + int offset; + size_t len; +}; + +struct tigertreehash { + int blocks; + char block[1024]; + int offset; + char stack[64][24]; + int depth; +}; + +void inittiger(struct tigerhash *th); +void dotiger(struct tigerhash *th, char *buf, size_t buflen); +void synctiger(struct tigerhash *th); +void restiger(struct tigerhash *th, char *rbuf); +void inittigertree(struct tigertreehash *tth); +void dotigertree(struct tigertreehash *tth, char *buf, size_t buflen); +void synctigertree(struct tigertreehash *tth); +void restigertree(struct tigertreehash *tth, char *rbuf); +void pushtigertree(struct tigertreehash *tth, char *buf); + +#endif