// keccak.h // 19-Nov-11 Markku-Juhani O. Saarinen #ifndef keccak_H #define keccak_H #include #include #include #ifndef KECCAK_ROUNDS #define KECCAK_ROUNDS 24 #endif #ifndef ROTL64 #define ROTL64(x, y) (((x) << (y)) | ((x) >> (64 - (y)))) #endif //Changed inlen to size_t (s.n. MRL labs) // compute a keccak hash (md) of given byte length from "in" int keccak(const uint8_t *in, std::size_t inlen, uint8_t *md, int mdlen); // update the state void keccakf(uint64_t st[25], int norounds); //Changed inlen to size_t (s.n. MRL labs) void keccak1600(const uint8_t *in, std::size_t inlen, uint8_t *md); #endif