manbytesgnu_site

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

keccak-tiny.h (531B)


      1 #ifndef KECCAK_FIPS202_H
      2 #define KECCAK_FIPS202_H
      3 #define __STDC_WANT_LIB_EXT1__ 1
      4 #include <stdint.h>
      5 #include <stdlib.h>
      6 
      7 #define decshake(bits) \
      8   int shake##bits(uint8_t*, size_t, const uint8_t*, size_t);
      9 
     10 #define decsha3(bits) \
     11   int sha3_##bits(uint8_t*, size_t, const uint8_t*, size_t);
     12 
     13 decshake(128)
     14 decshake(256)
     15 decsha3(224)
     16 decsha3(256)
     17 decsha3(384)
     18 decsha3(512)
     19 
     20 int hash(uint8_t* out, size_t outlen,
     21                        const uint8_t* in, size_t inlen,
     22                        size_t rate, uint8_t delim);
     23 #endif