]> git.cryptolib.org Git - avr-crypto-lib.git/blob - nessie_hash_test.h
c5da494be0ad5e3b74b3b6a6f0a52a6a7d84ffcc
[avr-crypto-lib.git] / nessie_hash_test.h
1 #ifndef NESSIE_HASH_TEST_H_
2 #define NESSIE_HASH_TEST_H_
3
4 #include <stdint.h>
5
6 typedef void (*nessie_hash_init_fpt)(void* ctx);
7 typedef void (*nessie_hash_next_fpt)(void* buffer, void* ctx);
8 typedef void (*nessie_hash_last_fpt)(void* buffer, uint16_t size_b, void* ctx);
9 typedef void (*nessie_hash_conv_fpt)(void* buffer, void* ctx);
10
11
12 typedef struct nessie_hash_ctx_st{
13         uint16_t hashsize_b;
14         uint16_t blocksize_B;
15         uint16_t ctx_size_B;
16         char* name; 
17         nessie_hash_init_fpt hash_init;
18         nessie_hash_next_fpt hash_next;
19         nessie_hash_last_fpt hash_last;
20         nessie_hash_conv_fpt hash_conv;
21 } nessie_hash_ctx_t; 
22
23
24 extern nessie_hash_ctx_t nessie_hash_ctx;
25
26 void nessie_hash_run(void);
27
28 #endif /*NESSIE_HASH_TEST_H_*/