62# include <openssl/e_os2.h>
69# if defined(OPENSSL_NO_SHA) || (defined(OPENSSL_NO_SHA0) && defined(OPENSSL_NO_SHA1))
70# error SHA is disabled.
73# if defined(OPENSSL_FIPS)
74# define FIPS_SHA_SIZE_T size_t
85# define SHA_LONG unsigned long
86# elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
87# define SHA_LONG unsigned long
88# define SHA_LONG_LOG2 3
90# define SHA_LONG unsigned int
94# define SHA_CBLOCK (SHA_LBLOCK*4)
97# define SHA_LAST_BLOCK (SHA_CBLOCK-8)
98# define SHA_DIGEST_LENGTH 20
107# ifndef OPENSSL_NO_SHA0
114unsigned char *
SHA(
const unsigned char *d,
size_t n,
unsigned char *md);
117# ifndef OPENSSL_NO_SHA1
124unsigned char *
SHA1(
const unsigned char *d,
size_t n,
unsigned char *md);
128# define SHA256_CBLOCK (SHA_LBLOCK*4)
131# define SHA224_DIGEST_LENGTH 28
132# define SHA256_DIGEST_LENGTH 32
141# ifndef OPENSSL_NO_SHA256
149unsigned char *
SHA224(
const unsigned char *d,
size_t n,
unsigned char *md);
153unsigned char *
SHA256(
const unsigned char *d,
size_t n,
unsigned char *md);
157# define SHA384_DIGEST_LENGTH 48
158# define SHA512_DIGEST_LENGTH 64
160# ifndef OPENSSL_NO_SHA512
171# define SHA512_CBLOCK (SHA_LBLOCK*8)
172# if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
173# define SHA_LONG64 unsigned __int64
174# define U64(C) C##UI64
175# elif defined(__arch64__)
176# define SHA_LONG64 unsigned long
179# define SHA_LONG64 unsigned long long
180# define U64(C) C##ULL
194# ifndef OPENSSL_NO_SHA512
202unsigned char *
SHA384(
const unsigned char *d,
size_t n,
unsigned char *md);
206unsigned char *
SHA512(
const unsigned char *d,
size_t n,
unsigned char *md);
int SHA256_Final(unsigned char *md, SHA256_CTX *c)
int SHA512_Update(SHA512_CTX *c, const void *data, size_t len)
struct SHA512state_st SHA512_CTX
struct SHAstate_st SHA_CTX
int SHA384_Final(unsigned char *md, SHA512_CTX *c)
int SHA512_Init(SHA512_CTX *c)
void SHA512_Transform(SHA512_CTX *c, const unsigned char *data)
int SHA512_Final(unsigned char *md, SHA512_CTX *c)
void SHA256_Transform(SHA256_CTX *c, const unsigned char *data)
unsigned char * SHA256(const unsigned char *d, size_t n, unsigned char *md)
void SHA1_Transform(SHA_CTX *c, const unsigned char *data)
unsigned char * SHA512(const unsigned char *d, size_t n, unsigned char *md)
int SHA224_Final(unsigned char *md, SHA256_CTX *c)
int SHA256_Update(SHA256_CTX *c, const void *data, size_t len)
unsigned char * SHA1(const unsigned char *d, size_t n, unsigned char *md)
unsigned char * SHA384(const unsigned char *d, size_t n, unsigned char *md)
int SHA_Final(unsigned char *md, SHA_CTX *c)
int SHA384_Update(SHA512_CTX *c, const void *data, size_t len)
int SHA1_Update(SHA_CTX *c, const void *data, size_t len)
int SHA224_Init(SHA256_CTX *c)
int SHA384_Init(SHA512_CTX *c)
struct SHA256state_st SHA256_CTX
int SHA256_Init(SHA256_CTX *c)
int SHA1_Init(SHA_CTX *c)
void SHA_Transform(SHA_CTX *c, const unsigned char *data)
int SHA224_Update(SHA256_CTX *c, const void *data, size_t len)
int SHA1_Final(unsigned char *md, SHA_CTX *c)
int SHA_Update(SHA_CTX *c, const void *data, size_t len)
unsigned char * SHA(const unsigned char *d, size_t n, unsigned char *md)
unsigned char * SHA224(const unsigned char *d, size_t n, unsigned char *md)
SHA_LONG data[SHA_LBLOCK]
union SHA512state_st::@33 u
unsigned char p[SHA512_CBLOCK]
SHA_LONG data[SHA_LBLOCK]