reversed a change to clear a warning, replaced some tabs

This commit is contained in:
John Safranek
2014-03-12 14:32:02 -07:00
parent dcb39d5554
commit dc14fafb2e

View File

@@ -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);