| 1 | #ifndef _TIGER_H |
| 2 | #define _TIGER_H |
| 3 | |
| 4 | struct tigerhash { |
| 5 | unsigned long long a, b, c; |
| 6 | unsigned char block[64]; |
| 7 | int offset; |
| 8 | size_t len; |
| 9 | }; |
| 10 | |
| 11 | struct tigertreehash { |
| 12 | int blocks; |
| 13 | char block[1024]; |
| 14 | int offset; |
| 15 | char stack[64][24]; |
| 16 | int depth; |
| 17 | }; |
| 18 | |
| 19 | void inittiger(struct tigerhash *th); |
| 20 | void dotiger(struct tigerhash *th, char *buf, size_t buflen); |
| 21 | void synctiger(struct tigerhash *th); |
| 22 | void restiger(struct tigerhash *th, char *rbuf); |
| 23 | void inittigertree(struct tigertreehash *tth); |
| 24 | void dotigertree(struct tigertreehash *tth, char *buf, size_t buflen); |
| 25 | void synctigertree(struct tigertreehash *tth); |
| 26 | void restigertree(struct tigertreehash *tth, char *rbuf); |
| 27 | |
| 28 | #endif |