accounting for WOLFSSL in md5.h

This commit is contained in:
kaleb-himes
2014-12-31 10:33:51 -07:00
parent d1e48e2364
commit 924abb2d12
2 changed files with 4 additions and 4 deletions

View File

@@ -38,7 +38,7 @@
#define wc_Md5Final Md5Final
#define wc_Md5Hash Md5Hash
#endif
//
//#ifdef __cplusplus
// extern "C" {
//#endif

View File

@@ -49,17 +49,17 @@ enum {
MD5_PAD_SIZE = 56
};
#ifdef CYASSL_PIC32MZ_HASH
#if defined(CYASSL_PIC32MZ_HASH) || defined(WOLFSSL_PIC32MZ_HASH)
#include "port/pic32/pic32mz-crypt.h"
#endif
/* MD5 digest */
typedef struct Md5 {
word32 buffLen; /* in bytes */
word32 loLen; /* length in bytes */
word32 hiLen; /* length in bytes */
word32 buffer[MD5_BLOCK_SIZE / sizeof(word32)];
#ifndef CYASSL_PIC32MZ_HASH
#if !defined(CYASSL_PIC32MZ_HASH) || !defined(WOLFSSL_PIC32MZ_HASH)
word32 digest[MD5_DIGEST_SIZE / sizeof(word32)];
#else
word32 digest[PIC32_HASH_SIZE / sizeof(word32)];