manbytesgnu_site

Source files for manbytesgnu.org
git clone git://holbrook.no/manbytesgnu_site.git
Info | Log | Files | Refs

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 }