Skip to content

Commit d49c769

Browse files
authored
Merge pull request #9468 from josepho0918/mmcau
Correct SHA256 final endianness on MMCAU platforms
2 parents 59f4fa5 + 7752df3 commit d49c769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/sha256.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ static WC_INLINE int Transform_Sha256_Len(wc_Sha256* sha256, const byte* data,
17281728
2 * sizeof(word32));
17291729
}
17301730
#endif
1731-
#if defined(WOLFSSL_ARMASM)
1731+
#if defined(WOLFSSL_ARMASM) && !defined(FREESCALE_MMCAU_SHA)
17321732
ByteReverseWords( &sha256->buffer[WC_SHA256_PAD_SIZE / sizeof(word32)],
17331733
&sha256->buffer[WC_SHA256_PAD_SIZE / sizeof(word32)],
17341734
2 * sizeof(word32));

0 commit comments

Comments
 (0)