mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2024-09-20 11:20:08 +00:00
0af5685495
- ASM is disabled - Neug needs full rewrite - Flash is based on PiMoroni 4MB flash (needs adjust) Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
14 lines
387 B
C
14 lines
387 B
C
#include <stdint.h>
|
|
|
|
struct shake_context {
|
|
uint64_t state[25];
|
|
uint32_t index;
|
|
};
|
|
typedef struct shake_context shake_context;
|
|
|
|
void shake256_start (struct shake_context *shake);
|
|
void shake256_update (struct shake_context *shake,
|
|
const unsigned char *src, unsigned int size);
|
|
void shake256_finish (struct shake_context *shake,
|
|
unsigned char *dst, unsigned int size);
|