Fix SHA-256 on big-endian platforms
authorGreg Hudson <ghudson@mit.edu>
Thu, 3 Mar 2011 15:21:11 +0000 (15:21 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 3 Mar 2011 15:21:11 +0000 (15:21 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24678 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/builtin/sha2/sha256.c

index 23b1a26c05857e58584791b0132b3db39887199a..ec0aeba511e61e80a5b1b5cb0d289e722e0a23ed 100644 (file)
 #include <k5-int.h>
 #include "sha2.h"
 
+#ifdef K5_BE
+#define WORDS_BIGENDIAN
+#endif
+
 #ifndef min
 #define min(a,b) (((a)>(b))?(b):(a))
 #endif