// keccak.h // 19-Nov-11 Markku-Juhani O. Saarinen #ifndef KECCAK_H #define KECCAK_H #include #include #ifndef KECCAK_ROUNDS #define KECCAK_ROUNDS 24 #endif #ifndef ROTL64 #define ROTL64(a, n) rol64(a, n) #endif #ifdef __cplusplus extern "C" { #endif // compute a keccak hash (md) of given byte length from "in" int keccak(const uint8_t *in, int inlen, uint8_t *md, int mdlen); // update the state void keccakf(uint64_t st[25], int norounds); void keccak1600(const uint8_t *in, int inlen, uint8_t *md); #ifdef __cplusplus } #endif #endif