Go to the documentation of this file.
27 #ifndef POLARSSL_SHA2_H
28 #define POLARSSL_SHA2_H
36 typedef UINT32 uint32_t;
41 #define POLARSSL_ERR_SHA2_FILE_IO_ERROR -0x0078
43 #if !defined(POLARSSL_SHA2_ALT)
54 unsigned char buffer[64];
56 unsigned char ipad[64];
57 unsigned char opad[64];
114 void sha2(
const unsigned char *input,
size_t ilen,
115 unsigned char output[32],
int is224 );
126 int sha2_file(
const char *path,
unsigned char output[32],
int is224 );
173 void sha2_hmac(
const unsigned char *key,
size_t keylen,
174 const unsigned char *input,
size_t ilen,
175 unsigned char output[32],
int is224 );