sha256.c, mplabx/test_main.c

pull/1/head
Takashi Kojo 2014-03-11 13:43:24 +09:00
parent 5a6e2482da
commit 5dbe391d92
2 changed files with 3 additions and 8 deletions

View File

@ -221,11 +221,11 @@ void Sha256Final(Sha256* sha256, byte* hash)
#ifdef FREESCALE_MMCAU
/* Kinetis requires only these bytes reversed */
ByteReverseBytes(&local[SHA256_PAD_SIZE], &local[SHA256_PAD_SIZE],
2 * sizeof(word32));
ByteReverseWords(&sha256->buffer[SHA256_PAD_SIZE/sizeof(word32)],
&sha256->buffer[SHA256_PAD_SIZE/sizeof(word32)],
2 * sizeof(word32));
#endif
XTRANSFORM(sha256, local);
XTRANSFORM(sha256, local);
#ifdef LITTLE_ENDIAN_ORDER
ByteReverseWords(sha256->digest, sha256->digest, SHA256_DIGEST_SIZE);

View File

@ -24,11 +24,6 @@
#endif
#include <cyassl/ctaocrypt/settings.h>
#include <stdio.h>
#include <stdlib.h>
#include "PIC32MZ-serial.h"
#define SYSTEMConfigPerformance /* void out SYSTEMConfigPerformance(); */
#else
#if defined(CYASSL_MICROCHIP_PIC32MZ)
#define MICROCHIP_PIC32