ascon.h 317 Bytes
Newer Older
Martin Schläffer committed
1 2 3 4 5 6 7 8 9 10 11
#ifndef ASCON_H_
#define ASCON_H_

#include <stdint.h>

#include "word.h"

typedef struct {
  word_t x0, x1, x2, x3, x4;
} state_t;

Enrico Pozzobon committed
12 13 14
void ascon_hashinit(state_t* s);
void ascon_absorb(state_t* s, const uint8_t* in, uint64_t inlen);
void ascon_squeeze(state_t* s, uint8_t* out, uint64_t outlen);
Martin Schläffer committed
15

Martin Schläffer committed
16
#endif /* ASCON_H */