md5.h 758 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* md5.h for openssl */
  2. #ifndef CYASSL_MD5_H_
  3. #define CYASSL_MD5_H_
  4. #include <cyassl/ctaocrypt/settings.h>
  5. #ifdef YASSL_PREFIX
  6. #include "prefix_md5.h"
  7. #endif
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. typedef struct CYASSL_MD5_CTX {
  12. int holder[24]; /* big enough to hold ctaocrypt md5, but check on init */
  13. } CYASSL_MD5_CTX;
  14. CYASSL_API void CyaSSL_MD5_Init(CYASSL_MD5_CTX*);
  15. CYASSL_API void CyaSSL_MD5_Update(CYASSL_MD5_CTX*, const void*, unsigned long);
  16. CYASSL_API void CyaSSL_MD5_Final(unsigned char*, CYASSL_MD5_CTX*);
  17. typedef CYASSL_MD5_CTX MD5_CTX;
  18. #define MD5_Init CyaSSL_MD5_Init
  19. #define MD5_Update CyaSSL_MD5_Update
  20. #define MD5_Final CyaSSL_MD5_Final
  21. #ifdef __cplusplus
  22. } /* extern "C" */
  23. #endif
  24. #endif /* CYASSL_MD5_H_ */