forked from wolfSSL/wolfssl
Merge pull request #375 from dgarske/stm32hashfixes
Fixes when using the STM32 with STM32F2_HASH defined.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user