Go to the documentation of this file.
27 #ifndef POLARSSL_SHA512_H
28 #define POLARSSL_SHA512_H
34 #if defined(_MSC_VER) || defined(__WATCOMC__)
35 #define UL64(x) x##ui64
36 typedef unsigned __int64 uint64_t;
39 #define UL64(x) x##ULL
42 #define POLARSSL_ERR_SHA512_FILE_IO_ERROR -0x007A
44 #if !defined(POLARSSL_SHA512_ALT)
59 unsigned char buffer[128];
61 unsigned char ipad[128];
62 unsigned char opad[128];
97 #include "sha512_alt.h"
112 void sha512(
const unsigned char *input,
size_t ilen,
113 unsigned char output[64],
int is384 );
124 int sha512_file(
const char *path,
unsigned char output[64],
int is384 );
135 size_t keylen,
int is384 );
171 void sha512_hmac(
const unsigned char *key,
size_t keylen,
172 const unsigned char *input,
size_t ilen,
173 unsigned char output[64],
int is384 );