CyaSSL changed for NucleoF401RE board: implemented random and time functions for build. (Has trouble with wildcard domains like *.google.com, *.yahoo.com)

Fork of CyaSSL by wolf SSL

Committer:
Vanger
Date:
Wed Jan 14 22:07:14 2015 +0000
Revision:
4:e505054279ed
Parent:
0:1239e9b70ca2
Implemented some platform specific functions in the Cyassl library code: time functions, seed random functions, and also changed the settings.h file to define settings specific to the platform being used

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wolfSSL 0:1239e9b70ca2 1 /* md5.h for openssl */
wolfSSL 0:1239e9b70ca2 2
wolfSSL 0:1239e9b70ca2 3
wolfSSL 0:1239e9b70ca2 4 #ifndef CYASSL_MD5_H_
wolfSSL 0:1239e9b70ca2 5 #define CYASSL_MD5_H_
wolfSSL 0:1239e9b70ca2 6
wolfSSL 0:1239e9b70ca2 7 #include <cyassl/ctaocrypt/settings.h>
wolfSSL 0:1239e9b70ca2 8
wolfSSL 0:1239e9b70ca2 9 #ifdef YASSL_PREFIX
wolfSSL 0:1239e9b70ca2 10 #include "prefix_md5.h"
wolfSSL 0:1239e9b70ca2 11 #endif
wolfSSL 0:1239e9b70ca2 12
wolfSSL 0:1239e9b70ca2 13 #ifdef __cplusplus
wolfSSL 0:1239e9b70ca2 14 extern "C" {
wolfSSL 0:1239e9b70ca2 15 #endif
wolfSSL 0:1239e9b70ca2 16
wolfSSL 0:1239e9b70ca2 17
wolfSSL 0:1239e9b70ca2 18 typedef struct CYASSL_MD5_CTX {
wolfSSL 0:1239e9b70ca2 19 int holder[24]; /* big enough to hold ctaocrypt md5, but check on init */
wolfSSL 0:1239e9b70ca2 20 } CYASSL_MD5_CTX;
wolfSSL 0:1239e9b70ca2 21
wolfSSL 0:1239e9b70ca2 22 CYASSL_API void CyaSSL_MD5_Init(CYASSL_MD5_CTX*);
wolfSSL 0:1239e9b70ca2 23 CYASSL_API void CyaSSL_MD5_Update(CYASSL_MD5_CTX*, const void*, unsigned long);
wolfSSL 0:1239e9b70ca2 24 CYASSL_API void CyaSSL_MD5_Final(unsigned char*, CYASSL_MD5_CTX*);
wolfSSL 0:1239e9b70ca2 25
wolfSSL 0:1239e9b70ca2 26
wolfSSL 0:1239e9b70ca2 27 typedef CYASSL_MD5_CTX MD5_CTX;
wolfSSL 0:1239e9b70ca2 28
wolfSSL 0:1239e9b70ca2 29 #define MD5_Init CyaSSL_MD5_Init
wolfSSL 0:1239e9b70ca2 30 #define MD5_Update CyaSSL_MD5_Update
wolfSSL 0:1239e9b70ca2 31 #define MD5_Final CyaSSL_MD5_Final
wolfSSL 0:1239e9b70ca2 32
wolfSSL 0:1239e9b70ca2 33 #ifdef __cplusplus
wolfSSL 0:1239e9b70ca2 34 } /* extern "C" */
wolfSSL 0:1239e9b70ca2 35 #endif
wolfSSL 0:1239e9b70ca2 36
wolfSSL 0:1239e9b70ca2 37
wolfSSL 0:1239e9b70ca2 38 #endif /* CYASSL_MD5_H_ */
wolfSSL 0:1239e9b70ca2 39
wolfSSL 0:1239e9b70ca2 40