1 #ifndef KECCAK_FIPS202_H
2 #define KECCAK_FIPS202_H
7 #define KECCAK_MAX_RATE 200
10 #define KECCAK_RATE(bits) (KECCAK_MAX_RATE - (bits / 4))
16 uint8_t a[KECCAK_MAX_RATE];
20 uint8_t block[KECCAK_MAX_RATE];
23 uint8_t finalized : 1;
30 int keccak_digest_update(
keccak_state *s, const uint8_t *buf,
size_t len);
35 int keccak_digest_sum(const
keccak_state *s, uint8_t *out,
size_t outlen);
41 int keccak_xof_absorb(
keccak_state *s, const uint8_t *buf,
size_t len);
46 int keccak_xof_squeeze(
keccak_state *s, uint8_t *out,
size_t outlen);
54 #define decshake(bits) \
55 int shake##bits(uint8_t*, size_t, const uint8_t*, size_t);
57 #define decsha3(bits) \
58 int sha3_##bits(uint8_t*, size_t, const uint8_t*, size_t);
Integer definitions used throughout Tor.