Go to the documentation of this file.
27 #ifndef POLARSSL_SHA2_H
28 #define POLARSSL_SHA2_H
34 typedef UINT32 uint32_t;
39 #define POLARSSL_ERR_SHA2_FILE_IO_ERROR -0x0078
48 unsigned char buffer[64];
50 unsigned char ipad[64];
51 unsigned char opad[64];
93 void sha2(
const unsigned char *input,
size_t ilen,
94 unsigned char output[32],
int is224 );
105 int sha2_file(
const char *path,
unsigned char output[32],
int is224 );
152 void sha2_hmac(
const unsigned char *key,
size_t keylen,
153 const unsigned char *input,
size_t ilen,
154 unsigned char output[32],
int is224 );