2011-02-05 22:14:47 +03:00
|
|
|
/* md5.h for openssl */
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef CYASSL_MD5_H_
|
|
|
|
#define CYASSL_MD5_H_
|
|
|
|
|
2012-01-17 03:11:37 +04:00
|
|
|
#include <cyassl/ctaocrypt/settings.h>
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
#ifdef YASSL_PREFIX
|
|
|
|
#include "prefix_md5.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2011-08-27 01:40:51 +04:00
|
|
|
typedef struct CYASSL_MD5_CTX {
|
2011-02-05 22:14:47 +03:00
|
|
|
int holder[24]; /* big enough to hold ctaocrypt md5, but check on init */
|
2011-08-27 01:40:51 +04:00
|
|
|
} CYASSL_MD5_CTX;
|
2011-02-05 22:14:47 +03:00
|
|
|
|
2011-08-27 01:40:51 +04:00
|
|
|
CYASSL_API void CyaSSL_MD5_Init(CYASSL_MD5_CTX*);
|
|
|
|
CYASSL_API void CyaSSL_MD5_Update(CYASSL_MD5_CTX*, const void*, unsigned long);
|
|
|
|
CYASSL_API void CyaSSL_MD5_Final(unsigned char*, CYASSL_MD5_CTX*);
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
|
2011-08-27 01:40:51 +04:00
|
|
|
typedef CYASSL_MD5_CTX MD5_CTX;
|
|
|
|
|
2012-04-27 03:27:27 +04:00
|
|
|
#define MD5_Init CyaSSL_MD5_Init
|
|
|
|
#define MD5_Update CyaSSL_MD5_Update
|
|
|
|
#define MD5_Final CyaSSL_MD5_Final
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* CYASSL_MD5_H_ */
|
|
|
|
|