From: Greg Hudson Date: Thu, 3 Mar 2011 15:21:11 +0000 (+0000) Subject: Fix SHA-256 on big-endian platforms X-Git-Tag: krb5-1.10-alpha1~558 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=094b3c111a35803ffc88682fd09b4471d7d5c5b6;p=krb5.git Fix SHA-256 on big-endian platforms git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24678 dc483132-0cff-0310-8789-dd5450dbe970 --- 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