diff options
author | Greg Hudson <ghudson@mit.edu> | 2011-03-03 15:21:11 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2011-03-03 15:21:11 +0000 |
commit | 094b3c111a35803ffc88682fd09b4471d7d5c5b6 (patch) | |
tree | eda0393871f4571ad87de5c5e2588d52691866a6 /src | |
parent | ce6d249fdf1dd7dda5b202836ed387500324ae2a (diff) | |
download | krb5-094b3c111a35803ffc88682fd09b4471d7d5c5b6.tar.gz krb5-094b3c111a35803ffc88682fd09b4471d7d5c5b6.tar.xz krb5-094b3c111a35803ffc88682fd09b4471d7d5c5b6.zip |
Fix SHA-256 on big-endian platforms
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24678 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/crypto/builtin/sha2/sha256.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/crypto/builtin/sha2/sha256.c b/src/lib/crypto/builtin/sha2/sha256.c index 23b1a26c05..ec0aeba511 100644 --- a/src/lib/crypto/builtin/sha2/sha256.c +++ b/src/lib/crypto/builtin/sha2/sha256.c @@ -36,6 +36,10 @@ #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 |