wolfSSL 3.11.1 for TLS1.3 beta
Fork of wolfSSL by
wolfssl/openssl/md5.h@3:6f956bdb3073, 2016-04-28 (annotated)
- Committer:
- wolfSSL
- Date:
- Thu Apr 28 00:56:55 2016 +0000
- Revision:
- 3:6f956bdb3073
wolfSSL 3.9.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wolfSSL | 3:6f956bdb3073 | 1 | /* md5.h for openssl */ |
wolfSSL | 3:6f956bdb3073 | 2 | |
wolfSSL | 3:6f956bdb3073 | 3 | |
wolfSSL | 3:6f956bdb3073 | 4 | #ifndef WOLFSSL_MD5_H_ |
wolfSSL | 3:6f956bdb3073 | 5 | #define WOLFSSL_MD5_H_ |
wolfSSL | 3:6f956bdb3073 | 6 | |
wolfSSL | 3:6f956bdb3073 | 7 | #include <wolfssl/wolfcrypt/settings.h> |
wolfSSL | 3:6f956bdb3073 | 8 | |
wolfSSL | 3:6f956bdb3073 | 9 | #ifndef NO_MD5 |
wolfSSL | 3:6f956bdb3073 | 10 | |
wolfSSL | 3:6f956bdb3073 | 11 | #ifdef WOLFSSL_PREFIX |
wolfSSL | 3:6f956bdb3073 | 12 | #include "prefix_md5.h" |
wolfSSL | 3:6f956bdb3073 | 13 | #endif |
wolfSSL | 3:6f956bdb3073 | 14 | |
wolfSSL | 3:6f956bdb3073 | 15 | #ifdef __cplusplus |
wolfSSL | 3:6f956bdb3073 | 16 | extern "C" { |
wolfSSL | 3:6f956bdb3073 | 17 | #endif |
wolfSSL | 3:6f956bdb3073 | 18 | |
wolfSSL | 3:6f956bdb3073 | 19 | |
wolfSSL | 3:6f956bdb3073 | 20 | typedef struct WOLFSSL_MD5_CTX { |
wolfSSL | 3:6f956bdb3073 | 21 | int holder[24]; /* big enough to hold wolfcrypt md5, but check on init */ |
wolfSSL | 3:6f956bdb3073 | 22 | } WOLFSSL_MD5_CTX; |
wolfSSL | 3:6f956bdb3073 | 23 | |
wolfSSL | 3:6f956bdb3073 | 24 | WOLFSSL_API void wolfSSL_MD5_Init(WOLFSSL_MD5_CTX*); |
wolfSSL | 3:6f956bdb3073 | 25 | WOLFSSL_API void wolfSSL_MD5_Update(WOLFSSL_MD5_CTX*, const void*, unsigned long); |
wolfSSL | 3:6f956bdb3073 | 26 | WOLFSSL_API void wolfSSL_MD5_Final(unsigned char*, WOLFSSL_MD5_CTX*); |
wolfSSL | 3:6f956bdb3073 | 27 | |
wolfSSL | 3:6f956bdb3073 | 28 | |
wolfSSL | 3:6f956bdb3073 | 29 | typedef WOLFSSL_MD5_CTX MD5_CTX; |
wolfSSL | 3:6f956bdb3073 | 30 | |
wolfSSL | 3:6f956bdb3073 | 31 | #define MD5_Init wolfSSL_MD5_Init |
wolfSSL | 3:6f956bdb3073 | 32 | #define MD5_Update wolfSSL_MD5_Update |
wolfSSL | 3:6f956bdb3073 | 33 | #define MD5_Final wolfSSL_MD5_Final |
wolfSSL | 3:6f956bdb3073 | 34 | |
wolfSSL | 3:6f956bdb3073 | 35 | #ifdef __cplusplus |
wolfSSL | 3:6f956bdb3073 | 36 | } /* extern "C" */ |
wolfSSL | 3:6f956bdb3073 | 37 | #endif |
wolfSSL | 3:6f956bdb3073 | 38 | |
wolfSSL | 3:6f956bdb3073 | 39 | #endif /* NO_MD5 */ |
wolfSSL | 3:6f956bdb3073 | 40 | |
wolfSSL | 3:6f956bdb3073 | 41 | #endif /* WOLFSSL_MD5_H_ */ |
wolfSSL | 3:6f956bdb3073 | 42 | |
wolfSSL | 3:6f956bdb3073 | 43 |