]> git.cryptolib.org Git - avr-crypto-lib.git/blob - twister/twister-sha3api.h
adjusting test system uart reference
[avr-crypto-lib.git] / twister / twister-sha3api.h
1 /* twister-sha3api.h */
2
3 #include "sha3-api.h"
4 #include <stdint.h>
5
6 typedef struct{
7         uint16_t  hashbitlen;
8         uint8_t   big;
9         void*     ctx; /* points either to twister_state_t or twister_big_ctx_t */
10         uint8_t   buffer[64];
11         uint16_t  buffer_fill_state;
12 }hashState;
13
14 HashReturn Init(hashState *state, int hashbitlen);
15 HashReturn Update(hashState *state, const BitSequence *data,
16                   DataLength databitlen);
17 HashReturn Final(hashState *state, BitSequence *hashval);
18 HashReturn Hash(int hashbitlen, const BitSequence *data,
19                 DataLength databitlen, BitSequence *hashval);
20