Go to the documentation of this file.
27 #ifndef POLARSSL_SHA256_H
28 #define POLARSSL_SHA256_H
30 #if !defined(POLARSSL_CONFIG_FILE)
33 #include POLARSSL_CONFIG_FILE
38 #if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
40 typedef UINT32 uint32_t;
45 #define POLARSSL_ERR_SHA256_FILE_IO_ERROR -0x0078
47 #if !defined(POLARSSL_SHA256_ALT)
62 unsigned char buffer[64];
64 unsigned char ipad[64];
65 unsigned char opad[64];
118 #include "sha256_alt.h"
133 void sha256(
const unsigned char *input,
size_t ilen,
134 unsigned char output[32],
int is224 );
145 int sha256_file(
const char *path,
unsigned char output[32],
int is224 );
156 size_t keylen,
int is224 );
193 void sha256_hmac(
const unsigned char *key,
size_t keylen,
194 const unsigned char *input,
size_t ilen,
195 unsigned char output[32],
int is224 );