forked from wolfSSL/wolfssl
reversed a change to clear a warning, replaced some tabs
This commit is contained in:
@@ -56,8 +56,8 @@
|
|||||||
* document (See note in README).
|
* document (See note in README).
|
||||||
*/
|
*/
|
||||||
#include "stm32f2xx.h"
|
#include "stm32f2xx.h"
|
||||||
#include "stm32f2xx_hash.h"
|
#include "stm32f2xx_hash.h"
|
||||||
|
|
||||||
void InitSha(Sha* sha)
|
void InitSha(Sha* sha)
|
||||||
{
|
{
|
||||||
/* STM32F2 struct notes:
|
/* STM32F2 struct notes:
|
||||||
@@ -363,8 +363,9 @@ void ShaFinal(Sha* sha, byte* hash)
|
|||||||
|
|
||||||
#ifdef FREESCALE_MMCAU
|
#ifdef FREESCALE_MMCAU
|
||||||
/* Kinetis requires only these bytes reversed */
|
/* Kinetis requires only these bytes reversed */
|
||||||
ByteReverseBytes(&local[SHA_PAD_SIZE], &local[SHA_PAD_SIZE],
|
ByteReverseWords(&sha->buffer[SHA_PAD_SIZE/sizeof(word32)],
|
||||||
2 * sizeof(word32));
|
&sha->buffer[SHA_PAD_SIZE/sizeof(word32)],
|
||||||
|
2 * sizeof(word32));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
XTRANSFORM(sha, local);
|
XTRANSFORM(sha, local);
|
||||||
|
Reference in New Issue
Block a user