0001-Make-ByteReverseWords-available-for-big-and-little-e.patch 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. From b90acc91d0cd276befe7f08f87ba2dc5ee7122ff Mon Sep 17 00:00:00 2001
  2. From: Tesfa Mael <tesfa@wolfssl.com>
  3. Date: Wed, 26 Aug 2020 10:13:06 -0700
  4. Subject: [PATCH] Make ByteReverseWords available for big and little endian
  5. ---
  6. wolfcrypt/src/misc.c | 2 --
  7. 1 file changed, 2 deletions(-)
  8. diff --git a/wolfcrypt/src/misc.c b/wolfcrypt/src/misc.c
  9. index fe66ee0a1..23bfa1adc 100644
  10. --- a/wolfcrypt/src/misc.c
  11. +++ b/wolfcrypt/src/misc.c
  12. @@ -120,7 +120,6 @@ WC_STATIC WC_INLINE word32 ByteReverseWord32(word32 value)
  13. return rotlFixed(value, 16U);
  14. #endif
  15. }
  16. -#if defined(LITTLE_ENDIAN_ORDER)
  17. /* This routine performs a byte swap of words array of a given count. */
  18. WC_STATIC WC_INLINE void ByteReverseWords(word32* out, const word32* in,
  19. word32 byteCount)
  20. @@ -131,7 +130,6 @@ WC_STATIC WC_INLINE void ByteReverseWords(word32* out, const word32* in,
  21. out[i] = ByteReverseWord32(in[i]);
  22. }
  23. -#endif /* LITTLE_ENDIAN_ORDER */
  24. #if defined(WORD64_AVAILABLE) && !defined(WOLFSSL_NO_WORD64_OPS)
  25. --
  26. 2.25.1