Go to the documentation of this file.
27 #ifndef POLARSSL_SHA4_H
28 #define POLARSSL_SHA4_H
32 #if defined(_MSC_VER) || defined(__WATCOMC__)
33 #define UL64(x) x##ui64
34 typedef unsigned __int64 uint64_t;
37 #define UL64(x) x##ULL
40 #define POLARSSL_ERR_SHA4_FILE_IO_ERROR -0x007A
49 unsigned char buffer[128];
51 unsigned char ipad[128];
52 unsigned char opad[128];
94 void sha4(
const unsigned char *input,
size_t ilen,
95 unsigned char output[64],
int is384 );
106 int sha4_file(
const char *path,
unsigned char output[64],
int is384 );
153 void sha4_hmac(
const unsigned char *key,
size_t keylen,
154 const unsigned char *input,
size_t ilen,
155 unsigned char output[64],
int is384 );