SSL/TLS Library
CyaSSL is SSL/TLS library for embedded systems.
cyassl/openssl/md5.h@0:9d17e4342598, 2014-04-20 (annotated)
- Committer:
- wolfSSL
- Date:
- Sun Apr 20 12:40:57 2014 +0000
- Revision:
- 0:9d17e4342598
CyaSSL SSL/TLS Library 2.9.4;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wolfSSL | 0:9d17e4342598 | 1 | /* md5.h for openssl */ |
wolfSSL | 0:9d17e4342598 | 2 | |
wolfSSL | 0:9d17e4342598 | 3 | |
wolfSSL | 0:9d17e4342598 | 4 | #ifndef CYASSL_MD5_H_ |
wolfSSL | 0:9d17e4342598 | 5 | #define CYASSL_MD5_H_ |
wolfSSL | 0:9d17e4342598 | 6 | |
wolfSSL | 0:9d17e4342598 | 7 | #include <cyassl/ctaocrypt/settings.h> |
wolfSSL | 0:9d17e4342598 | 8 | |
wolfSSL | 0:9d17e4342598 | 9 | #ifdef YASSL_PREFIX |
wolfSSL | 0:9d17e4342598 | 10 | #include "prefix_md5.h" |
wolfSSL | 0:9d17e4342598 | 11 | #endif |
wolfSSL | 0:9d17e4342598 | 12 | |
wolfSSL | 0:9d17e4342598 | 13 | #ifdef __cplusplus |
wolfSSL | 0:9d17e4342598 | 14 | extern "C" { |
wolfSSL | 0:9d17e4342598 | 15 | #endif |
wolfSSL | 0:9d17e4342598 | 16 | |
wolfSSL | 0:9d17e4342598 | 17 | |
wolfSSL | 0:9d17e4342598 | 18 | typedef struct CYASSL_MD5_CTX { |
wolfSSL | 0:9d17e4342598 | 19 | int holder[24]; /* big enough to hold ctaocrypt md5, but check on init */ |
wolfSSL | 0:9d17e4342598 | 20 | } CYASSL_MD5_CTX; |
wolfSSL | 0:9d17e4342598 | 21 | |
wolfSSL | 0:9d17e4342598 | 22 | CYASSL_API void CyaSSL_MD5_Init(CYASSL_MD5_CTX*); |
wolfSSL | 0:9d17e4342598 | 23 | CYASSL_API void CyaSSL_MD5_Update(CYASSL_MD5_CTX*, const void*, unsigned long); |
wolfSSL | 0:9d17e4342598 | 24 | CYASSL_API void CyaSSL_MD5_Final(unsigned char*, CYASSL_MD5_CTX*); |
wolfSSL | 0:9d17e4342598 | 25 | |
wolfSSL | 0:9d17e4342598 | 26 | |
wolfSSL | 0:9d17e4342598 | 27 | typedef CYASSL_MD5_CTX MD5_CTX; |
wolfSSL | 0:9d17e4342598 | 28 | |
wolfSSL | 0:9d17e4342598 | 29 | #define MD5_Init CyaSSL_MD5_Init |
wolfSSL | 0:9d17e4342598 | 30 | #define MD5_Update CyaSSL_MD5_Update |
wolfSSL | 0:9d17e4342598 | 31 | #define MD5_Final CyaSSL_MD5_Final |
wolfSSL | 0:9d17e4342598 | 32 | |
wolfSSL | 0:9d17e4342598 | 33 | #ifdef __cplusplus |
wolfSSL | 0:9d17e4342598 | 34 | } /* extern "C" */ |
wolfSSL | 0:9d17e4342598 | 35 | #endif |
wolfSSL | 0:9d17e4342598 | 36 | |
wolfSSL | 0:9d17e4342598 | 37 | |
wolfSSL | 0:9d17e4342598 | 38 | #endif /* CYASSL_MD5_H_ */ |
wolfSSL | 0:9d17e4342598 | 39 |