Go to the documentation of this file.
27 #ifndef POLARSSL_SHA256_H
28 #define POLARSSL_SHA256_H
36 typedef UINT32 uint32_t;
41 #define POLARSSL_ERR_SHA256_FILE_IO_ERROR -0x0078
43 #if !defined(POLARSSL_SHA256_ALT)
58 unsigned char buffer[64];
60 unsigned char ipad[64];
61 unsigned char opad[64];
99 #include "sha256_alt.h"
114 void sha256(
const unsigned char *input,
size_t ilen,
115 unsigned char output[32],
int is224 );
126 int sha256_file(
const char *path,
unsigned char output[32],
int is224 );
137 size_t keylen,
int is224 );
173 void sha256_hmac(
const unsigned char *key,
size_t keylen,
174 const unsigned char *input,
size_t ilen,
175 unsigned char output[32],
int is224 );