From 7752df33403d8f43278b98e7ba5299b033123cbf Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Mon, 24 Nov 2025 16:48:35 +0800 Subject: [PATCH] Correct SHA256 final endianness on MMCAU platforms --- wolfcrypt/src/sha256.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/sha256.c b/wolfcrypt/src/sha256.c index 7af7ecbc0..59b10eace 100644 --- a/wolfcrypt/src/sha256.c +++ b/wolfcrypt/src/sha256.c @@ -1728,7 +1728,7 @@ static WC_INLINE int Transform_Sha256_Len(wc_Sha256* sha256, const byte* data, 2 * sizeof(word32)); } #endif - #if defined(WOLFSSL_ARMASM) + #if defined(WOLFSSL_ARMASM) && !defined(FREESCALE_MMCAU_SHA) ByteReverseWords( &sha256->buffer[WC_SHA256_PAD_SIZE / sizeof(word32)], &sha256->buffer[WC_SHA256_PAD_SIZE / sizeof(word32)], 2 * sizeof(word32));