projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce6d249
)
Fix SHA-256 on big-endian platforms
author
Greg Hudson
<ghudson@mit.edu>
Thu, 3 Mar 2011 15:21:11 +0000
(15:21 +0000)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/src/lib/crypto/builtin/sha2/sha256.c
b/src/lib/crypto/builtin/sha2/sha256.c
index 23b1a26c05857e58584791b0132b3db39887199a..ec0aeba511e61e80a5b1b5cb0d289e722e0a23ed 100644
(file)
--- 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