Go to the documentation of this file.
27 #ifndef POLARSSL_SHA1_H
28 #define POLARSSL_SHA1_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_SHA1_FILE_IO_ERROR -0x0076
47 #if !defined(POLARSSL_SHA1_ALT)
62 unsigned char buffer[64];
64 unsigned char ipad[64];
65 unsigned char opad[64];
115 #include "sha1_alt.h"
129 void sha1(
const unsigned char *input,
size_t ilen,
unsigned char output[20] );
139 int sha1_file(
const char *path,
unsigned char output[20] );
185 void sha1_hmac(
const unsigned char *key,
size_t keylen,
186 const unsigned char *input,
size_t ilen,
187 unsigned char output[20] );