svn rev #24678: trunk/src/lib/crypto/builtin/sha2/
ghudson@MIT.EDU
ghudson at MIT.EDU
Thu Mar 3 10:21:11 EST 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=24678
Commit By: ghudson
Log Message:
Fix SHA-256 on big-endian platforms.
Changed Files:
U trunk/src/lib/crypto/builtin/sha2/sha256.c
Modified: trunk/src/lib/crypto/builtin/sha2/sha256.c
===================================================================
--- trunk/src/lib/crypto/builtin/sha2/sha256.c 2011-03-02 05:29:29 UTC (rev 24677)
+++ trunk/src/lib/crypto/builtin/sha2/sha256.c 2011-03-03 15:21:11 UTC (rev 24678)
@@ -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
More information about the cvs-krb5
mailing list