From 094b3c111a35803ffc88682fd09b4471d7d5c5b6 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 3 Mar 2011 15:21:11 +0000 Subject: [PATCH] Fix SHA-256 on big-endian platforms git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24678 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/builtin/sha2/sha256.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/crypto/builtin/sha2/sha256.c b/src/lib/crypto/builtin/sha2/sha256.c index 23b1a26c0..ec0aeba51 100644 --- a/src/lib/crypto/builtin/sha2/sha256.c +++ b/src/lib/crypto/builtin/sha2/sha256.c @@ -36,6 +36,10 @@ #include #include "sha2.h" +#ifdef K5_BE +#define WORDS_BIGENDIAN +#endif + #ifndef min #define min(a,b) (((a)>(b))?(b):(a)) #endif -- 2.26.2