3 #ifndef TWISTER_SMALL_H_
4 #define TWISTER_SMALL_H_
9 typedef uint8_t twister256_hash_t[256/8];
10 typedef uint8_t twister224_hash_t[224/8];
12 typedef twister_state_t twister256_ctx_t;
13 typedef twister_state_t twister224_ctx_t;
15 void twister_small_init(twister_state_t* ctx, uint16_t hashsize_b);
16 void twister_small_lastBlock(twister_state_t* ctx, const void* msg, uint16_t length_b);
17 void twister_small_ctx2hash(void* dest, twister_state_t* ctx, uint16_t hashsize_b);
18 void twister_small_nextBlock(twister_state_t* ctx, const void* msg);
21 void twister256_init(twister256_ctx_t* ctx);
22 void twister256_nextBlock(twister256_ctx_t* ctx, const void* msg);
23 void twister256_lastBlock(twister256_ctx_t* ctx, const void* msg, uint16_t length_b);
24 void twister256_ctx2hash(void* dest, twister_state_t* ctx);
25 void twister256(void* dest, const void* msg, uint32_t msg_length_b);
27 void twister224_init(twister224_ctx_t* ctx);
28 void twister224_nextBlock(twister224_ctx_t* ctx, const void* msg);
29 void twister224_lastBlock(twister224_ctx_t* ctx, const void* msg, uint16_t length_b);
30 void twister224_ctx2hash(void* dest, twister224_ctx_t* ctx);
31 void twister224(void* dest, const void* msg, uint32_t msg_length_b);
33 #endif /* TWISTER_SMALL_H_ */