projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move U64 macro from sha.h to sha512.c
[openssl.git]
/
crypto
/
sha
/
sha512.c
diff --git
a/crypto/sha/sha512.c
b/crypto/sha/sha512.c
index 03189a9d9c4420d36bdd7d31e7b5d01241adf0be..c70edf572ae236281e62f886afa8810214411cb5 100644
(file)
--- a/
crypto/sha/sha512.c
+++ b/
crypto/sha/sha512.c
@@
-60,6
+60,14
@@
# define SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA
#endif
# define SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA
#endif
+#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
+# define U64(C) C##UI64
+#elif defined(__arch64__)
+# define U64(C) C##UL
+#else
+# define U64(C) C##ULL
+#endif
+
int sha512_224_init(SHA512_CTX *c)
{
c->h[0] = U64(0x8c3d37c819544da2);
int sha512_224_init(SHA512_CTX *c)
{
c->h[0] = U64(0x8c3d37c819544da2);