A library for setting up Secure Socket Layer (SSL) connections and verifying remote hosts using certificates. Contains only the source files for mbed platform implementation of the library.
Dependents: HTTPClient-SSL HTTPClient-SSL HTTPClient-SSL HTTPClient-SSL
cyassl/openssl/md5.h@6:cf58d49e1a86, 2015-03-23 (annotated)
- Committer:
- Mike Fiore
- Date:
- Mon Mar 23 16:51:07 2015 -0500
- Revision:
- 6:cf58d49e1a86
- Parent:
- 0:b86d15c6ba29
fix whitespace in sha512.c
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Vanger | 0:b86d15c6ba29 | 1 | /* md5.h for openssl */ |
Vanger | 0:b86d15c6ba29 | 2 | |
Vanger | 0:b86d15c6ba29 | 3 | |
Vanger | 0:b86d15c6ba29 | 4 | #ifndef CYASSL_MD5_H_ |
Vanger | 0:b86d15c6ba29 | 5 | #define CYASSL_MD5_H_ |
Vanger | 0:b86d15c6ba29 | 6 | |
Vanger | 0:b86d15c6ba29 | 7 | #include <cyassl/ctaocrypt/settings.h> |
Vanger | 0:b86d15c6ba29 | 8 | |
Vanger | 0:b86d15c6ba29 | 9 | #ifdef YASSL_PREFIX |
Vanger | 0:b86d15c6ba29 | 10 | #include "prefix_md5.h" |
Vanger | 0:b86d15c6ba29 | 11 | #endif |
Vanger | 0:b86d15c6ba29 | 12 | |
Vanger | 0:b86d15c6ba29 | 13 | #ifdef __cplusplus |
Vanger | 0:b86d15c6ba29 | 14 | extern "C" { |
Vanger | 0:b86d15c6ba29 | 15 | #endif |
Vanger | 0:b86d15c6ba29 | 16 | |
Vanger | 0:b86d15c6ba29 | 17 | |
Vanger | 0:b86d15c6ba29 | 18 | typedef struct CYASSL_MD5_CTX { |
Vanger | 0:b86d15c6ba29 | 19 | int holder[24]; /* big enough to hold ctaocrypt md5, but check on init */ |
Vanger | 0:b86d15c6ba29 | 20 | } CYASSL_MD5_CTX; |
Vanger | 0:b86d15c6ba29 | 21 | |
Vanger | 0:b86d15c6ba29 | 22 | CYASSL_API void CyaSSL_MD5_Init(CYASSL_MD5_CTX*); |
Vanger | 0:b86d15c6ba29 | 23 | CYASSL_API void CyaSSL_MD5_Update(CYASSL_MD5_CTX*, const void*, unsigned long); |
Vanger | 0:b86d15c6ba29 | 24 | CYASSL_API void CyaSSL_MD5_Final(unsigned char*, CYASSL_MD5_CTX*); |
Vanger | 0:b86d15c6ba29 | 25 | |
Vanger | 0:b86d15c6ba29 | 26 | |
Vanger | 0:b86d15c6ba29 | 27 | typedef CYASSL_MD5_CTX MD5_CTX; |
Vanger | 0:b86d15c6ba29 | 28 | |
Vanger | 0:b86d15c6ba29 | 29 | #define MD5_Init CyaSSL_MD5_Init |
Vanger | 0:b86d15c6ba29 | 30 | #define MD5_Update CyaSSL_MD5_Update |
Vanger | 0:b86d15c6ba29 | 31 | #define MD5_Final CyaSSL_MD5_Final |
Vanger | 0:b86d15c6ba29 | 32 | |
Vanger | 0:b86d15c6ba29 | 33 | #ifdef __cplusplus |
Vanger | 0:b86d15c6ba29 | 34 | } /* extern "C" */ |
Vanger | 0:b86d15c6ba29 | 35 | #endif |
Vanger | 0:b86d15c6ba29 | 36 | |
Vanger | 0:b86d15c6ba29 | 37 | |
Vanger | 0:b86d15c6ba29 | 38 | #endif /* CYASSL_MD5_H_ */ |
Vanger | 0:b86d15c6ba29 | 39 |