small.c (269B)
1 #include <XKCP/KeccakHash.h> 2 3 int wrap_keccak(const char *data, size_t bitlen, char *zout) { 4 Keccak_HashInstance instance; 5 Keccak_HashInitialize(&instance, 1088, 512, 256, 0x01); 6 Keccak_HashUpdate(&instance, data, (int)bitlen); 7 Keccak_HashFinal(&instance, zout); 8 }