tiger.h 693 B

1234567891011121314151617181920212223
  1. #ifndef ___TIGER_H___
  2. #define ___TIGER_H___
  3. #include "../rhsyscfg.h"
  4. typedef struct _tiger_hash_state
  5. {
  6. ulong64 state[3], length;
  7. unsigned long curlen;
  8. unsigned char buf[64];
  9. } tiger_hash_state;
  10. void tiger_init(tiger_hash_state *md);
  11. void tiger_process(tiger_hash_state * md, const unsigned char *buf, unsigned long len);
  12. void tiger_done(tiger_hash_state * md, unsigned char *hash);
  13. static void _tiger_compress(tiger_hash_state *md);
  14. static void _tiger_round(ulong64 *a, ulong64 *b, ulong64 *c, ulong64 x, ulong64 mul);
  15. static void _tiger_pass(ulong64 *a, ulong64 *b, ulong64 *c, ulong64 *x, ulong64 mul);
  16. static void _tiger_key_schedule(ulong64 *x);
  17. #endif // ___TIGER_H___