UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
shake.h
1 
14 #ifndef __UTIL_SHAKE_H__
15 #define __UTIL_SHAKE_H__
16 
17 #include "../firmware.h"
18 
19 /* Shake Context */
20 typedef struct {
21  union { // state:
22  uint8_t b[200]; // 8-bit bytes
23  uint64_t q[25]; // 64-bit words
24  } st;
25  int pt, rsiz; // these don't overflow
26  uint32_t mdlen;
28 
38 void Util_shake_init(util_shake_ctx_t *c, uint8_t output_length);
39 
50 void Util_shake_update(util_shake_ctx_t *c, const uint8_t *data, uint32_t data_length);
51 
63 void Util_shake_out(util_shake_ctx_t *c, uint8_t *out);
64 
65 #endif /* __UTIL_SHAKE_H__ */
void Util_shake_init(util_shake_ctx_t *c, uint8_t output_length)
Definition: shake.c:116
void Util_shake_out(util_shake_ctx_t *c, uint8_t *out)
Definition: shake.c:147
void Util_shake_update(util_shake_ctx_t *c, const uint8_t *data, uint32_t data_length)
Definition: shake.c:129