Fixes when using the STM32 with STM32F2_HASH defined.

This commit is contained in:
David Garske
2016-04-01 10:42:13 -07:00
committed by Jacob Barthelmeh
parent 255d9ecfb3
commit 2aab090c8b
2 changed files with 2 additions and 1 deletions

View File

@@ -64,6 +64,7 @@
* document (See note in README). * document (See note in README).
*/ */
#include "stm32f2xx.h" #include "stm32f2xx.h"
#include "stm32f2xx_hash.h"
void wc_InitMd5(Md5* md5) void wc_InitMd5(Md5* md5)
{ {

View File

@@ -136,7 +136,7 @@ int wc_ShaUpdate(Sha* sha, const byte* data, word32 len)
/* append partial to existing stored block */ /* append partial to existing stored block */
XMEMCPY((byte*)sha->buffer + sha->buffLen, data, len); XMEMCPY((byte*)sha->buffer + sha->buffLen, data, len);
sha->buffLen += len; sha->buffLen += len;
return; return 0;
} }
} }