cyassl re-port with cellular comms, PSK test

Dependencies:   VodafoneUSBModem_bleedingedge2 mbed-rtos mbed-src

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers md5.h Source File

md5.h

00001 /* md5.h for openssl */
00002 
00003 
00004 #ifndef CYASSL_MD5_H_
00005 #define CYASSL_MD5_H_
00006 
00007 #include <cyassl/ctaocrypt/settings.h>
00008 
00009 #ifdef YASSL_PREFIX
00010 #include "prefix_md5.h"
00011 #endif
00012 
00013 #ifdef __cplusplus
00014     extern "C" {
00015 #endif
00016 
00017 
00018 typedef struct CYASSL_MD5_CTX {
00019     int holder[24];   /* big enough to hold ctaocrypt md5, but check on init */
00020 } CYASSL_MD5_CTX;
00021 
00022 CYASSL_API void CyaSSL_MD5_Init(CYASSL_MD5_CTX*);
00023 CYASSL_API void CyaSSL_MD5_Update(CYASSL_MD5_CTX*, const void*, unsigned long);
00024 CYASSL_API void CyaSSL_MD5_Final(unsigned char*, CYASSL_MD5_CTX*);
00025 
00026 
00027 typedef CYASSL_MD5_CTX MD5_CTX;
00028 
00029 #define MD5_Init CyaSSL_MD5_Init
00030 #define MD5_Update CyaSSL_MD5_Update
00031 #define MD5_Final CyaSSL_MD5_Final
00032 
00033 #ifdef __cplusplus
00034     }  /* extern "C" */ 
00035 #endif
00036 
00037 
00038 #endif /* CYASSL_MD5_H_ */
00039