Files
wolfssl/include/openssl/sha.h

38 lines
669 B
C
Raw Normal View History

2011-02-05 11:14:47 -08:00
/* sha.h for openssl */
#ifndef CYASSL_SHA_H_
#define CYASSL_SHA_H_
#ifdef YASSL_PREFIX
#include "prefix_sha.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef struct SHA_CTX {
int holder[24]; /* big enough to hold ctaocrypt sha, but check on init */
} SHA_CTX;
void SHA_Init(SHA_CTX*);
void SHA_Update(SHA_CTX*, const void*, unsigned long);
void SHA_Final(unsigned char*, SHA_CTX*);
2011-03-30 12:36:23 -07:00
/* SHA1 points to above, shouldn't use SHA0 ever */
void SHA1_Init(SHA_CTX*);
void SHA1_Update(SHA_CTX*, const void*, unsigned long);
void SHA1_Final(unsigned char*, SHA_CTX*);
2011-02-05 11:14:47 -08:00
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* CYASSL_SHA_H_ */