wolfSSL SSL/TLS library, support up to TLS1.3

Dependents:   CyaSSL-Twitter-OAuth4Tw Example-client-tls-cert TwitterReader TweetTest ... more

Committer:
wolfSSL
Date:
Tue Aug 22 10:48:22 2017 +0000
Revision:
13:f67a6c6013ca
Parent:
11:cee25a834751
wolfSSL3.12.0 with TLS1.3

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wolfSSL 11:cee25a834751 1 /* md5.h for openssl */
wolfSSL 11:cee25a834751 2
wolfSSL 11:cee25a834751 3
wolfSSL 11:cee25a834751 4 #ifndef WOLFSSL_MD5_H_
wolfSSL 11:cee25a834751 5 #define WOLFSSL_MD5_H_
wolfSSL 11:cee25a834751 6
wolfSSL 11:cee25a834751 7 #include <wolfssl/wolfcrypt/settings.h>
wolfSSL 11:cee25a834751 8
wolfSSL 11:cee25a834751 9 #ifndef NO_MD5
wolfSSL 11:cee25a834751 10
wolfSSL 11:cee25a834751 11 #ifdef WOLFSSL_PREFIX
wolfSSL 11:cee25a834751 12 #include "prefix_md5.h"
wolfSSL 11:cee25a834751 13 #endif
wolfSSL 11:cee25a834751 14
wolfSSL 11:cee25a834751 15 #ifdef __cplusplus
wolfSSL 11:cee25a834751 16 extern "C" {
wolfSSL 11:cee25a834751 17 #endif
wolfSSL 11:cee25a834751 18
wolfSSL 11:cee25a834751 19
wolfSSL 11:cee25a834751 20 typedef struct WOLFSSL_MD5_CTX {
wolfSSL 11:cee25a834751 21 int holder[28 + (WC_ASYNC_DEV_SIZE / sizeof(int))]; /* big enough to hold wolfcrypt md5, but check on init */
wolfSSL 11:cee25a834751 22 } WOLFSSL_MD5_CTX;
wolfSSL 11:cee25a834751 23
wolfSSL 11:cee25a834751 24 WOLFSSL_API void wolfSSL_MD5_Init(WOLFSSL_MD5_CTX*);
wolfSSL 11:cee25a834751 25 WOLFSSL_API void wolfSSL_MD5_Update(WOLFSSL_MD5_CTX*, const void*, unsigned long);
wolfSSL 11:cee25a834751 26 WOLFSSL_API void wolfSSL_MD5_Final(unsigned char*, WOLFSSL_MD5_CTX*);
wolfSSL 11:cee25a834751 27
wolfSSL 11:cee25a834751 28
wolfSSL 11:cee25a834751 29 typedef WOLFSSL_MD5_CTX MD5_CTX;
wolfSSL 11:cee25a834751 30
wolfSSL 11:cee25a834751 31 #define MD5_Init wolfSSL_MD5_Init
wolfSSL 11:cee25a834751 32 #define MD5_Update wolfSSL_MD5_Update
wolfSSL 11:cee25a834751 33 #define MD5_Final wolfSSL_MD5_Final
wolfSSL 11:cee25a834751 34
wolfSSL 11:cee25a834751 35 #ifdef OPENSSL_EXTRA_BSD
wolfSSL 11:cee25a834751 36 #define MD5Init wolfSSL_MD5_Init
wolfSSL 11:cee25a834751 37 #define MD5Update wolfSSL_MD5_Update
wolfSSL 11:cee25a834751 38 #define MD5Final wolfSSL_MD5_Final
wolfSSL 11:cee25a834751 39 #endif
wolfSSL 11:cee25a834751 40
wolfSSL 11:cee25a834751 41 #ifdef __cplusplus
wolfSSL 11:cee25a834751 42 } /* extern "C" */
wolfSSL 11:cee25a834751 43 #endif
wolfSSL 11:cee25a834751 44
wolfSSL 11:cee25a834751 45 #endif /* NO_MD5 */
wolfSSL 11:cee25a834751 46
wolfSSL 11:cee25a834751 47 #endif /* WOLFSSL_MD5_H_ */
wolfSSL 11:cee25a834751 48